The chat path¶
Stage: code. Done by: coder, setup person and analyst.
Your next step
A technical helper has set this up once (see "Install once"). Start a session, use it, stop. Each chat is connected once.
You code a narrative by talking to an assistant in a chat window in your browser. The people at the events supply the detail; coding organises it into patterns that are more abstract than the accounts, and the assistant helps while you own the interpretation. Obsidian stays where you read and decide. Each numbered step names where you do it: In the chat, In SCATLAB (the small Mac app that runs the server), In the menu bar (SCATLAB's coloured dot and its menu), In Finder, In GitHub Desktop, In Obsidian, In Tailscale or In a terminal.
A technical helper sets this path up once on your Mac (Terminal, Colima, Tailscale, building SCATLAB); the organiser works from there. If a step fails and its message does not help, tell the helper which step and what the message said.
For a strict data policy (nothing may stay on the AI platform), see Leave no trace. An ordinary chat run does not need it.
What the chat path is, and what it needs¶
A small program, the server, runs on your Mac inside a container (a sealed box that can reach only your vault) and offers the tool's operations to the chat. The chat's service calls it over the internet, so SCATLAB gives it a public address (the public link) while you work. Every request must carry a key, a long random password (the session key); without it the server answers 401 and nothing else.
What this path needs¶
- A Mac that stays awake and online while you work (SCATLAB keeps it awake).
- A vault, as in Getting started or GitHub Desktop, in a folder outside Documents, Desktop, Downloads and iCloud (macOS hides those from the container; the launcher offers a copy).
- A chat that takes a remote MCP server (a program a chat can call to use a tool) and sends a fixed key with each request, and your own account there. "Worked example: Claude" shows Claude; "Connect the chat" shows inference.coop's chat.
- The skill, a file of instructions the chat loads for the assistant:
skills/scat-coding/SKILL.md. - SCATLAB, a container runtime and Tailscale, which the helper installs (see "Install once").
The three actant types¶
- The chat helps. The assistant drafts text, proposes nodes and links, and calls the tool's operations. It decides nothing.
- You, the coder, decide. You read, interpret, and set
doneyourself. - The tool checks. It owns conformance: whether the vault fits the structure.
The server cannot set a narrative to done or move one out of done, so the assistant cannot. The assistant's rules
are in contracts/assistant.md; what is a rule and what is a norm is on the norms page.
Your vault with no terminal: GitHub Desktop¶
Stage: plan. Done by: setup person.
Getting started types its git commands in Terminal. Here you do the same jobs, clone, remove the example, commit and push, with GitHub Desktop and Finder. If a name here is not on your screen, use the nearest one.
Create your private repository first, on the website. Do the On the GitHub website path of Getting started: Use this template, then Create a new repository, visibility Private. Your notes are about real groups of people.
Clone it.
- In GitHub Desktop: sign in to your GitHub account.
- In GitHub Desktop: choose File > Clone Repository..., pick your repository under GitHub.com, set Local path to a folder outside Documents, Desktop, Downloads and iCloud, and choose Clone.
Your vault is the cloned folder. It holds scat.toml, the vault's settings (the caps on the layers and the
attribution mode). The setup person writes them; the assistant cannot. The template's default branch
is dev; if GitHub Desktop shows main, choose dev.
Remove the example: your hands do it. The assistant never deletes anything, and the server has no operation that deletes a page or a folder.
- In GitHub Desktop: choose Repository > Show in Finder.
- In Finder: drag these five folders to the Trash:
affordance,concern,stakeholder,narrativeandtechnology. Keepindexand everything else. - In GitHub Desktop: type
Remove the examplein the Summary box, choose Commit to dev, then Push origin.
Then, once a chat run has started, ask the assistant to run the check. It should say there are no problems.
Commit and push your work, any time. After you have read pages and set them to done in Obsidian, the Changes
list shows every changed page. Read it, type a summary such as Code the notes from my first session, choose Commit
to dev, then Push origin. The assistant does not commit or push.
Worked example: Claude¶
Stage: plan. Done by: setup person.
Claude in the browser (claude.ai) is one example; another chat that meets the needs above works the same way. Every Claude plan can add a connector and a skill. On Free, Pro and Max you add them yourself; on Team and Enterprise an owner adds the connector and turns on what skills need (below).
The connector's address is public during a chat run, and only the key lets a request through. The address and the key stay the same from one chat run to the next, so you add the connector once.
Do Install once and Start a session first; come back when the dot is green.
Add the connector, once. Claude cannot edit a connector. If you reset the key, remove the connector (Plugins, choose it, the three dots, Remove) and add it again with the new key; a connector you add again is not in the chats you started before, so start a new chat.
- In the menu bar: click the dot, then Copy address. The address, which ends in
/mcp, is on your clipboard. - In Claude: click Plugins in the left sidebar, then Add, then Add custom connector. Give it a short name in lower case,
such as
scat, paste the address as the MCP server URL, and click Continue. - In Claude: under Authentication, choose No sign-in. Claude may warn that the server required sign-in: that is expected, because the key goes in a header.
- In the menu bar: click the dot, then Copy key.
- In Claude: under Request headers, click Add header, choose
x-api-key, and paste the key alone into Value. - In Claude: click Add. SCAT shows as Connected, with its tools listed.
- In any app: copy a word from anywhere, so your clipboard no longer holds the key.
Load the rules, once. Claude takes a skill as a zip of its folder.
- In a web browser: open
https://raw.githubusercontent.com/DynamicalSystemsGroup/scat-tools/dev/skills/scat-coding/SKILL.md and save it
as
SKILL.mdinto a new folder namedscat-coding. - In Finder: right-click the
scat-codingfolder and choose Compress. - In Claude: click Plugins, then Add, then Upload plugin; choose
scat-coding.zip, then Upload. Claude lists the plugin Scat coding.
Skills need code execution. On Free, Pro and Max, switch on Run code in the cloud under Settings > Capabilities > Code execution and file creation. On Team and Enterprise an owner switches it on under Organization settings > Plugins & skills > Policy; on Enterprise the owner also switches on Skills there.
Start a chat and check.
- In Claude: start a new chat, click + at the lower left, choose Plugins, and switch scat on.
- In Claude: type
Run the SCAT check on my vault and tell me what it says.and send it. The check decides, not the model.
From here, Use shows the coding loop. The connector stays; it only works while SCATLAB runs.
Install once¶
Stage: plan. Done by: setup person.
The helper does this once per Mac. Each tool's own page covers its installation; only what SCATLAB needs is here.
Get SCATLAB.app¶
SCATLAB is a Mac app with no window: during a chat run it is a coloured dot in the menu bar, with a menu under it. It
starts the server and the public link, makes the session key the first time, and stops them again. It is not a
download: the helper builds it from a clone of scat-tools, in a terminal in that clone:
sh deploy/build-app.sh
The app lands in deploy/build/SCATLAB.app.
- In Finder: open
deploy/build/SCATLAB.appand choose Move to Applications. If it cannot move itself, drag it into Applications.
SCATLAB is not signed with an Apple developer certificate, so macOS stops it the first time.
- In Finder: right-click (or Control-click) SCATLAB, choose Open, and choose Open again. If there is no Open button, use Open Anyway under System Settings > Privacy and Security.
A container runtime: Colima¶
This page uses Colima, the default. If Docker Desktop is already installed and Colima is not, SCATLAB uses Docker Desktop instead: open it and wait until it says it is running before each chat run, and skip the rest of this section. If both are installed, SCATLAB uses Colima. SCATLAB starts Colima itself.
- In a terminal: with Homebrew installed (https://brew.sh), run
brew install colima docker, thencolima version. You should see a version number.
Tailscale¶
Tailscale makes the public address. SCATLAB needs the app and its command line tool.
- In Tailscale: install the app from https://tailscale.com/download, open it and sign in.
- In Tailscale: in the menu bar icon's menu, choose the item that installs the command line tool.
Two settings in your Tailscale account¶
SCATLAB never changes these. If one is missing, it stops, says which, and offers to open the page.
- HTTPS certificates. The chat only talks to secure addresses. This publishes your Mac's name in a public record that cannot be erased: if the name has anything private in it, rename the Mac in Tailscale first (Machines, then Edit machine name).
- Funnel. It lets the internet reach the one address SCATLAB publishes. Approve it on the page SCATLAB opens.
Start a session¶
Stage: code. Done by: coder.
The first start on a Mac has no remembered vault, so it differs from the later ones; the steps say which. (With Docker Desktop, open it and wait until it says running first.)
- In Finder: open SCATLAB from Applications.
- In SCATLAB: at the first start on this Mac only, read the note that SCATLAB lives in the menu bar, and click OK. The dot is grey while SCATLAB starts, green while it runs and red when there is a problem.
- In SCATLAB: at the first start, a folder picker opens: choose the folder that holds
scat.toml. If macOS asks for permission to access it, click Allow. - In SCATLAB: at every later start it asks
Serve <vault>?. Click Use it, or Choose another and choose a different folder that holdsscat.toml. It never serves a vault you have not just confirmed. - In SCATLAB: wait. The first time it needs the internet to fetch the server (or to build it, which takes a few minutes); later chat runs reuse it.
- In the menu bar: check that the dot is green. A problem shows as a red dot, a Problem: line in the menu and one alert, "SCATLAB has a problem" (see "When something goes wrong").
- In the menu bar: click the dot to open its menu: State, Vault and Address lines, and Copy address, Copy key, Reset key, Change vault and Stop. It never shows the key.
If your vault is in Documents, Desktop, Downloads or iCloud, SCATLAB offers to copy it to ~/SCAT/vault. Work in the
copy and bring edits back through git.
Change vault¶
Change vault stops the server and starts it again with the folder picker. The key and the address stay the same, so the chat needs nothing.
- In the menu bar: click the dot, then Change vault.
- In SCATLAB: choose the folder that holds
scat.toml. - In the menu bar: check that the dot is green.
If the stop inside Change vault could not be confirmed, the dot turns red and the alert says "Stopped, but I could not confirm:" and what. Choose Stop in the menu to try again (see "Stop").
Connect the chat¶
Stage: plan. Done by: setup person.
You add the server entry to the chat once, with the address and the key. SCATLAB keeps its key until you choose Reset key (a start reuses it, Stop keeps it, a new build of SCATLAB adopts it), so the entry keeps working across restarts. After Reset key, open the entry, click Edit, paste the new key and save.
As an example, in inference.coop's chat:
- In the chat: in the bar of icons on the left, click MCP Settings, choose to add an MCP server and type
SCATas its name. - In the menu bar: open SCATLAB's menu and click Copy address. The address ends in
/mcp. - In the chat: paste the address into the server's address field.
- In the chat: choose the Streamable HTTPS transport and API key as the authentication.
- In the chat: choose the header format the form offers for the key. The server accepts
X-API-KeyorAuthorization: Bearer. - In the menu bar: open SCATLAB's menu and click Copy key.
- In the chat: paste the key into the API key field.
- In the chat: tick the consent I trust this application. Without it the entry cannot be saved.
- In the chat: save, then click Connect on the new entry. A new entry stays unconnected until you do.
- In the chat: check that the entry "SCAT" shows connected. If it does not, check that the dot is green, then delete the entry and add it again with a fresh Copy key.
- In any app: copy a word from anywhere, so your clipboard no longer holds the key.
Your chat's form may be worded differently; the fields are the same. Do not paste the key anywhere else: see "The session key".
Set up the skill and the saved agent¶
Stage: plan. Done by: setup person.
A saved agent is the chat's feature that keeps an assistant set up for a purpose (its instructions, skills and
tools), so a new chat starts from it. The skill carries the assistant's rules from skills/scat-coding/SKILL.md. You
do this once; it stays in the chat after Stop (see "Clean up"). This example uses inference.coop's chat, which has
Skills and an Agent Builder.
- In a web browser: open the skill file, https://raw.githubusercontent.com/DynamicalSystemsGroup/scat-tools/dev/skills/scat-coding/SKILL.md, select all (Cmd-A) and copy (Cmd-C). Keep the tab open.
- In the chat: look for Skills (in the chat's menus or settings), choose to create a new skill and name it
scat-coding. - In the chat: fill in the Description, which the form requires, with the text after
description:in the file's first lines (it begins "Rules and habits for the assistant"). - In the chat: paste the text you copied into the skill's text field (or upload the file, if the form offers it), and save the skill.
- In the chat: open the Agent Builder, name the agent (for example "SCAT coder") and choose a model.
- In the chat: add, as a tool, the server you added under "Connect the chat", and the chat's Ask User tool (it lets the assistant ask you a question), if the chat offers one.
- In the chat: choose the
scat-codingskill as the agent's only skill, and save the agent. - In the chat: to start with the agent, open the Agent Builder and use its Select control to pick it. A new chat starts with it.
An agent's tool is tied to the server entry you chose when you saved it. Editing that entry's key keeps the tie. Deleting the entry breaks it: add the new entry as the agent's tool again, and save.
Use¶
Stage: code. Done by: coder.
- In the chat: start a chat with your saved agent. With no saved agent, start a chat with the model and the
server entry, and say in your first message to follow the coding loop and the assistant's rules from the
scat-toolsserver. -
In the chat: attach your field notes with the paperclip (or drag and drop), name the narrative and send, for example:
Help me code the narrative "dry-july". My field notes are attached. Draft the account as text in your reply; I will paste it into Obsidian myself.
If your chat offers the server's prompts, code-a-narrative starts the loop. draft-a-node-page and
fill-in-node-pages draft node pages as text in the reply for you to write into the vault. look-for-duplicates
shows pairs of pages that may be one node and a merge or rename plan for each, one at a time; you run it yourself.
explain-a-problem and review-before-done do what their names say.
The coding loop, in the chat and in Obsidian¶
This is the coding loop with an assistant.
- In the chat: answer what the assistant asks about anything unclear. This is interpreting; it decides nothing.
- In the chat: read the account the assistant drafts as text in its reply. This is authoring. It does not write the account into the vault.
- In Obsidian: paste the account into the narrative page, and edit it there.
- In the chat: confirm or change the nodes and links the assistant proposes from the account. This is coding.
- In the chat: let the assistant make the pages that are missing and record each edge you confirmed, by the tool's operations. It never types a table row by hand.
- In the chat: read the check the assistant runs on the narrative and its neighbours. This is reviewing. A passing check means the structure fits, not that the narrative is correct.
- In Obsidian: read the page and decide whether the account matches the notes.
- In Obsidian: set
status: doneyourself. The assistant never does, and the server refuses it if asked.
What the assistant records appears in Obsidian; if a page looks stale, reopen it.
Stages¶
A project is in one stage at a time: plan, capture, code, synthesise, analyse or report. A stage is not a page's
status (stub, draft, done). Each stage offers the tools its work needs.
- Ask which stage it is. Say "what stage are we in?" The assistant calls
which_stage. - Name a stage. Say it plainly, for example "we are coding". The assistant calls
set_stage. Where your chat can show a question, the server asks you itself, with a yes and your name; say no, close it or leave it, and nothing moves. Where it cannot, the assistant asks you once in chat and signs with the name you give. It never moves the stage on its own. - It is kept in the vault, in
lifecycle.toml, the same in every chat on this vault. - Moving on. A call the stage does not offer changes nothing, and the assistant says so; to go on, tell it which stage to move to.
You can read each stage's guide yourself with uv run scat guide <stage> (see the
CLI reference). How the server keeps and enforces the stage is in the
MCP server reference.
Views¶
Stage: analyse. Done by: analyst.
Ask the assistant for a view: a fingerprint, an edge table, the layered view or a trace. To keep them, ask it to export
the edge tables: CSV and Markdown files in the views/ folder of your vault.
Lock a version¶
Stage: report. Done by: coder.
Locking a version is tagging a commit once the vault is finished (see Hand over and report). Push your
work, then on github.com choose Releases, Draft a new release, type a tag such as v1, choose the option to
create it, add a title and choose Publish release.
The session key¶
Stage: plan. Done by: setup person.
The session key is sent with every request, so the server answers only the chat you connected. It stays the same until you reset it.
- Where it lives. SCATLAB makes it at the first start and keeps it in your Mac's login keychain until you reset it. Stop keeps it, a new build of SCATLAB adopts it, and retiring the app removes it. It is never written to your vault or the repository.
- Where it is shown. Never in the menu. It reaches your clipboard only when you choose Copy key; Stop clears the clipboard if it still holds the key.
Good practice:
- Paste it only into the chat's server entry. Not into a message, an email, a document or a note.
- After pasting, copy something else, so the clipboard no longer holds it.
- Do not screenshot or share your screen while you paste it.
If you think someone has seen the key, reset it. Every connected chat then needs the new key, so do it only when you must.
- In the menu bar: click the dot, then Reset key (it works while SCATLAB is running). SCATLAB makes a new key, restarts the server with it and tells you that every connected chat needs the new one. Click Copy key and paste it into each chat's server entry (in Claude, remove the connector and add it again, then start a new chat). The old key no longer works.
What each Stop removes, and what stays:
| Removed by Stop | Stays until you remove it |
|---|---|
| The public link (Funnel), the server's container, the key on your clipboard, the keep-awake | The key in your keychain, until you reset it |
| The server entry, the skill and the saved agent in the chat; your uploaded field notes and conversations | |
| Your vault, and every change in it, on your Mac | |
| Colima (or Docker Desktop), and the server's image |
Stop¶
Stage: code. Done by: coder.
- In the menu bar: open SCATLAB's menu and click Stop. Stop switches off the public link, removes the server, lets your Mac sleep again and clears your clipboard of the key. The key stays in your keychain.
- In SCATLAB: read the alert titled "SCATLAB stopped" and click OK. SCATLAB quits, and its dot leaves the menu bar.
- In a web browser: open the address that ended in
/mcp. It should not load.
When Stop could not confirm. The alert is titled "SCATLAB has a problem" and says "Stopped, but I could not confirm:" and what. SCATLAB stays open with a red dot. Do not open SCATLAB again: that would start a new chat run. Choose Stop again, or restart your Mac. If the public link may still be on, open Tailscale and switch Funnel off; if the server container is still there or your Mac may stay awake, restart it; if the key is still on your clipboard, copy something else over it.
A problem while SCATLAB is starting is different: choose Stop, fix the cause, then open SCATLAB again.
Stop does not stop Colima; to stop it too, run colima stop in a terminal.
Clean up¶
Stage: code. Done by: coder.
Nothing has to be removed from the chat at the end of a chat run. The server entry works only while SCATLAB runs, and its key stays valid, so keep the entry, the skill and the saved agent. Your uploaded field notes and conversations stay in the chat account until you delete them there; how long the provider keeps them is the provider's term. Your vault is on your Mac and is not touched.
If your data policy asks for everything to be removed after each chat run, follow Leave no trace.
What leaves your machine¶
Your field notes, and everything the assistant reads from your vault through the tool, go to the chat provider's service and to the model provider behind it. Settle what is allowed before you begin: see Data, rights and consent. If the terms do not allow it, code without the assistant, as in Coding. The key protects the server only from people who do not have it.
When something goes wrong¶
SCATLAB shows a problem as a red dot, a Problem: line in the menu and one alert, "SCATLAB has a problem". Unless a row says otherwise, do what it asks, then choose Stop in the SCATLAB menu, then open SCATLAB again. Quotes are SCATLAB's words; long ones are cut with "...". For a message not in the table, send the helper the exact words.
| SCATLAB says | Do this |
|---|---|
| "SCATLAB needs a container runtime: Colima or Docker Desktop. Neither is installed. ..." | Ask the helper to install Colima (or Docker Desktop). |
| "Colima would not start. Restart your Mac, ..." or "Docker does not answer. Restart your Mac, ..." | Restart your Mac. If it still fails, tell the helper. |
| "Docker Desktop is not running. ..." | Open Docker Desktop and wait until it says it is running. |
| "SCATLAB needs Tailscale, ..." or "Tailscale is not running or you are not signed in. ..." | Ask the helper to install or sign in to Tailscale. |
| "Tailscale needs HTTPS switched on, once, ..." (a dialog with Open the page and Close) | Read the Mac's name the dialog shows, click Open the page, switch on Enable HTTPS. |
| "The public link did not start." (a dialog with Open the page and Close) | Click Open the page and approve Funnel. |
| The check warns that a layer holds more pages than its cap (SCAT-CAP). | Nothing is refused. A cap is a planning figure and an upper bound: cluster pages into others that say the same, or ask the organiser to decide a higher figure, which the setup person writes as the layer's entry under [caps] in scat.toml if the plan allows. The assistant cannot change it. |
| "The vault folder I remembered is gone (...). Choose it again on the next screen." | Not an error. Choose the folder that holds scat.toml. |
| "No vault was confirmed, so nothing was started." or "No vault was chosen, ..." or "I cannot open that folder." | Open SCATLAB again and choose your vault folder. |
| "Your vault is in ..., a folder that macOS keeps private from the server's container, ..." (Copy and Cancel) | Click Copy; your original stays where it is. Or move the vault outside Documents, Desktop, Downloads and iCloud. |
| "Nothing was copied or started. ..." or "... ~/SCAT/vault already exists, so I will not copy over it." | Move your vault outside those folders, or choose ~/SCAT/vault, or click Copy. |
| "The copy failed, so nothing was started. ..." | If macOS asked whether SCATLAB may use your Documents folder, click Allow. |
| "Fetching the server, once." or "Building the server, once. ..." or "Starting Colima, ..." or "Waiting for the server to answer." or "Switching on the public link." | Wait. Not an error. |
| "Copied your vault to ~/SCAT/vault. Remember: edits made there must be pulled back through git." | Not an error. See "Start a session". |
| "The server's recipe is missing from this copy of SCATLAB. ..." | Ask the helper for a fresh copy of the app. |
| "Building the server failed. ..." | Check you are online. |
| "I could not keep a key in your keychain. ..." | If macOS asked for permission, click Allow. |
| "The server would not start: ..." | Make sure no other SCATLAB is open and the port is free. |
| "The server stopped right after starting. ...", "The server did not answer within ... seconds.", "The server answers but does not accept its own key." or "SCATLAB stopped unexpectedly." | If it repeats, tell the helper. |
| "SCATLAB is already running. ..." | Open its menu and choose Stop, then open SCATLAB again. |
| "Stopped, but I could not confirm: ..." (after you chose Stop) | See "Stop". Do not open SCATLAB again. |
| "SCATLAB is running. ...", "The address is on your clipboard." or "The key is on your clipboard." | Not an error. See "Connect the chat". |
| "SCATLAB stopped" (an alert) | Not an error: Stop worked. See "Stop". |