Host guide: share a folder with smurg

This guide is for the host: the person who runs smurg host on their own computer to share a project folder with teammates. Teammates should read the guide for teammates. This guide in 繁體中文.

New here? Start with the quick start.

What your team does in a workspace: you start a topic (a feature or a task), everyone discusses it with an agent that asks multiple-choice questions and writes a spec, the agent turns the spec into a plan of work items, one agent per work item does the work in its own git worktree, smurg merges each item whose report says it is complete and verified into your folder (unless you merge each item yourself, §10.3), and the team checks the result at the end. The agents are Claude Code, running on your computer with your Claude account. The guide for teammates describes the flow step by step; this guide is about what it means for you and your computer.

1. Install

One line installs smurg (macOS: Apple silicon, Intel; Linux: x64, arm64, glibc):

curl -fsSL https://smurg.ai/install.sh | sh

https://smurg.ai/install.sh only redirects to https://downloads.smurg.ai/latest/install.sh, the installer of the newest version. The installer downloads that version's executable from https://downloads.smurg.ai/v<version>/ and checks it against the same version's SHA256SUMS. To install a specific version, run that version's installer: curl -fsSL https://downloads.smurg.ai/v<version>/install.sh | sh (replace <version> with a version number of the form X.Y.Z).

The installer downloads a single executable for this computer (no Node.js needed), installs it to ~/.local/bin/smurg only if its sha256 matches that version's SHA256SUMS, and tells you how to add ~/.local/bin to your PATH (open a new terminal afterwards). On every platform it installs just this executable: no sudo, no system packages.

2. Log in to the relay

The relay is smurg's server: it handles login and forwards encrypted data between your computer and your teammates. Invite links and the web app's workspaces also live at the relay's address.

smurg login          # without --relay, the shared relay (§2.1)

The terminal prints an address and a code:

On any device (a computer or a phone), open:
  https://app.smurg.ai/device
Enter the code: WDJB-MJHT   (valid for 10 minutes)
  1. Open the address in a browser on any device (this computer, another computer or a phone) and log in with your Google account.
  2. Enter the code from the terminal (case and the "-" do not matter) and press "Next".
  3. The page lists the account that will be logged in, where the request came from (IP address and approximate location) and when. Press "Allow" only if you yourself just ran smurg login in a terminal; if someone else gave you the code, press "Deny". A few seconds after you press "Allow", the terminal says "Logged in to …".

2.1 The shared relay (default)

smurg's maintainer runs a relay on Cloudflare that anyone may use: https://app.smurg.ai (it is also the web app: teammates' invite links and workspaces are at this address). A released smurg uses it by default, so you do not need to deploy anything; you only need a Google account (hosts and teammates both log in with Google).

What the relay can see:

Limits of the free plan: the shared relay runs on Cloudflare's free plan, and everyone who uses the shared relay shares one fixed daily quota:

2.2 Other relays (--relay)

The relay's source code is public (MIT), so you can run your own relay: it is a Cloudflare Worker that you deploy with your own Cloudflare account (the free plan is enough) and your own Google OAuth client, and it serves the web app too. The steps are in the relay's README, apps/relay/README.md. Once it runs, name it with --relay:

smurg login --relay https://relay.example.org      # your relay's address; that relay decides which login buttons appear
smurg host ~/projects/my-app                        # uses the relay you last logged in to

The relay is chosen in this order: --relay, the environment variable SMURG_RELAY_URL, the relay you last logged in to, and only then the shared relay. To go back to the shared relay: smurg login --relay https://app.smurg.ai. The invite links you print point at the relay you use, so teammates need no setup. A relay also serves the web app, and the web app, your smurg and every smurg attach must speak the same protocol version (§9.1): deploy your own relay again whenever you update smurg, before you share again.

3. Share

smurg host ~/projects/my-app

smurg host runs in the foreground, and the terminal prints just two links:

smurg is sharing "my-app"

Your link (for you only):
  https://app.smurg.ai/join/ws_…#k=…&s=…

Link for your teammates (send it to them privately; valid for 7 days):
  https://app.smurg.ai/join/ws_…#k=…&s=…

Press Ctrl-C to stop sharing.

The terminal does not repeat this guide: read §4 before you share for the first time; Agent access, what agents may do by themselves and how your own Claude Code settings count are in §5; what a topic asks of you is in §10. For details while sharing, use smurg status (§7): the daemon key fingerprint, Claude Code and the agent sessions, keep-awake, and where the log is. The terminal speaks up only when you need to act: the computer cannot be kept awake (§6), the connection to the relay is lost, the relay refuses your login, or the state file cannot be written (§7); when a new version exists, one more line appears under the links (§9.1). The first time you share after an update, one line above the links says that the workspace was carried over (§9.2), after the update to 0.6.0 one more says that agents now run in auto mode (§5.2), and after the update to 0.7.0 one more that work items merge by themselves (§9.2). While you let agents ask for nothing, a line above the links says so at every start (§5.2). Under the links, before anything goes on, a line says which topics go on by themselves (§10.5).

Daemon key fingerprint: the first time a teammate joins, they can check this fingerprint with you over another channel (in person, on the phone) to make sure nobody, the relay included, is posing as you. smurg status shows it (the "Daemon key fingerprint" line).

Roles: Viewer (viewer) can only look; Editor (editor) can edit files, vote and comment on agents' questions, review result reports and send suggestions to agents; Agent access (agent) can also start topics and work items, send messages to agents, allow what agents ask to run and open terminals on your computer as you (§5.1). Later you can manage members, roles, invites and sessions, and read the audit log, in the host console of the web app.

When you share a folder again later, its topics and the agent sessions of last time are still there, with their conversations, and their plans go on by themselves where they stopped, except a plan a person paused (§7, §10.5).

4. Before you share

smurg host does not print these reminders in the terminal: read them before you share for the first time.

5. Agent access and agents' shell commands

5.1 The Agent access role (read this first)

Agent access (agent) is the highest role you can give a teammate. A teammate with this role can:

These sessions run on your computer as you, exactly like the ones you start in your own terminal:

The risk: giving someone Agent access means letting them use your account on your computer. They can:

smurg cannot limit any of this: a teammate with agent access can open a terminal, and can allow whatever an agent asks for. Everyone in the workspace sees every session live, and the audit log records who opened each session, every message to an agent and every answer to a permission request, but that only tells you afterwards what happened. Give this role only to people you fully trust, for example someone you would hand your logged-in computer to. Make everyone else an Editor: they can edit files with you, vote on agents' questions and send suggestions to agents, and you or someone with agent access decides whether to accept them.

In auto mode, the default (§5.2), a command of any agent session, a teammate's included, that reaches outside the shared folder runs when Claude Code's check allows it; §5.2 says where smurg still asks first.

After taking it back: while they had Agent access, they could read and copy anything your account can read, and leave things on the computer that run by themselves later. If you no longer trust them, or are not sure what they did, do all of this:

  1. Replace the workspace's keys and invite links: note the workspace code from smurg status (after stopping, smurg status no longer lists it), stop sharing with smurg stop, move ~/.smurg/workspaces/<workspace code>/ somewhere else (for example, add .old to its name), then share again with smurg host. The daemon key and the secrets of the invite links are all new (they may have read the old ones); your other teammates join again with a new invite link.
    • Teammates who joined before see "The host computer's key has changed" when they use the new link (the web app and smurg attach both ask before going on). Look up the new daemon key fingerprint with smurg status and tell them over another channel (in person, on the phone), so they can compare it before they continue.
    • The topics, the conversations and the audit log of the workspace are in the folder you moved: the new workspace starts without them. The spec, plan and report files are in the project itself and stay.
    • The old worktrees are still in <folder>/.smurg/worktrees/: the new workspace state does not know them, teammates cannot see them, and smurg can no longer merge or remove them. Review the changes you still want, merge them into the main workspace yourself, then delete those folders.
    • If you only stop and share again without moving that folder, the keys and the invite links that have not expired stay the same.
    • At its first start the new workspace names the folder you moved, in one line that begins "An earlier state folder of this workspace lies beside the one in use". The line is also there for hosts who moved a folder because smurg 0.5.0 told them to (§9.4). You moved yours on purpose: leave it where it is, never move it back (the keys you wanted to replace are in it), and delete it once you no longer need its conversations and its audit log.
  2. Replace the relay login: smurg logout, then smurg login. A relay login cannot be revoked early: if they copied the old one (~/.smurg/credentials.json), it keeps working until it expires (at most 7 days after the login).
  3. Replace your other credentials: the Claude Code login (run claude in your terminal, /logout, then /login; with an API key, make a new key), the keys in ~/.ssh, and the credentials of the other programs and cloud services in your home folder.
  4. Check the places that run things automatically, and remove whatever you do not recognize:
    • shell startup files: ~/.zshrc, ~/.zprofile, ~/.bashrc, ~/.bash_profile, ~/.profile;
    • scheduled jobs: crontab -l;
    • programs that start at login: ~/Library/LaunchAgents/ on macOS; on Linux the systemd user services (~/.config/systemd/user/, systemctl --user list-unit-files) and ~/.config/autostart/;
    • ~/.ssh/authorized_keys: an extra key lets someone log in to your computer directly, without smurg;
    • Claude Code's settings: the hooks and the permission rules in ~/.claude/settings.json (your own allow rules apply to every agent here, §5.3), and ~/.claude/CLAUDE.md (every later agent follows it);
    • your git projects (the shared one and the others): the scripts in .git/hooks/, and git settings that run programs, for example git config --show-origin --get-regexp 'core\.(fsmonitor|hooksPath|sshCommand)' (look at ~/.gitconfig too);
    • programs that are still running: when a session ends, smurg ends the programs it can find, but a program that deliberately detached from its session may keep running under your account, and it can type into any terminal session, yours included, through the control socket on this computer (the one smurg attach uses). If you are not sure, restart the computer after the checks above.
  5. Logs cannot tell them from you: what they did through a session under your operating-system account looks, in the logs of the system and of other programs, exactly like what you did yourself. smurg's audit log records who opened a session, every message sent to an agent, every answer to a permission request with the whole command, and every command an agent ran without a request; it does not record what was typed into a terminal session. The control socket on this computer (the one smurg attach uses) can only list sessions and attach to terminal sessions; it cannot message agents, answer their requests, vote, start work, change roles, approve merges, remove members or change settings in your name. But until you took the role back, they could do anything your operating-system account can do.

5.2 What agents do by themselves, and what they ask first

Before every single tool call of an agent, smurg's own gate runs. It runs before Claude Code's own permission system and holds whatever your Claude Code settings allow. What then runs without a person depends on the session's permission mode and on where it works:

Agents here ask for nothing: every command runs as you, with no check by Claude Code and no question from smurg (only smurg's fixed limits stay). To change it, choose another mode in the host console's settings. Guide: https://smurg.ai/docs/hosting/#52-what-agents-do-by-themselves-and-what-they-ask-first

Permission requests. When an agent asks (its mode asks, smurg's check asks, or Claude Code's check refused three commands in a row), a card appears in its conversation and in an inbox, and the agent waits. The card shows the whole command (or the whole diff of an edit, or everything the tool was given), where it would run and Claude Code's reason (smurg's own reason when it is smurg that asks, above and §5.3). A request that is too large to show whole is denied, never shortened. Nothing is left out of what is shown: a character nobody can see (an invisible or zero-width character, one that changes the direction of the text, a control character) is written out as a mark you can see, in a command for example as <U+202E>. A long command or diff stands in a box that scrolls; the card says how many lines it has, and the two buttons that allow stay disabled until every such box was scrolled to its end: "Allow is available once you have scrolled to the end of what is asked."

5.3 Your own Claude Code: allow rules, MCP servers, project settings, CLAUDE.md

Your own allow rules apply. If your own Claude Code settings (~/.claude/settings.json) already allow some commands without asking, they are allowed for the agents here too, exactly as in your own terminal: such a command runs without a permission request, also when the agent works for a teammate. smurg tells you once which of your rules apply: an inbox item, "Your own Claude Code rules apply here", opens the list; it is information, there is nothing to confirm ("Agents here run them without asking too."). The list stays in the host console under "My own Claude Code rules"; smurg status shows how many apply (§7), and you and members with agent access can read the list in a session's permission menu. smurg learns the rules from Claude Code when an agent starts: until the first agent session has started, the list is empty and smurg status says "none apply to agent sessions". When a new rule appears later, you are told again. The list names where each rule comes from: your user settings, the project's settings (once you confirmed them, below) or managed settings. To keep a rule from applying here, remove it from your own Claude Code settings. The limits of §5.2 hold regardless of your rules: a discussion agent stays without a shell, smurg refuses an agent's edits of Claude Code's settings and commands that name them, and a command that could change a script of the project settings still asks (below).

Your settings of auto mode apply too. The autoMode rules in your ~/.claude/settings.json (what Claude Code's check allows and refuses) apply to the agents here as in your own terminal. disableAutoMode turns auto mode off, and disableBypassPermissionsMode turns "Asks for nothing" off, for every agent here: the sessions fall back as §5.2 says, and the host console's settings say which one your Claude Code turned off. Of the CLAUDE_CODE_* environment variables, agents get only those that choose your provider and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, so one that changes auto mode in your shell (CLAUDE_CODE_AUTO_MODE_MODEL, say) does not reach them.

Your MCP servers, connectors and plugins are off for agents unless you switch them on in the host console's settings ("Agents may use my own and this project's MCP servers"; never for a discussion agent). Think before you do: an agent that any member with agent access can direct could then call those servers (mail, a drive, a chat), and their answers show to every member. With the switch on, such a call is a permission request that shows everything the tool was given, and the servers of the project's own .mcp.json also need the confirmation below.

Claude Code project settings. A shared folder can hold Claude Code settings of its own: the three settings files (.claude/settings.json, .claude/settings.local.json, .mcp.json) and everything else below .claude/ (agents, skills, commands, rules). They can run commands (hooks, MCP servers), change permissions and set environment variables. In your own terminal Claude Code asks whether you trust a folder before it loads them. An agent session in smurg never shows that question, so smurg asks you instead:

CLAUDE.md is yours to edit. Claude Code reads CLAUDE.md and CLAUDE.local.md as instructions, and agents here run as you. Through smurg only you can change these files, at any depth of the folder; teammates see them (not CLAUDE.local.md) and cannot change them, and no agent of a teammate's session can. smurg never merges a work item whose changes touch such a file by itself, and does not offer it for merging from its report: it waits for you with the files named, and you can ask its agent to take them out, or request the merge yourself and merge it after reading the diff (§10.3). The review of the project settings does not show these files: agents read them whenever the folder's settings are in use or the folder has none. Read the CLAUDE.md of a repository that came from somewhere else yourself before you share it.

5.4 Conversations on your disk

5.5 Notices of agents' shell commands

On by default; turn it off with --no-bash-attribution. The setting is fixed when sharing starts: to change it, stop sharing and run smurg host with the new option (the workspace and its members for that folder are kept, and teammates do not have to join again). smurg status shows whether it is on while you share (§7).

When an agent changes a file with tools such as Edit or Write, smurg knows which agent did it. When an agent changes files with a shell command (sed -i, a formatter), smurg could only show the change in the activity feed as "Outside program". Now:

With the setting off, files that agents change with shell commands show as "Outside program" in the activity feed. File locks and conflict handling are not affected by this setting.

6. Keeping the computer awake

While sharing, smurg keeps the computer from going to sleep when idle (macOS: caffeinate; Linux: systemd-inhibit). Closing a laptop's lid still puts it to sleep; teammates then see "Host offline". When the computer cannot be kept awake (for example, Linux has no systemd-inhibit), or that stops working later, smurg host prints a warning in the terminal; with --no-keep-awake it prints nothing. smurg status shows the current state (the "Keep-awake" line).

When you start smurg host over SSH on Ubuntu, the system (polkit) does not allow keeping the computer awake by default, and smurg host prints "Warning: keep-awake: off (the system (polkit) does not allow blocking sleep, …)" (verified on Ubuntu 24.04; other distributions, or an organization's own polkit rules, may refuse too, with the same message). To keep the computer awake, start smurg host after logging in on that computer's desktop; a server without a desktop usually does not go to sleep by itself anyway.

7. Status and stopping

smurg status          # the workspaces this computer is sharing (see below)
smurg stop            # stop sharing: disconnects everyone, ends terminal sessions, pauses agent sessions

smurg status lists every workspace being shared (everything smurg host does not print at start is here):

Pressing Ctrl-C in the terminal of smurg host does the same as smurg stop (stopping takes a few seconds; pressing again within 2 seconds does not interrupt it, and pressing once more after that ends it at once, possibly before everything has stopped).

What a stop does to sessions. Terminal sessions end. Agent sessions are paused: their agents stop, what their commands started and left running (a dev server, a watcher) is ended as well, their conversations are kept, and smurg says how many there are, for example 3 agent sessions are paused. They continue when you share this folder again. It also says how many topics will go on by themselves at the next start; to keep one stopped, press "Pause" in its plan before you stop smurg host (§10.5). When you share the folder again, every conversation is readable, and plans go on by themselves after smurg host has said which: the work items that were interrupted are told to continue, and the ones that were waiting start when they may. A plan that a person paused stays paused until you or a member with agent access presses "Continue all", and so does one with a work item that ran directly in the shared folder (§10.5); a discussion or a session without a topic goes on with its next message. A message that was still waiting for its agent is kept and is delivered, in order, when that session next starts. An agent that was in the middle of its work says so: "smurg was restarted on the host's computer. The agent's turn was interrupted"

If smurg host ends without stopping properly (a crash, a kill, the computer losing power), the agents' own processes may outlive it for a moment. They cannot do anything: every tool call of an agent is checked with smurg first and is refused while smurg is gone. An agent can still receive some text from the model until its turn ends, which is usage on your account. After the next start smurg ends what is left, and the conversation says "smurg stopped while this agent was working. The agent may have gone on for a moment by itself: check its changes."

While sharing, smurg host tells you in the terminal when the connection to the relay is lost and when it is back, when the relay refuses your login (it expired; teammates cannot connect), when your login is about to expire (within 24 hours), when smurg's state file cannot be written, and once when the repository tracks smurg's own .smurg folder (§10.2). When the login has expired or is about to, run smurg login in another terminal (with the same account; if the relay you share through is not the one you last logged in to, add --relay <its address>): smurg host switches to the new login within seconds, and you do not have to share again.

To attach to a terminal session in your own terminal: smurg attach (lists the terminal sessions, then the agent sessions with their topic and status), smurg attach <number>; Ctrl-] detaches. Agent sessions are conversations: they open in the browser, not in a terminal.

8. Troubleshooting

You seeCause and what to do
"Cannot reach the relay" / "the relay refused the request"; teammates see "Server unreachable"Check your network first. On the shared relay, today's free quota may also be used up (§2.1): it comes back after 00:00 UTC (08:00 in Taiwan).
"This folder is already being shared" / "A folder above this one is already being shared"Only one smurg host can share the same files at a time (whatever the relay). Look with smurg status, or stop it with smurg stop.
"the relay refused this computer's login"Your relay login expired or is no longer valid. Run smurg login in another terminal (§7); smurg host reconnects by itself.
At login: "The code expired; the login did not complete"The code was not entered and allowed in a browser within 10 minutes. Run the command again (§2).
The page where you enter the code says "That code is not correct or is no longer valid." / "Too many wrong codes."Make sure it is the newest code in the terminal (8 letters, no digits). A code stops working once it was used, denied or expired; after too many wrong codes you wait a few minutes (the page says how long).
"This relay does not support logging in with a code yet"The relay you named with --relay is older than your smurg. Ask whoever runs that relay to update it.
"smurg's state file could not be written"The disk is full or a permission is missing. The change you just made (removing a member, changing a role, revoking an invite) is in effect now, but if you stop sharing before a write succeeds, it is gone after the restart.
smurg host does not start and names a file of the workspace's state (or the workspace itself). One of the next lines is "Nothing was changed." (after "What does not fit: …" for a file in an unknown form) or, when the system would not open or write a file, "smurg host did not start, and nothing in the workspace was changed or reset: …"smurg read the workspace's state (~/.smurg/workspaces/<workspace code>/) and cannot use what it found: a newer smurg wrote it, a file is open to other users or belongs to someone else, a file is damaged or missing. §9.3 has every message and what to do for each. Do not move the folder away: that gives up the members, the invite links and the daemon key.
Above the two links: "An earlier state folder of this workspace lies beside the one in use"You (or smurg 0.5.0's advice after an update) moved this workspace's state folder away earlier, and the workspace in use now is a new one. §9.4 says how to go back to the old one, and when not to. The line is printed once.
Above the two links: a warning that an older file "was put back into this workspace and upgraded again"Someone put a copy that smurg had kept before an upgrade back in place of the file in use. Everything decided since that copy was made is undone (§9.2): go through the members, the roles and the invite links in the host console now.
Under the two links: "Warning: a teammate's page or smurg is newer than this smurg and was turned away. Stop sharing, run smurg update, then share again."A teammate tried to connect with a newer web app (the relay was updated) or a newer smurg than yours, and the two do not speak the same protocol version. Until you update, nobody with the newer one can connect. Do what the line says (§9.1). It is printed once per run, and only for a teammate the workspace knows.
Under the two links: "A teammate's page or smurg is older than this smurg and was turned away. That teammate reloads the page or updates smurg; if you run your own relay, deploy it again."A teammate still has a tab from before an update open, or an older smurg on their computer; or the relay you share through still serves an older web app. The teammate reloads the page or runs smurg update; your own relay needs a new deploy (§2.2).
Teammates see "The host's smurg is older than this page"The relay serves a newer web app than your smurg can talk to. Stop sharing, run smurg update, share again (§9.1).
smurg status says "A smurg host of another version is sharing it", or smurg host, smurg update, smurg uninstall or smurg attach say that a smurg host of another version is sharingThe smurg command was replaced while a smurg host of the earlier version kept running (an install over a running share, for example), and the two cannot talk to each other. Stop the one that runs (smurg stop works across versions, or press Ctrl-C in its terminal), then start it again with smurg host. smurg status ends with exit code 5 in this case (0: a share is shown; 3: nothing is shared). A known limit: beside a smurg host of 0.4.0 that still runs, smurg status shows its usual lines and exit code 0, because 0.4.0's answer names no version; smurg attach does say that another version is sharing.
A teammate's page, or your own, says "Security warning: connection refused", or a link asks "The host computer's key has changed"That browser or computer recorded another daemon key for this workspace than smurg host has now: you replaced the workspace's keys (§5.1 "After taking it back", step 1, or the last resort of §9.3), or you went back to a state folder you had moved away (§9.4 says who is affected). The warning's only way on is a link: open "Your link" yourself, send a teammate a new invite link, and tell them the daemon key fingerprint that smurg status shows over another channel (in person, on the phone), so they can compare it when the link asks about the changed key. If you did none of these, tell them not to continue: someone may be posing as you.
"The path of smurg's state folder is too long for a Unix socket"Set SMURG_HOME to a shorter path (the path of a Unix socket has a length limit).
Teammates see "Host offline"smurg host is not running, or the computer is asleep or has no network.
A topic or an agent session cannot be started: "Claude Code is not logged in on the host's computer, so no agent session can be started. The host must run claude and log in." (a session that is already open says "Claude Code is not logged in on the host's computer.")Every agent uses your Claude Code login on this computer (§5.1). Run claude in your own terminal and log in; nobody can log in from inside a session. Then choose "Check login again" in the session, or send the next message.
"Anthropic rejected the host's Claude Code login. The host must log in again in their own terminal."The login on this computer is no longer accepted. Run claude in your own terminal, log out and log in again.
An agent session cannot be started, and the sentence ends with "The host should update Claude Code."Agent sessions need Claude Code 2.1.288 or later (§1); the sentence names the version it found. Update Claude Code (claude update, or the way you installed it). smurg status shows the version smurg sees.
"The claude command was not found on the host." / "Claude Code did not answer when the session started. The host should check that claude runs in a terminal on their computer."Claude Code is not installed for your account, is not in the PATH that smurg host was started with, or does not start. Run claude in the terminal you start smurg host from. A session that failed has "Try again"; after three failed starts only you can try again.
"The host's Claude account has reached a usage limit." (your inbox: "The host's Claude account reached a usage limit")The account claude is logged in to has no usage left for now. Every agent waits, and the web app says when the limit resets if Claude Code reports it. When the account works again, smurg asks each work item that stopped on the limit to continue ("The host's usage limit has reset: smurg asked Claude to continue"; this was not tried with a real account); another session goes on with its next message. Many agents working at once use a subscription's allowance quickly (§10.4).
A work item says "Stopped without a report" or "Stopped by a person, no report"Its agent ended its turn without writing the result report, although smurg asked it once more ("smurg asked Claude for the result report"); or someone stopped it before it had written one. Open the session to see where it stands; "Continue" asks the agent to go on.
A work item says "Stopped on an error, no report", and its conversation says "smurg could not read this item's changes, so its report is not registered yet. It tries again when the agent's next turn ends."The agent wrote its report, but smurg could not record the item's changes with it: someone kept typing in the worktree, there is a git repository inside it, or git took too long. No report appears until it can. smurg lets a work item's agent go on once by itself, a minute later ("smurg could not record this work item's changes: it asked Claude to continue and records them after that turn"); otherwise "Continue" lets it go on. The report is registered when its next turn ends. A later version of a report that cannot be recorded leaves the earlier version in place and shows the same sentence.
An agent session cannot be started: "The path of this session's folder has a backslash or a control character in it. Claude Code's permission rules cannot name such a folder, so no agent session can be started there. The host should rename the folder."Rename the shared folder, or the folder above it that has the character, and share again. Files and terminals work in such a folder; only agent sessions are refused. Spaces, parentheses, brackets and other signs in a path are fine.
A work item says "Failed" (your inbox: "the agent's process failed"), or its session shows "The agent's process ended unexpectedly"Claude Code's process ended. smurg starts a work item's agent again once by itself, a minute later ("Claude's process stopped: smurg started it again once and asked it to continue"); after that, "Try again" continues the same conversation. If it keeps failing, look at the daemon's log (§7).
A work item says "The plan changed: Start again" (your inbox: "did not start"): "The spec or the plan changed since Start. This item did not start."A work item starts only from the spec and the plan that someone confirmed when they pressed Start (§10.2). Open the plan, look at what changed and press "Start again" on the item.
A work item did not start: "How smurg keeps this folder's history changed since Start. Look at the plan and start the item again."The history its Start chose cannot be used now: git went missing or stopped working, the folder's .git went away or appeared, or smurg's own history was refused (the rows below). An item runs only in the history its own Start said; it never moves to another one, and never runs directly in the folder by itself. Put right what changed and press "Start again" (§10.2).
A work item says "Not merged: not complete (partial)", "Not merged: not complete (blocked)" or "Not merged: the report cannot be read" (the inbox of whoever decides: "… was not merged: …")Its report says the work is not finished, or smurg could not read the report after asking the agent to fix it: smurg merges only what its report says is complete and verified (§10.3). The item's responsible person decides when they have agent access, otherwise you and the members with agent access; after the waiting time (§10.6) all of you. Write what to change under the report ("Ask the agent to fix it"), or "Leave it out…"; you can also read the diff with "Merge…" and merge it as it is. Only this item and what depends on it wait. Without git (§10.2) such an item keeps what depends on it from starting, and you can press "Accept as it is".
"Not merged: a check failed" or "Not merged: no check passed"The report lists a check that failed, or none that passed. The same choices as in the row above: usually a follow-up that asks the agent to make the check pass and to say so in its report.
"Not merged: it does not merge cleanly"The item's change conflicts with what other work items merged since it started, and its agent did not resolve it in three tries (§10.3). "Ask the agent to resolve" tries again (it is not counted), "Merge…" shows the conflict, or "Leave it out…".
"Not merged: it conflicts with Amy's change of src/app.ts" or "Not merged: it conflicts with a change of src/app.ts made outside smurg"The other side of the conflict is a person's change (yours, a teammate's, or a commit made outside smurg), not a work item's. smurg never lets an agent resolve over a person's lines by itself: the item's foot names each file and who changed it, and whose lines stay is a person's decision. "Ask the agent to resolve" (its message says which files hold a person's change, and that it stays), merge it yourself after reading the diff, or "Leave it out…".
"Not merged: Amy wrote to the agent after its report", "Not merged: its last turn did not finish" or "Not merged: its report was not checked again after its last change"Someone wrote to the item's agent after its report and no new version came, a later turn was stopped (or ended on errors smurg did not continue any more, §10.5), or the agent changed files and did not check its report again, although smurg asked it once. Its version merges only when a person says it stands: "Merge it as it is" (agent access), a follow-up, "Continue" for a turn that did not finish, or "Leave it out…".
"Merged; a later change is not merged: its worktree holds changes that were never merged" or "Merged; a later change is not merged: its last turn did not finish"The item is merged, and its worktree holds a later change no merge carried: a member saved a file there, its agent changed files with a command after its report, or a later turn was stopped or cut by a restart. Or a message to its agent waits that a restart left undelivered (the foot then says so, §10.5). The merged version stays in the folder. Its responsible person decides (when they have agent access, otherwise you and the members with agent access): "Continue" lets its agent take the change into a new version, which merges like the first one. Until then the topic is not ready to check.
"Not merged: the host did not merge it"You rejected its merge request. Write a follow-up under the report, or "Leave it out…".
"Not merged: it changes files only the host may merge"Its change touches files only you may change (§5.3), the topic's own SPEC.md or PLAN.md, a link pointing out of the project, or smurg's .smurg; the item's foot names them. Only you decide: "Ask the agent to take them out" (it undoes its changes to them and keeps the rest), "Request merge" on the item and merge it after reading the diff, or "Leave it out…".
"Not merged: Amy edited files of it by hand"A member without agent access (an Editor) edited files in the item's worktree: smurg does not merge such edits unread. A member with agent access could have had the agent make the same edit, so theirs merge like the agent's. Read the diff with "Merge…" and merge it, or "Leave it out…".
"Not merged: uncommitted changes in the main workspace are in the way"In the folder's own git, a file the merge touches has uncommitted edits (they may be a teammate's), and smurg never overwrites them. Commit or undo them: smurg merges the item by itself once that is done (it looks again when those files change, at the latest every minute).
"Not merged: files in the main workspace are in the way"Files git does not track lie where the item adds its own. Move them away (smurg never overwrites them), or leave the item out; smurg merges it by itself once they are moved.
"Not merged: changes are staged in the main workspace"Something is staged in the main workspace (git add), and git does not merge over it. Commit or unstage it; smurg merges the item by itself then. Your own merge says "Changes are staged in the main workspace (git add), and git does not merge over them. Commit or unstage them, then merge."
"Not merged: the main workspace is on another branch"The main workspace was switched to another branch (or to none) after the Start: smurg merges an item only into the branch its Start committed on, while that branch still holds the Start's commit (§10.3). Switch back to it (the item's foot names it); smurg merges by itself then.
"Not merged: git has been busy in the main workspace for a while", or a work item says "Waits to merge: git is busy in the main workspace"A merge, a rebase or a similar git operation is in progress in the main workspace (for ten minutes, in the first case). Finish or abort it; smurg merges by itself then. When it is a merge smurg was making when it stopped (its message ends with Merged-by: smurg (automatic merging, the host's setting)), finish it with git commit or run git merge --abort.
"Not merged: an undo was interrupted in the main workspace"smurg stopped in the middle of an undo (§10.3), and the main workspace is between the two. Put the files back with git restore --staged --worktree -- <paths> (git status lists them). smurg goes on by itself then; until it can, nothing merges or is undone by itself.
"Not merged: smurg's own history of the folder changed" or "Not merged: smurg cannot merge it"smurg's own history was changed by something other than smurg (the rows below say what to do), or git merge failed twice for another reason. "Merge…" shows the error in words; or "Leave it out…".
A work item says "Waits to merge: Amy is editing"Someone is typing in a file the item changes. It merges by itself when they stop.
Start is refused: "The shared folder is not a git repository, so worktrees cannot be used."The folder has a .git that git does not take as a repository (an empty .git folder, for example), and smurg keeps no history of its own beside a .git. Look at that .git: if it was a repository a moment ago, put that one back; if it is empty, remove it, and the next Start uses smurg's own history (§10.2); or run git init in the shared folder and commit once (next row). No need to stop sharing. If a folder above is a repository, share that one.
Start is refused: "The shared folder's git repository has no commit yet, so no worktree can be created."Commit the project's files as in §10.2: a worktree holds only what is committed. If git asks who you are, run git config --global user.name 'Your Name' and git config --global user.email you@example.com, then commit again. No need to stop sharing.
Start is refused: "The shared folder's .git is gone, so worktrees cannot be used."The folder's .git was moved or deleted while there are worktrees or merge requests that still wait; Merge, the diff and a session that asks for a worktree are refused with the same sentence. Put that .git back: everything works again, without sharing again (§10.2). Do not run git init instead: a new repository cannot merge those requests. If that .git is lost for good, git init and a commit make Start work again, without those requests.
The Start dialog says "Without git: work items change the folder directly" and "git was not found on the host's computer, so worktrees cannot be used."Start still works, but its work items run one at a time directly in the shared folder, with no diff and no undo, and only you can start them, after ticking the dialog's box (§10.2). To get worktrees: smurg uses the first git on the PATH of the terminal that ran smurg host. Install git 2.42 or later (macOS: xcode-select --install, or Homebrew), check in a new terminal that git version answers, stop sharing and run smurg host from that terminal.
The Start dialog says "Without git: work items change the folder directly" and "The host's git is version 2.39.5, and worktrees need 2.42.0 or later."As in the row above, the items would run directly in the folder. That is the first git on the PATH of the terminal that ran smurg host. Update git (macOS: the Command Line Tools in Software Update, or brew install git), check in a new terminal that which git and git version show the new one, stop sharing and run smurg host from that terminal.
The Start dialog says "Without git: work items change the folder directly" and "git does not run on the host's computer, so worktrees cannot be used."As in the row above, the items would run directly in the folder. On macOS, /usr/bin/git needs Apple's Command Line Tools; without them it brings up macOS's offer to install them when smurg first looks for git (the first Start dialog of a folder without .git, for example; never when smurg host starts). Run xcode-select --install (on Linux, reinstall git). When git version answers in a terminal, stop sharing and run smurg host from that terminal.
A teammate's Start dialog says "Without git, only the host can start work items: they run directly in the shared folder."Without git, only you start or retry work items (§10.2). Start them yourself, or install git as in the rows above.
Start is refused: "The shared folder's .git is not an ordinary folder (the folder is a git worktree or a submodule, for example), so worktrees cannot be used."Worktrees are made only from a repository's main folder, where .git is a folder. Share that folder instead: it is another workspace, so send your teammates new invite links. Up to the plan, everything works in this one.
Start is refused: ".smurg/worktrees in the shared folder is not an ordinary folder, so worktrees cannot be used."Something replaced the folder where smurg keeps worktrees. Move it out of the shared folder (look at it first), stop sharing and share again: smurg makes the folder anew.
Start is refused: "smurg could not look at the shared folder's git repository just now. Try again in a moment."git failed or took too long this once. Press Start again; if it keeps happening, look at the daemon's log (§7).
Start is refused in a folder without .git: "The shared folder holds … in … files, more than smurg copies into a checkout for each work item (1 GB and 50,000 files at most)."smurg's own history would copy the whole folder into every work item's worktree (§10.2). The sentence names the three largest folders. Name large folders in a .gitignore, or as folders shared into worktrees in the host console's settings, or make the folder a git repository yourself (§10.2).
Start, a worktree or Merge is refused: "smurg's own history of this folder (.smurg/git) was changed by something other than smurg, so worktrees cannot be used."Something other than smurg changed .smurg/git (its settings, its branch, or what it reads from elsewhere), or the merge base differs from the one the review showed. smurg does not use it then: move .smurg/git out of the shared folder (look at it first). The merge requests made from the old one cannot be merged any more: reject them, and archive the topics whose work items used it (or end those sessions and remove their worktrees). Then the next Start makes a new history.
Start or a worktree is refused: "The shared folder holds a .smurg/git that this workspace has no record of …"You set worktrees.json aside (§9.3), or another workspace of this folder made that .smurg/git. smurg never takes over a history it has no record of. Move .smurg/git out of the shared folder: the next Start makes a new one.
A work item, a merge request or Merge says "smurg's own history of this folder (.smurg/git) is gone, so the work items and merge requests made from it cannot go on.".smurg/git was moved or deleted while work of it waits. Put it back if you still have it; otherwise reject those merge requests and archive the topics of those work items (or end their sessions and remove their worktrees: a worktree a session still uses is not removed). Then the next Start makes a new history.
A worktree is refused: "There is not enough free disk space for another work item's worktree …"Each worktree of smurg's own history is a whole copy of the folder (§10.2). Free some space, or name large folders in a .gitignore.
A teammate cannot create a worktree: "smurg has not checked git on the host's computer yet. …"In a folder without .git, smurg runs no git for a teammate's request until it has checked git itself. Open a topic's Start dialog once, or create a worktree yourself.
A session says "Claude Code could not use the model … on the host's account: it may not exist, or the account may not have access to it. Choose another model for this session."Your Claude account cannot use the model someone chose for the session (the API refused it). "Choose a model" in the session picks another, or the host's default.
A session says "Auto mode is not available for … This session asks before commands until it runs on another model."That model has no auto mode in your Claude Code (§5.2). Choose another model for the session, or leave it asking.
A session says "Claude Code did not start this session in auto mode: the host's Claude Code settings turn it off. This session asks before commands."Your Claude Code settings or your organization's set disableAutoMode (§5.3). Agents ask before commands until that changes; the host console's settings say so too.
A session says "Claude Code did not let this session run without asking: the host's Claude Code settings do not allow it. The session runs in auto mode."You chose "Asks for nothing", and your Claude Code settings or your organization's set disableBypassPermissionsMode (§5.3). The session runs in auto mode instead.
In auto mode a session's commands are all stopped: "Claude Code's check stopped a command: …", with a reason that says the check could not evaluate the commandClaude Code's check itself did not answer (your account, or the model of the check). Set the session to "Asks before commands" (its strip), and a person answers its commands instead (§5.2).
Under the two links: "smurg's own .smurg folder is committed in this repository: run git rm -r --cached .smurg in the shared folder and commit."A commit, a git add -A while sharing with smurg 0.5.1 or earlier for example, took smurg's share lock (.smurg/daemon-lock.json), which holds the path of your state folder. Do what the line says (§10.2): the files stay on disk, and .smurg/.gitignore keeps them out from then on. Until then git shows the lock as changed: git rebase refuses, and discarding changes (git checkout -- ., git stash, git reset --hard) puts back an old lock that lets a second smurg share the folder. Printed once per run.
Start is refused: "The spec and the plan could not be committed: git is in the middle of another operation in the main workspace."Finish or abort the merge or rebase in the shared folder, then press Start again.
A work item waits although nothing seems to run (the plan says "Waiting for a free agent")The limit of work items that work at once is reached (§10.4). Items that wait for a person count only once twice the limit is in use: answer the questions and permission requests in the inbox, or raise the limit in the host console's settings ("Work items running at the same time").
An agent session cannot be started, and the sentence ends with "Try again when one is idle."This computer already runs 32 agent processes, the fixed limit of one smurg host; it is not a setting. smurg puts an idle agent's process aside by itself to make room, but an agent that is working or waiting for a person keeps its process: answer what waits in the inbox, or end sessions you no longer need.
A teammate cannot start a topic or open a sessionOnly Agent access can (§5.1). To give it, change their role in the host console; read the risk in §5.1 first.
Files an agent changed with a shell command show as "Outside program" in the activity feedYou started sharing with --no-bash-attribution, or two or more agents were running shell commands at the same time, so smurg cannot tell which one it was (§5.5).
A new folder shows as "Outside program" in the activity feed and the audit log, although an agent, a merge or smurg itself created itsmurg attributes files, not folders: every new folder is recorded that way (a topic's folder under specs/, a folder an agent creates in its worktree, a folder a merge brings into the main workspace). The files in it are attributed to whoever wrote them.

All state (keys, logins, workspaces, conversations, log files) is in ~/.smurg (SMURG_HOME changes the place); the log files are in ~/.smurg/logs/ and contain no invite links.

9. Updating and removing

9.1 Update: smurg update

smurg update --check    # only check for a new version; download nothing
smurg update            # update to the newest version

New-version notice: after smurg host has printed the two links, it asks https://downloads.smurg.ai once, in the background, for the newest version (a single request that carries no data, waiting 2 seconds at most). When a new version exists, it prints one more line under the links:

Version 0.5.1 is available (this is 0.5.0): stop sharing, then run smurg update

When there is no new version, or the check fails or times out, it prints nothing and sharing is not affected. To turn the check off, set the environment variable SMURG_NO_UPDATE_CHECK=1. Automated environments (CI is set, or smurg is not running in a terminal) never check.

9.2 After an update: what your workspace keeps

smurg update replaces the executable and nothing else. A workspace's own state (the folder ~/.smurg/workspaces/<workspace code>/: the daemon key, the members, the invite links, the settings, the topics, the conversations, the audit log) is looked at the next time you share its folder, and smurg host does that in two steps:

  1. It reads every file of the workspace's state and changes nothing. What an earlier published version wrote (0.4.0 and every version since) is brought to today's form in memory. When a single file cannot be used, smurg host does not start and the workspace is exactly as it was (§9.3).
  2. Only when all of it could be read does it write: first a small file that names the smurg that shares the workspace (written-by.json), then, for each file it brought to today's form, a copy of the file as it was (see below) and the file in its new form. A start that is cut short here (the disk is full, the power goes) loses nothing: a file is replaced only after its copy is kept, and the next smurg host finishes the work.

When step 2 wrote a file in a new form, one line above the two links says so. It is printed at that start only:

This workspace was last shared with smurg 0.4.0: its members, invite links and settings were carried over. What changed: https://smurg.ai/docs/hosting/#92-after-an-update-what-your-workspace-keeps

Carried over from 0.4.0, as it was:

New since 0.4.0, with these values after the update (the host console's settings change them):

What did not come along, and why:

Roles and invite links from 0.4.0 mean more now. The roles kept their names, and every member and every unused invite link kept its role. But 0.5.0 gave the roles more to do, and nobody decided that again for your workspace:

An unused link made under 0.4.0 gives whoever opens it today's meaning of its role. Go through the members and the invite links in the host console once after the update, and change a role or revoke a link you would not give today (§5.1 says what Agent access means).

The update to 0.6.0: agents run in auto mode. This update changes one setting the other way from every update before it, on purpose: the workspace's mode becomes "Auto: runs what a check allows" (§5.2), from 0.4.0 and from 0.5.x alike. Under 0.5.x agents asked before almost every command; now Claude Code's check decides which commands run without asking anyone. smurg host says so once, under the line above:

Agents now run in auto mode: Claude Code's check decides which commands run without asking; file edits and simple file commands in an agent's own folder run without it. To be asked before commands again, choose "Asks before commands" in the host console's settings. Guide: https://smurg.ai/docs/hosting/#52-what-agents-do-by-themselves-and-what-they-ask-first

Your inbox has "Agents now run in auto mode", and the host console's settings say the same until you press "Got it". To be asked again, choose "Asks before commands" (or "Asks before edits and commands") under "What agents may do without asking" there. Also after this update:

The update to 0.7.0: work items merge by themselves. This update, too, changes one setting the other way, on purpose: "Merging work items" becomes "smurg merges what its report says is complete and verified" (§10.3), from every earlier version alike. Before it, every work item waited for you to read its diff and merge it; now smurg merges a work item into the shared folder for you when its report says complete, at least one check passed and none failed, and the merge is clean. smurg host says so once, under the lines above:

Work items now merge by themselves: when a work item's report says complete, at least one check passed and none failed, smurg merges it into the shared folder for you, and everyone's inbox says when a topic is ready to check. Work items started before this update still wait for you. To merge each item yourself, choose "I merge each item myself" in the host console's settings. Guide: https://smurg.ai/docs/hosting/#103-merging-and-what-waits-for-it

Your inbox has "Work items now merge by themselves", and the host console's settings say the same until you press "Got it" or choose a setting there. To merge each item yourself, choose "I merge each item myself" under "Merging work items". Also after this update:

The copies smurg keeps. Before it writes a file in a new form, smurg keeps the file as it was beside it, named after the step that rewrote it: state.json.before-upgrade-from-0.4.0, suggestions.json.before-upgrade-from-0.4.0 for a workspace of 0.4.0, state.json.before-upgrade-from-0.5.0 and agent-sessions.json.before-upgrade-from-0.5.0 for one of 0.5.0, 0.5.1 or 0.5.2 (the three wrote the same form), and state.json.before-upgrade-from-0.6.0 for one of 0.6.0. A copy is never written again, only you can read it (mode 600; a start checks that as it does for the state file), and smurg never reads it. If a file of the older form that is not the copy is ever upgraded again (you went back to the older smurg, worked there and updated once more), smurg keeps that file too, under the same name with -2 at its end (then -3, and so on). It is there so that you can look up what the workspace held. It holds the keys of your invite links: keep it as private as the state file itself, and delete it when you no longer need it.

Do not put a copy back in the place of the file in use. state.json is where smurg records who was removed, which device was revoked, which invite link was used up or revoked, and who has which role. Putting the copy back undoes all of that since the update: people removed since are members again, revoked devices and revoked or used-up invite links work again, and role changes are gone; whoever joined since is no longer a member, and invite links made since no longer work. smurg cannot prevent it. It says so at the next start, with a warning that an older file "was put back into this workspace and upgraded again" in the place of the line above; go through the members, the roles and the invite links in the host console then.

9.3 When smurg host refuses a workspace's state

smurg host uses a workspace's state only when it can read all of it. Otherwise it does not start, and it changes nothing: the members, the invite links, the keys and the settings are as they were, and you can try again as often as you need. The lines after smurg: name the file (or the workspace's folder), say why, and say what to do; the daemon's own line about it is in the log (~/.smurg/logs/). A refusal that comes later, while the start was already writing (the disk filled up), does not say "Nothing was changed." but that nothing in the workspace was changed or reset: what the start had begun stays, and the next start finishes it (§9.2). Never move the workspace's folder away to get past a refusal: that gives up the members, the invite links and the daemon key. The terminal names it only as the last resort, after what it costs, and not at all for a file that can be set aside alone (below the table).

The terminal saysWhat happened, and what to do
"This workspace was last shared with a newer smurg than this one (this is 0.5.1), and this smurg cannot read what it wrote" (it names the newer version when the workspace records it)A newer smurg has shared this workspace. Run smurg update, then smurg host again. When smurg update answers that you have the newest version, the folder was written by a smurg this computer cannot get that way (a build that was never published, or a folder copied from another computer): share the folder with the smurg that wrote it. The terminal names the file that records the writer, written-by.json.
"A file of this workspace's state is open to other users of this computer (mode 644)"The file's permissions let other accounts of this computer read or change it, and smurg does not use such a file. Run the one chmod 600 … line the terminal prints (it names every such file), then smurg host again. Until now those accounts could read the file, and a workspace's state holds the daemon key and the keys of its invite links: if you do not trust them, replace the keys (§5.1 "After taking it back", step 1).
"A file of this workspace's state belongs to another user, not to you"Usually smurg was once run with sudo. chmod does not change who owns a file: the owner or an administrator of this computer gives it back to you (chown). Then run smurg host again.
"A file of this workspace's state is a symbolic link, and smurg follows no link in its state folder", or "Where a file of this workspace's state belongs there is a folder"smurg reads only a regular file of your own in that place. Put the file itself there (mode 600), then run smurg host again.
"A file of this workspace's state could not be opened or written (permission denied, EACCES)" (or another reason of the system's)The system would not open the file or write it: a permission, a full disk, a disk that fails. smurg never starts a new workspace in such a case. Put right what the reason names, then run smurg host again. When the file it names is not there (written-by.json at the first start of this version), smurg was not allowed to create it: look at the permissions of the workspace's folder itself.
The state file in the folder of the workspace "names another workspace"The folder was copied from another workspace's, or the two were mixed up. No command repairs this: put this workspace's own folder back in its place.
"The state file of this workspace is not there, although other files of the workspace are", or "The daemon's key of this workspace is not there, although its state file is"A file was moved, renamed or deleted by hand. smurg makes no new one in its place (a new state file would forget who was removed, a new key would make every teammate's browser warn). Put the file back. If it is gone for good, the terminal goes on as for a damaged file (below the table): for the state file the newest kept copy, when there is one, then the last resort; for the key the last resort only.
"A file of this workspace's state is damaged: it is not valid JSON (it may be empty or cut off)", or "A file of this workspace's state is not in a form that smurg 0.5.1 or an earlier published smurg wrote"The file was cut off, or changed by hand or by another program, or written by a smurg that was never published. "What does not fit:" lists the places in the file and the rule each one breaks (never a value from the file; the rules are worded in English in every language). The terminal then goes through what you can do, in this order (below the table).
"A state file that an earlier smurg wrote holds a value that smurg 0.5.1 does not accept"The one known case: a path or a name with more than 30 combining marks in a row, which 0.4.0 accepted and later versions refuse everywhere. "What does not fit:" names the entry (counted from 0) and ends in mark-run. It can sit in conflicts.json (the file of a kept conflict), in worktrees.json (a worktree's shared folder, a file of a merge request) or in state.json (settings.sharedDirs: "Shared folders (read-only in worktrees)" in the host console). Nothing is dropped for you. For the first two the terminal offers to set that one file aside (below the table); for state.json it names only the last resort. What keeps the workspace there: take the named entry out of the file by hand (keep a copy, leave the mode at 600). smurg host then starts and carries the rest over.
"The workspace list (workspaces.json) was written by a newer smurg than this one (this is 0.5.1)" (or the relay login, credentials.json), or one of the two "is not in the expected format"These two files in ~/.smurg are this computer's own: which folder is which workspace, and your relay login. smurg no longer reads such a file as empty and writes over it. Written by a newer smurg: run smurg update. Not in the expected format: repair the workspace list or put a copy of it back (without it, smurg host gives a folder a new workspace); a login you can move away and replace with smurg login.
"This folder's entry in the workspace list (workspaces.json) is not in a form this smurg can read (this is 0.5.1)"The list can be read, the entry of the folder you share cannot; the terminal names the entry and what it cannot read in it. smurg host stops, because without that entry it would give the folder a new workspace. If a newer smurg was ever used on this computer, run smurg update; otherwise repair the entry (its form is below the table) or put a copy of the file back. An entry smurg cannot read is never dropped: a note above says how many the file holds.

For a file that is damaged or in an unknown form, the terminal lists, after "Nothing was changed.":

  1. "First: if a newer smurg was ever used on this computer, run smurg update, then smurg host again." Shown when nothing records which smurg wrote the folder: a newer smurg's file looks like damage to an older one.
  2. The newest copy smurg kept of that file before an upgrade (§9.2), by name and date, after what putting it back undoes. For state.json that is everything decided since the copy was made. Take it only when what the workspace held then is what you want, and go through the members, the roles and the links afterwards.
  3. For a file of the table below: "This one file can be set aside without losing the workspace: …", what the file holds, and the command that moves that one file to <file>.set-aside-<date>-<time> beside it. The members, the invite links, the settings and the daemon key stay, and smurg makes a new, empty file at the next start. The last resort is then not printed.
  4. For every other file: "The last resort is a new workspace." The terminal says what that costs before it names the command: the workspace's members and invite links, its topics, conversations and audit log, and the daemon key (your teammates join again with a new link and are asked about a changed key); and smurg no longer knows the worktrees it kept. The command it prints moves the folder to a name that carries the date and the time, so the folder is kept and the way back of §9.4 stays open.
FileWhat it holdsSetting it aside loses this, and nothing else
inbox.jsonwhat each member has read or dismissed in their inbox, and the mentions kept for themeverything in every inbox is unread again; the kept mentions
suggestions.jsonthe suggestions members made to agent sessionsall of them; one that still waited is made again
conflicts.jsonthe list of kept conflicts between a person's and an agent's edit of the same filethat list: the agent's version can no longer be applied from smurg. Your files are not touched
worktrees.jsonsmurg's record of the worktrees it made and of every merge request, and of smurg's own history of a folder without .gitsmurg no longer knows any worktree (the folders stay in .smurg/worktrees/ with the work in them: merge it by hand), and a request that waited is gone. In a folder without .git, also move .smurg/git out of the shared folder before the next Start: smurg never uses a history it has no record of, and the next Start makes a new one (§10.2)
sessions.jsonwhich terminal sessions were runningnothing after a normal stop; after a crash, processes those terminals left running are not ended for you
host-rules.jsonyour own Claude Code allow rules as smurg last saw themnothing that lasts: smurg tells you about the rules again
claude-trust.jsonyour decisions about projects' Claude Code settingsall of them: agent sessions start without a project's settings until you confirm them again
cards.jsonwhich conversations have questions and permission requeststhe ones asked so far are no longer shown

Where a conversation showed a question, a permission request or a suggestion that is gone this way, the page says "The host's computer no longer keeps this card." Five files cannot be set aside, and the last resort stays the only way: state.json and identity.key are the workspace itself, and the rest of the state points into agent-sessions.json, topics.json and reports.json (without one of them, topics would name sessions and reports that are not there). A log the system cannot read (audit.jsonl, audit-text.jsonl, activity.jsonl) can be moved away too: what that file recorded is lost, and a new one starts.

An entry of shared in ~/.smurg/workspaces.json (workspaceId is the name of the workspace's folder in ~/.smurg/workspaces/, createdAt a whole number):

{ "folder": "/Users/you/projects/my-app", "relay": "https://app.smurg.ai", "workspaceId": "ws_YOURCODE", "createdAt": 1791377829732 }

9.4 If you moved the state folder away because smurg 0.5.0 told you to

smurg 0.5.0 could not read a workspace that 0.4.0 had shared. It refused to start and told you to move the workspace's folder away (mv … ….old) and to share again. If you did, you have had a new workspace since then: the same workspace code, a new daemon key and only yourself as a member. Your teammates were asked about a changed key, and the invite links of before stopped working.

The folder you moved is still there, ~/.smurg/workspaces/<workspace code>.old, with the members, the invite links and the old daemon key in it, and smurg 0.5.1 and later can read it. At its first start such a version names the folder, once, above the links: "An earlier state folder of this workspace lies beside the one in use". To go back:

smurg stop                                     # 1. stop sharing
cd ~/.smurg/workspaces                         #    (or the workspaces folder of your SMURG_HOME)
mv ws_YOURCODE ws_YOURCODE.new-workspace       # 2. set the workspace in use aside
mv ws_YOURCODE.old ws_YOURCODE                 # 3. put the earlier one back under its own name
smurg host ~/projects/my-app                   # 4. share the folder again

ws_YOURCODE stands for the workspace code: the name of the folder that is there twice, once with .old. At step 4 smurg host reads the earlier state, brings it to today's form and prints the line of §9.2. The two links carry the earlier daemon key again, and whoever was a member before the folder was moved is a member again, with the devices they had. That includes people you had not invited again in between, with the role they had before: go through the members, the roles and the invite links in the host console after step 4 (§9.2). This was tried, step by step, with a workspace that 0.4.0 had really written.

What going back means for what happened in between:

Two more things to know:

9.5 Remove: smurg uninstall

smurg uninstall               # lists what it will remove, then removes it after you confirm
smurg uninstall --keep-data   # keeps ~/.smurg; removes only the executable and the cache

It removes:

It does not touch:

Before it does anything, it lists every path it will remove with its size and asks "Remove these? [y/N]"; it removes them only when you type y. --yes does not ask; outside a terminal --yes is required, otherwise it only prints the list and ends. A workspace that is being shared is stopped first (as smurg stop does); if it cannot be stopped, nothing is removed. When SMURG_HOME points somewhere that must not be deleted (/, your home folder, or a folder holding things smurg did not create), it refuses: use --keep-data then, and deal with that folder yourself.

When you run smurg from source: delete the three places above yourself.

10. Topics from the host's side

The guide for teammates (§6 there) walks through a topic from the discussion to the result the team checks. This section is what a topic asks of you as the host.

10.1 What only you can do

You, and every member with agent access, can also do everything a topic needs from day to day: create it, ask for the plan, press Start, answer permission requests, pause a plan and continue it, leave a work item out, and let one merge as it is. A question an agent asks is decided by the session's responsible person, or, when nobody is assigned, by whoever opened the session or pressed Start; as the host you can always submit an answer too.

10.2 Start: git, and the commit smurg makes

How work items run depends on the folder and on this computer's git (2.42 or later). The Start dialog says which of the three it is before anything runs:

git init
git add -A                      # write a .gitignore for node_modules and the like first
git commit -m "First commit"
git rm -r --cached .smurg       # the files stay on disk
git commit -m "Stop tracking smurg's own folder"

10.3 Merging, and what waits for it

Merging is yours. By default you give smurg your standing consent: "Merging work items" in the host console's settings says "smurg merges what its report says is complete and verified", and smurg merges each work item into the main workspace for you, without anyone reading its diff first, when it is in order. To read and merge every item yourself, choose "I merge each item myself" there (below). Turning it off applies at once (a merge already under way finishes) and gives every work item already started to you, for good; turning it on applies to the work items started from then on.

Topic "Checkout" is ready to check: 3 of 3 work items are merged into the shared folder. Look at the result in the workspace.

10.4 How many agents work at once, and memory

10.5 After a restart: what goes on by itself

After smurg host was stopped and started again (also after a crash or a restart of the computer), plans go on by themselves:

2 topics go on where they stopped: Checkout (2 work items), Search (1). To pause one, press Pause in its plan.
When smurg host starts again, 2 topics go on by themselves. To keep a plan stopped, press Pause in it before you stop smurg host.

10.6 When someone does not answer, leaves or is removed

10.7 Long discussions

A topic's discussion is one conversation that everyone shares, and it can get long.

10.8 What was verified, and what was not

The flow of this version (discussion with questions and votes, spec, plan, work items, result reports, merging by smurg, decisions, ready to check, undo, the restart) was verified by smurg's developers against a scripted stand-in for the model. Real Claude Code (version 2.1.288, the oldest that agent sessions accept) was run with smurg only against a fake API on the development machine, never against the real model. No real Claude account was used for testing. That machine is a Mac: real Claude Code was not run with smurg on Linux at all for this version; on Linux only the stand-in was tested. So how a real model behaves in this flow is not verified yet: whether it asks its questions as cards as it is told, writes the plan and the report in the format smurg checks, and proposes a sensible split of the work. This may need tuning in later versions.

The models and the permission modes of 0.6.0 were verified the same way: against the scripted stand-in, and with real Claude Code 2.1.288 against the fake API, which also gave auto mode's check its answers. So how the real check judges a command, and the check that may run on Anthropic's side instead, have never been seen with smurg; no real account was used here either. Watch what your first agents in auto mode run.

Automatic merging, decisions, undo and the restart of 0.7.0 were verified the same way, with the stand-in and with real git (2.49 on the development machine). What a real model writes in its report (whether it writes "Complete" only when the work is done, and a check that did not pass as failed) decides what smurg merges without anyone reading it, and has never been seen. Watch the reports and the merges of your first topics, and turn automatic merging off (§10.3) until you trust them.

What bounds the damage when an agent does not behave: smurg checks the plan and the report format itself and asks the agent to fix them (at most twice in a row), asks once for a missing report, and puts work that stopped into someone's inbox instead of letting it stop unseen. Watch your first topic with a real project closely, and if a step of the flow does not work with your Claude Code, report it at https://github.com/gclinian/smurg.

Limits of this version that are known: