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.
- The macOS executable has no Apple Developer ID signature (only an ad-hoc signature). After checking the sha256, the installer removes macOS's quarantine flag, so Gatekeeper does not block the first run. Install with the line above; do not download the executable with a browser and run it by hand.
- Update:
smurg update; remove:smurg uninstall(both in §9).smurg --versionshows the current version. - Running the install line again also installs the newest version over the one you have. When the smurg it is about
to replace is sharing a workspace, the installer stops and installs nothing: stop sharing first (
smurg stop), as forsmurg update(§9.1).curl -fsSL https://smurg.ai/install.sh | sh -s -- --forceinstalls all the same; asmurg hostthat is still running must then be stopped and started again. - To run agents, this computer also needs the
claudecommand (Claude Code 2.1.288 or later), already logged in to your Claude account: every agent session uses this computer's login, whoever in the workspace it works for (§4, §5.1). An older Claude Code is refused for agent sessions; with a newer one than this smurg was verified with, agent sessions run and you get one notification that says so.smurg statusshows which it is (§7). - Work items run in worktrees, each with a diff that smurg merges when its report says complete and verified (or
that you merge yourself, §10.3), when this computer has git 2.42 or later. A folder
without
.gitworks too: smurg keeps its own history of it in.smurg(§10.2). Without git, work items run one at a time directly in the folder, with no diff and no undo (§10.2). - Language: smurg's interface comes in English and Traditional Chinese, and everyone sees their own language. The
smurgcommand follows this computer's locale (LC_ALL,LC_MESSAGES,LANG; on macOS, when none of the three is set, the system language) and uses English for anything that is not Traditional Chinese; to choose yourself, set the environment variableSMURG_LANG=enorSMURG_LANG=zh-TW. The web app follows the browser's language and has a language menu. This guide quotes the English interface; a teammate using the Traditional Chinese interface sees the same sentence in Chinese. - smurg is open source under the MIT License: the terms are at https://smurg.ai/license/ and the source code is at
https://github.com/gclinian/smurg. The third-party software in the executable and its licenses:
smurg licenses, or https://smurg.ai/third-party-notices.txt.
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)
- Open the address in a browser on any device (this computer, another computer or a phone) and log in with your Google account.
- Enter the code from the terminal (case and the "-" do not matter) and press "Next".
- 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 loginin a terminal; if someone else gave you the code, press "Deny". A few seconds after you press "Allow", the terminal says "Logged in to …".
- On a computer with a desktop, smurg also opens the address in this computer's browser. The address never contains the code: you always type the code yourself.
- Over SSH, or on a server without a desktop: it works exactly the same. Open the address on the computer or phone in front of you and enter the code; no port forwarding or other setup is needed (smurg does not open a browser on that machine). The IP address and location on the page are then the remote machine's.
--no-browseror the environment variableSMURG_NO_BROWSER=1: never open a browser, only print the address and the code.- A code is valid for 10 minutes and works once. If it expired or you pressed "Deny", run
smurg loginagain; press Ctrl-C to cancel while it waits. - Do not tell anyone the code, and do not enter a code someone else gives you: entering it and pressing "Allow"
logs the computer that ran that
smurg loginin as you (for 7 days). - You can skip this step:
smurg hostasks you to log in first when you are not logged in (the same address and code). Before it starts sharing,smurg hostalso asks you to log in again if your login expires within 24 hours. - The login is stored in
~/.smurg/credentials.json(mode 0600), one entry per relay address.
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:
- It cannot see: file contents, file names, conversations with agents, terminal output, the commands you or your teammates type, the secret in an invite link, or any key. These are end-to-end encrypted between your computer and each teammate's browser (or CLI); the relay only forwards the encrypted data.
- It can see: which Google account each connection belongs to (account ID, name and picture; at login Google also gives the relay your email, used as the display name only when the account has no name), the IP address it connects from, which workspace code it connects to, and the size and time of every message. From these it can tell who worked with whom and when, and how much data they sent.
- It stores: each workspace's code and which account is its host. Logins themselves are not stored (a relay login
is a signed token valid for 7 days); only when you log
smurgin with a code does the relay keep that request for at most 10 minutes (the code, and the IP address and approximate location of the computer that ransmurg login, shown on the confirmation page), and it deletes it when the login completes or expires. To stop code guessing and mass logins, the relay also keeps hashes of IP addresses and accounts with counters, deleted after 10 minutes. - Whoever runs the relay (smurg's maintainer) and Cloudflare can therefore know what "it can see" lists. If that is not acceptable, run your own relay (§2.2): then it is you and your Cloudflare account that can see it.
- The relay also serves the web app. As with any end-to-end encryption in a browser, a relay that served a tampered
app could read what that browser decrypts, and its keys. The
smurgcommand loads no code from the relay.
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:
- What counts: connections, the "is the host still there" check every few seconds, and every forwarded message. The most expensive thing is several people watching agents that are writing, or a terminal that prints a lot; an open workspace with occasional edits uses very little.
- When the day's quota runs out, everyone (not only you) may be unable to connect: new connections and logins fail and existing connections may drop, until the quota resets at 00:00 UTC (08:00 in Taiwan). The host's terminal then reports that the connection to the relay was lost, teammates see "Server unreachable", and the browser may show a Cloudflare error page (Error 1027).
- The maintainer watches the usage and moves to a paid plan if needed. If a whole class will use smurg for hours at the same time, or you cannot accept interruptions, run your own relay (§2.2): it has its own quota, which nobody else can use up.
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.
- Your link: opens the workspace in a browser as the host. It works once and is valid for 7 days; do not give it to anyone.
- Link for your teammates: the default role is Editor (
editor); the link is valid for 7 days with no limit on uses. The part after#is the secret: send the link in a private message and never post it in public. Options:--role agent|editor|viewer,--expires 12h,--max-uses 3,--name <display name>; when you choose another role or a use limit, this line says so. Read §5.1 before you use--role agent(Agent access): whoever gets that link can run any command on your computer, with your Claude account.
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.
- Every member can see the files in the folder (viewers too), for example
.envand configuration files. The only things teammates cannot see or download in the web app and the CLI are: smurg's own.smurg/, every.gitfolder,.envrc, and your personal Claude Code settings (.claude/settings.local.json,CLAUDE.local.md). This limits what people see. Agents are told not to read those files either, and Claude Code enforces that for its own tools and for commands that name them; but a command that you or a member with agent access allows runs as you and can read whatever your account can read, and so can a terminal session (§5.1). Do not share a folder that holds passwords, keys or personal data; you also cannot share your whole home folder or a folder that contains it. - Every member can read every conversation with an agent, also a member who joins later: they can read every
earlier conversation of the workspace, the ones of archived topics included. The host console says so where you
create an invite link:
"A new member can read every earlier conversation of this workspace, the ones of archived topics included."
And whatever an agent reads, it may repeat: in its answers, in the spec, in a result report.
smurg replaces text that looks like a well-known kind of key or token with
[masked]before it stores or shows it, but that is best effort. Do not let agents work in a folder whose files, or whose commands' output, hold secrets (§5.4 says where conversations are kept and how to delete them). - Whose Claude account works for the group: every agent uses the account
claudeis logged in to on this computer, also when it works for a teammate; the usage and the cost are yours. A personal Claude subscription (Pro or Max) is for your own use. Anthropic's terms do not allow making a personal account available to other people; for a group, log Claude Code in with an API key, a Team or Enterprise plan, or a cloud provider. smurg does not stop you; it tells you in three places. The dialog that starts a topic says it to you (a teammate reads there only that the agent uses the host's account): "A personal Claude subscription (Pro or Max) is for your own use. When other people work with agents here, use an API key or a Team or Enterprise plan." The host console's security notes say it again: "Agents here use your Claude Code login. A personal Pro or Max subscription is for your own use: when other people work with agents here, use an API key or a Team or Enterprise plan." And the first time an agent starts while Claude Code reports a Pro or Max login and the workspace has members besides you, you (and only you) get a notification in the web app. It comes once for the workspace, not each time you share; when no window of yours is open at that moment, it arrives when you next open the workspace. Until you press "Got it" or close the page, it also stands in the host console, above the list of sessions: "Agents here use your personal Claude subscription. Anthropic's terms do not allow making a personal account available to other people; for a group, use an API key, a Team or Enterprise plan, or a cloud provider." - No agent session is sandboxed. By default agents run in Claude Code's auto mode: Claude Code's check decides which commands run, file edits and simple file commands in the agent's own folder run without it, and smurg itself asks or refuses before a few commands (§5.2). Whatever runs, runs under your operating-system account. Agents read files that teammates wrote or changed, and the spec and the plan, which every Editor can edit: a file can hide instructions meant for the agent (prompt injection), and Claude Code's check is a model's judgement, not a wall. Choose a mode that asks (§5.2) for a folder or a team you are not sure of. When you are asked, read a command before you allow it, think before you always allow a kind of command, and watch files that teammates changed recently. Teammates with agent access can also answer those requests.
- Work items merge into your folder by themselves. By default smurg merges a work item for you when its report says it is complete and verified, without anyone reading its diff first: in a repository it becomes a commit on your branch. The checks in a report are the agent's own claims, and a prompt injection that reached a work item's agent reaches your folder the same way. You can turn this off ("I merge each item myself" under "Merging work items" in the host console's settings), and you can undo a merged item (§10.3).
- Give Agent access only to people you fully trust (§5.1): this role lets someone make an agent run any command on your computer, read your home folder and use your Claude account. Other teammates can take part as Editors: they edit with you, vote, comment, review and send suggestions to agents.
- Teammates can use the workspace only while
smurg hostis running and your computer is online. - Editors and above can create or change files such as
.gitmodules,.gitconfig,.bashrc,.zshrcand.profilein the shared folder (git and the shell do not run them from a project folder). Look at.gitmodulesbefore you rungit submodule update. Files that Claude Code reads as settings or as instructions (.claude/,.mcp.json,CLAUDE.md) can be changed through smurg only by you (§5.3). - A teammate cannot rename or delete a folder that holds a file only you may change, at any depth below it:
.claude,.git,.vscode,.idea,.mcp.json,.envrc,CLAUDE.mdorCLAUDE.local.md. Moving the folder would move those files with it. This reaches folders you may not expect:node_modules, for example, when a package in it ships aCLAUDE.mdor a.vscodefolder. The teammate is told "Only the host can change this path." and you rename or delete such a folder yourself. smurg looks through the folder on disk to decide; a folder with more than 100,000 entries is refused without looking further.
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:
- start topics and work items, and open agent sessions and terminal sessions on your computer, in the main workspace or in a worktree;
- send messages to any agent, stop it, and allow what agents ask to run (§5.2), once or always for a kind of command;
- choose the model and the permission mode of any agent session and of a topic's work items (§5.2): any model your Claude Code offers, and any mode but "Asks for nothing";
- type into any terminal session, including the ones you opened and the ones other teammates opened;
- accept or reject the suggestions any agent session receives, answer an agent's question in their own words, and ask you to merge any worktree (merging is yours: by default smurg merges for you what a work item's report says is complete and verified, §10.3);
- decide what a work item that was not merged needs ("Merge it as it is", "Leave it out…"), and pause a plan.
These sessions run on your computer as you, exactly like the ones you start in your own terminal:
- No sandbox: your operating-system account, your home folder (including your settings,
CLAUDE.mdand memory in~/.claude) and your environment variables. - Your own Claude Code login: every agent uses the account
claudeis logged in to on this computer (your subscription or your API key), and the usage and the cost are yours (§4 says which kind of account fits a group). Teammates do not need, and cannot use, their own Claude account or API key. - A worktree is only a place to work, not protection: a session opened in a worktree runs as you all the same.
The risk: giving someone Agent access means letting them use your account on your computer. They can:
- make an agent or a terminal run any command on your computer: install or delete programs, change or delete files outside the shared folder, connect anywhere on the network;
- read your home folder: the keys in
~/.ssh, other projects, the credentials of other programs and cloud services, and the.gitand.envrcin the shared folder that teammates otherwise cannot see; - use your Claude account: spend your subscription's quota, or run up cost on your API key. They also choose the model of the sessions they open or drive: on some plans a model is billed to usage credits, and Claude Code does not ask before it bills one in an agent session (the host console's settings list the sessions that run on such a model);
- reach your folder through a work item: a work item they start, or whose agent they write to, merges into your folder by itself when its report says complete and verified, without anyone reading the diff first, unless you turn automatic merging off (§10.3).
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.
- Giving it: share with
smurg host <folder> --role agent, and the teammates' link it prints is an Agent access link; or, while sharing, create an invite link with this role or change a member's role to Agent access in the host console of the web app (the console shows the same warning first, and creates or changes nothing until you confirm that you understand). - Taking it back: in the host console, change the role back to Editor or Viewer, or remove the member. They can no longer start anything, message agents or answer requests. The terminals and the agent sessions without a topic that they opened end at once. The sessions of topics they started pass to you: they keep running when you only changed the role, and are stopped first when you removed the member. The worktrees they had kept, with the changes in them, pass to you as well: they can no longer remove them, and you decide what becomes of the changes. What they put in place goes with them: the kinds of commands they always allowed, work items they started that have not begun yet, a permission mode they chose that is not stricter than what the session would follow, a model they chose that may be billed to usage credits, their messages that an agent has not read yet (§10.6). This only takes back what they may do in smurg. What they already did as you does not go away: see the "After taking it back" list below.
- Before you start, make sure
claudeis logged in on this computer (runclaudein your own terminal and log in). An agent session has no way to log in: when Claude Code is logged out, agent sessions say so and wait until you have logged in in your own terminal (§8).
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:
- Replace the workspace's keys and invite links: note the workspace code from
smurg status(after stopping,smurg statusno longer lists it), stop sharing withsmurg stop, move~/.smurg/workspaces/<workspace code>/somewhere else (for example, add.oldto its name), then share again withsmurg 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 attachboth ask before going on). Look up the new daemon key fingerprint withsmurg statusand 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.
- Teammates who joined before see "The host computer's key has changed" when they use the new link (the web
app and
- Replace the relay login:
smurg logout, thensmurg 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). - Replace your other credentials: the Claude Code login (run
claudein 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. - 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
hooksand 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 examplegit config --show-origin --get-regexp 'core\.(fsmonitor|hooksPath|sshCommand)'(look at~/.gitconfigtoo); - 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 attachuses). If you are not sure, restart the computer after the checks above.
- shell startup files:
- 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 attachuses) 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:
- A topic's discussion agent reads files inside the project (never the files of §4 that teammates cannot see),
writes only the topic's
SPEC.mdandPLAN.md, and has no shell and no network tool. Its permissions are fixed (the session shows "Reads code, writes only the spec and the plan"). It asks the team its questions as cards. - The permission modes of every other agent session (a work item's, and a session without a topic):
- "Auto: runs what a check allows", the default. Claude Code decides: file edits and simple file commands inside
the agent's own folder (
echo … >,>>,mkdir,cp,mv,rm,rm -rf <folder>) run at once, with no check at all; every other command goes to Claude Code's check, a model's judgement on the conversation and the command, and runs when the check allows it. What the check stops does not run, and the conversation says so ("Claude Code's check stopped a command: …"); after three such refusals in a row, Claude Code asks a person with a card. smurg's own gate still asks or refuses before a few commands (below). - "Asks before commands": file edits run; in a worktree, so do read-only commands and simple file commands inside
it (
ls,cat,mkdir,mv,cp). Everything else asks first: any other command, anything on the network, anything outside its folder. In the main workspace its file edits are allowed (file locks still apply, see the guide for teammates) and every shell command that writes asks. - "Asks before edits and commands": edits ask too.
- "Asks for nothing": yours alone, for the whole workspace (below).
- "Auto: runs what a check allows", the default. Claude Code decides: file edits and simple file commands inside
the agent's own folder (
- Who chooses which: the workspace's mode is yours, in the host console's settings ("What agents may do without asking"). You and members with agent access can choose another of the first three for a topic's work items (in the plan, and in the Start dialog) or for one session (when they open it, and later in its strip). A session nobody chose a mode for follows "Workspace default (…)"; a work item follows "This topic's setting". Auto mode's checks cost something: "Auto mode checks commands with extra requests to Claude, which may count toward your usage." (your members read "the host's usage").
- What auto mode does not check:
- the fast path: file edits and simple file commands inside the folder an agent works in run with no check at all. In the main workspace they change the shared folder at once, for everyone, except smurg's two cases below;
- commands outside the shared folder: a command of any session, a teammate's included, that writes outside the shared folder (your home folder, other projects) runs when Claude Code's check allows it. smurg asks first only for a teammate's session and only when it can read where the command writes (below), and refuses only the places listed below for every mode, and only commands that name them;
- commands smurg cannot read (a script, an interpreter,
sh -c, a variable): smurg cannot see where they write. In a session a teammate opened or started, smurg asks you first, and only you can allow it; the card says "smurg asks because it cannot tell where this command of a teammate's session writes, and in auto mode it could run with no check at all." In your own sessions such a command runs when Claude Code's check allows it, and Claude Code 2.1.288 runs one whose target is a variable (F=notes.md; rm "$F") with no check at all: a command of that kind can change a file only you may change without anyone being asked; - reads: an agent reads every file of the folder, and in auto mode whatever Claude Code's check lets it read elsewhere, except the files teammates cannot see (§4) and smurg's state folder, which smurg refuses to commands that name them;
- a command's output (the check does not see it);
- anything a check allowed: it is a model's judgement, not a sandbox.
- In a worktree (a work item, or a session you open in one): what the fast path lets through stays in the worktree, and the result report's diff shows it. It reaches the main workspace with the item's merge: under automatic merging, the default, without anyone reading it first, when the item's report says it is complete and verified (§10.3); with "I merge each item myself", only after you read the diff. What a command changes outside the worktree is not in that diff (the next points).
- In the main workspace (a session without a topic that works there, and work items without git, §10.2): what
runs there changes the shared folder at once. In auto mode smurg holds back two kinds of shell writes. A command of
a session a teammate opened that changes a file only you may change (
CLAUDE.md,.claude/,.vscode/, a script your confirmed project settings run, smurg's.smurg, or a folder that holds one) asks first, and only you can allow it; the card says "smurg asks because this command changes a file only the host may change, and in auto mode nothing else would ask before it runs." A command that writes a file someone is typing in is refused until they stop (the agent is told so, in English). An agent's edit tools keep their rules in every mode: they wait for a person's file lock, and the agent of a teammate's session cannot change a file only you may change. - A teammate's session outside its own folder: in auto mode, a shell command of a session a teammate opened or
started (a work item a teammate pressed Start for included) that writes outside that session's own folder asks
first, and only you can allow it. From a worktree that also means the main folder and the other work items'
checkouts; the system's temporary folders (
/tmpand the like) are left alone. The card says "smurg asks because this command of a teammate's session writes outside its own folder, and in auto mode nothing else would ask before it runs." smurg sees only what it can read in the command. Your own sessions are not asked: how far they reach is yours to set, by the mode you choose. - In every mode, "Asks for nothing" included, smurg refuses an agent's edits of these places, and the shell
commands that name them: the shared folder's
.git,.claude/and.mcp.jsonand smurg's own history (.smurg/git), also from a work item's worktree; your~/.claude,~/.claude.json(and the folder thatCLAUDE_CONFIG_DIRnames, when you set it) and your~/.ssh; smurg's state folder~/.smurg(reading it too); and smurg's own executable, which every check of smurg's gate runs. These rules refuse an edit tool and a command that names one of those places. A command that reaches them another way (a script, a program, a variable, acdfirst) is not refused by them: in auto mode Claude Code's check decides it, in the modes that ask it asks, and in "Asks for nothing" it runs. They are not a sandbox. Another work item's checkout has no such rule (it lies beside the session's own folder): a teammate's item that writes there asks you (above), and what your own item writes into another item's checkout becomes part of that item's change and merges with it, under automatic merging without anyone reading it first. - "Asks for nothing": only you can choose it, for the whole workspace, in the host console's settings. smurg
first shows "Let agents ask for nothing?" with this warning, and saves the choice only when you press
"Ask for nothing":
"Every agent session of this workspace will run every command as you, on your computer, with no sandbox and no check by Claude Code or smurg, whoever's message or file led to it: a teammate's message, a file someone changed, a web page the agent read. What still holds: a discussion agent writes only its spec and plan, and smurg refuses an agent's edits of Claude Code's settings (yours and the project's), of .git, of your .ssh folder and of smurg's own files, and commands that name those places. A command that reaches them another way runs as you. Choose this only for a folder and a team you trust completely."
What still holds besides: smurg's other refusals (file locks, the files only you may change for a teammate's edit
tools), no subagents and no
@path(below). It cannot be chosen while smurg runs as the root user (Claude Code refuses it then). While it is on, every member sees "Agents ask for nothing" in the workspace's top bar, members with agent access can still choose a stricter mode for a topic or a session, andsmurg hostprints this line above the links at every start:
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
- A change of mode: a stricter mode applies to a running agent at once. A session moves into "Asks for nothing" only when its agent starts anew: smurg restarts an idle agent for it. Each session says in its conversation who changed its mode, or that you changed the workspace's.
- When the mode that runs differs: Claude Code can run another mode than the one smurg asked for: a model without
auto mode (Haiku, in Claude Code 2.1.288), auto mode turned off in your Claude Code settings or your organization's
(
disableAutoMode), or running without asking turned off there (disableBypassPermissionsMode). smurg reads the mode Claude Code reports at every turn and falls back to the stricter side by itself: a session that cannot run in auto mode asks before commands ("Auto mode is not available for …"), and a session that Claude Code does not let ask for nothing runs in auto mode. The session's strip then says "Claude Code runs it as: …" with the reason, the conversation says so once, and the host console's settings say when your Claude Code turned a mode off. - What smurg refuses that Claude Code would let through: smurg refuses an agent's edits of Claude Code's settings
(yours and the project's), of
.gitand of smurg's own files, and commands that name them; a command that reaches them another way is decided by Claude Code's check in auto mode, and runs in "Asks for nothing". The agent of a session a teammate opened cannot change the files only you may change (CLAUDE.md,.vscode/,.idea/) with its edit tools, and in auto mode its shell commands that change them ask you (above). - No agent starts subagents in this version. Claude Code's tool for that is not offered to an agent session,
and smurg refuses it if it is called; the agent definitions in
.claude/agentsare not used. The reason: a subagent works with the permission mode its own definition names, not with the one smurg set for the session, so a definition could let edits and file commands run unasked in a session that asks before everything. - A message cannot hand an agent a file. In your own terminal, Claude Code replaces
@pathin what you type with that file's content. Here it does not: smurg sends every message as text composed by a program, so@pathstays plain text. A file reaches an agent only through the agent's own tools, where the limits above and the permission requests apply. To show an agent a file, name its path: it reads the file itself. - When smurg itself is not reachable on your computer (it crashed, or was killed), every tool call of an agent is refused, so nothing runs unattended (§7).
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."
- Who can answer: you and every member with agent access; Editors and Viewers see the request and cannot answer it. It goes first to the inbox of the session's responsible person when that person can answer it; when nobody is assigned, or after the waiting time (5 minutes unless you change it in the host console's settings; one minute when that person is offline), it is in your inbox and in that of every member with agent access. The first answer wins. The setting is "Waiting time before others are asked (minutes)".
- The answers: "Allow once", "Always allow this kind" or "Deny" (with an optional line that tells the agent what to do instead).
- "Always allow this kind" is offered for two kinds only: commands that start with two or three fixed words
(for example
pnpm test), and fetching from one named host. It is never offered for shells and interpreters, for commands that download and run code (pnpm add,npx), for a command of one word, for a command made of several (pnpm test && git push: a kind names one command), or for a request only you may allow; the card says why. You choose where it applies: "in this session" or "in every session of this topic" (the kinds allowed for a topic are also listed in its plan, where they can be added and removed). A kind of a topic answers a waiting request of another session by itself only when that request is one plain command of the kind (nothing chained, piped or redirected, no variable and no substitution in it), or a fetch from the kind's host whose address is at most 2,048 characters long. A kind covers the same command after the agent changed the files it runs: an agent that may always run the tests can edit a test file and run what it wrote. A session's permission menu lists what is always allowed there, and each entry can be removed. An entry also goes away by itself when the member who added it is removed or loses agent access. - Requests only you can allow: this is about what still asks: the cards of the modes that ask, and the cards
smurg's gate makes in auto mode (above). A request that smurg recognizes as reaching beyond the project (a file
outside it, for example) says "Only the host can allow this: it reaches beyond the shared project." So does a
command of several parts that names
.claude,.gitor.mcp.json, a command that writes where a script of your confirmed project settings is (§5.3), and in auto mode the cards of a teammate's session above. It is a label for what smurg can recognize, not a wall: a command that is allowed (by you, or by Claude Code's check in auto mode) can still reach anywhere your account can. - Every answer is in the audit log with the whole command, and so is every command that ran without a request, also one that failed (the entry "Agent ran a command" names the mode). A command Claude Code's check stopped has an entry of its own, "Claude Code's check stopped an agent's command". The entry of a command that ran does not say which rule let it through (Claude Code's check, a kind someone always allowed, one of your own rules, a read-only command in a worktree); a command that a topic's always-allowed kind answered has an entry of its own that names the kind. A command that one of Claude Code's own deny rules refused is recorded as one that ran and failed (its result names the refusal).
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:
- As soon as you share a folder whose settings you have not decided about, you (and only you) have an inbox item: "Claude Code project settings wait for the host". It opens the review in the host console. Until you decide, the dialog that starts a topic shows you the same review under "This folder has Claude Code project settings". A teammate who starts a topic before you decided is told that the discussion runs without the settings until you confirm. While work items run in worktrees before you decided, the same item is in your inbox once for the main workspace and once for each worktree: they are about the same content, and one decision settles all of them.
- What the review lists. For each of the three files: every command it runs, every permission rule, every
environment variable, and the files of the folder that its commands name (their scripts), with the file itself
one click away. A variable that could send your Claude login to another server is marked, and so is one that
changes which programs run (
PATH,NODE_OPTIONSand the like). A character nobody can see is written out, for example as<U+202E>. A fourth entry, "Everything else in .claude/", names every other file below.claude/and what those files declare by themselves (hooks, allowed tools, a permission mode). - When the lists do not show everything, the review says so. A list that is too long, or an entry that is cut
short, has a note above it. A command whose files smurg cannot follow has a line under it, and the note above
the lists counts such commands, for example
smurg cannot follow which files 2 of these commands run: only the scripts listed are guarded.That is a command in which the program, or the script it is given, is a variable, a wildcard or a text the command builds (sh $SCRIPT,eval). It is also a command written as nobody writes one, which smurg does not read to its end: more than sixteen wrappers in a row (env,sudo,nice,timeout,command,exec,nohup,xargs; fewer when a very long word follows them), or anevalorsh -cinside another more than three deep. smurg guards only the scripts it could list, so read the files themselves before you decide. Using the settings then takes one more tick: "The lists above do not show everything. I have read the files themselves." - Your choice is "Use them" or "Run without them (agents will not read CLAUDE.md)". When the settings can send
your login elsewhere or let agents act without asking, you first tick what you have read. Some settings cannot
be used as they are, and the review says why at the top of "Other settings": for example a link below
.claude/, more than 2,000 files there, more than 20 scripts, or a script whose name has a backslash in it. - Until you confirm, agent sessions run without those settings, and, as Claude Code works, also without the
project's
CLAUDE.md; the conversation says so: "The host has not confirmed this folder's Claude Code project settings. This session runs without them and without the project's CLAUDE.md." - You confirm a content, not a folder. smurg watches the settings files, the scripts and the folders above them. When one of them changes, is replaced or is moved (also by a merge into the main workspace), the agents working in that folder are stopped, and from then on they run without the settings until you have looked again: "This folder's Claude Code project settings changed. The agent was stopped until the host confirms them."
- The scripts are yours while the settings are in use. Through smurg only you can change the settings files
and the scripts: no teammate, no agent's edit tools, and no merge that a teammate or a work item asks for. A path
that a command names where no file is yet (an optional script, a build output such as
dist/hooks/check.js) is guarded in the same way: only you can create it through smurg, and the file appearing counts as a change. The review marks such a path "named, not there yet". A hook that runs a build output therefore asks you again after each build that creates it. - Agents' shell commands near those scripts. While the settings in use name scripts, smurg reads every shell
command of an agent in that folder before it runs, in every mode but "Asks for nothing", also in a work item's
worktree and in auto mode, where simple file commands otherwise run without asking. A command line handed to another shell (
sh -c '…') is read like the line itself. A person is asked in the two cases below, and the card gives smurg's reason, in the reader's language, where it otherwise gives Claude Code's. No kind that someone always allowed covers such a command, and neither do your own allow rules: it asks each time. The check leaves alone a command that only reads a script (cat,grep,diff), one that writes a file beside it, and any other program as long as it names no script and no folder of one (npm test, or git'sstatus,diff,log,addandcommit).- The command writes where a script is: the script itself, anything below it, or a folder above it
(
> scripts/lint.sh,cp x/lint.sh scripts/,mv scripts scripts.old), also through a wildcard that can match one of them (rm scripts/*.sh). Only you can allow that. The card says: "smurg asks because this command changes a place where this folder's Claude Code project settings keep a script they run (the script itself, or a folder that holds it). Those scripts run as the host." - smurg cannot tell. A file command writes to a place smurg cannot read: a variable, a substitution, names that
come out of another program (
xargs rm), a relative name after a change to a directory it does not know. A program is handed a script or its folder by name, as a word of its own or glued to an option (sh scripts/lint.sh,sort -oscripts/lint.sh,git diff --output=scripts/lint.sh). It is one of git's commands that bring files into the working tree without naming them (checkout,switch,restore,reset,stash,merge,rebase,pull,cherry-pick,revert,apply,am,clean). Or the line is more than smurg follows: a shell inside a shell more than four deep, more than 16 changes of directory, more than 256 places named. You or a member with agent access can allow that, also when a line smurg could not follow does write a script. The card says: "smurg asks because this folder's Claude Code project settings run scripts, and smurg cannot tell whether this command leaves them alone."
- The command writes where a script is: the script itself, anything below it, or a folder above it
(
- What this cannot see, and what to do about it. smurg reads what a command names. A program that names none
of the scripts (a build such as
npm run build, a script of the project that rewrites another) is not seen before it runs. It asks like any other command unless someone always allowed its kind; smurg notices the changed script afterwards, stops the folder's agents and asks you again, but a hook that fires in between runs the changed script once, as you. And what a script runs in turn is not followed at all: anyone who can edit files in the folder can change what your confirmed commands end up running. So keep the scripts your hooks run in.claude/hooks/, where no teammate can write and no agent writes by itself, and name only files from there in a hook. Every existing file a hook command names counts as its script (tsc -p tsconfig.jsonrecordstsconfig.json), and the folder that holds it becomes a place where agents' file commands ask. - You can look at the settings and change your decision at any time in the host console, under
"Claude Code project settings"; a decision applies the next time a session's agent starts.
smurg statusshows the state for the shared folder (§7).
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
- Where:
~/.smurg/workspaces/<workspace code>/transcripts/, readable only by your account, outside the shared folder; no file request of a teammate reaches it. Every member reads the conversations in the web app (§4). - What is kept: what a conversation showed: people's messages, the agent's text, what its tools did (commands with their output, edits with their diffs), questions with votes and comments, permission requests with their answers, suggestions. Not kept: the content of files an agent only read, the lines its searches matched, and its thinking.
- How long: a topic's conversations are kept as long as the topic, archived or not; deleting an archived topic in the web app deletes them. The conversation of an agent session without a topic is removed 30 days after the session ended. A single conversation is kept up to 256 MB; beyond that its oldest part goes ("The oldest part of this conversation is no longer kept."). When all conversations of a workspace together pass 2 GB, the oldest ended sessions without a topic go first; after that nothing is removed silently: you get an inbox item, "Conversations use more disk space than the limit", and delete archived topics yourself.
- Removing one entry: as the host you can remove a single entry of a conversation ("Remove this entry…" on the entry), for example the output of a command that printed a secret. The control is on people's messages, smurg's own messages, the agent's text and the lines of its tools. The entry is deleted from the disk, and everyone sees "The host removed this entry." in its place.
- What removing an entry does not remove: that people already saw it; Claude Code's own record of the conversation (below); and the copies smurg keeps outside the conversation. A question with its votes and comments, a permission request with the command or the diff it showed, and a suggestion are cards: the conversation only points to them, and they stay as they are. So do the excerpts in inbox items, the questions asked under a result report, and the audit log. Deleting the topic removes all of these except the audit log. A session without a topic has no such way: its conversation is removed 30 days after the session ended. The dialog that asks you to confirm the removal says which of the two applies to the entry.
- Claude Code's own record: Claude Code keeps its own transcript of each conversation under
~/.claude/on its own schedule (30 days by default); smurg never reads or deletes it. It is the agent's memory. When an agent is continued after Claude Code removed it, the conversation says "Claude Code no longer keeps the earlier conversation. Claude starts again from the files." smurg uninstallremoves the conversations with the rest of~/.smurg(§9.5).- The audit log is in the same workspace folder (
audit.jsonl, at most three files of 32 MB; the oldest entries go first) and keeps the full text of what was sent to agents. So that one member's loop cannot push everything else out of it, a member's accepted requests of one kind are recorded there up to 120 a minute. The rest of that minute are written whole toaudit-overflow.jsonlbeside the log, and the log gets one entry that says how many. The host console reads only the log: when you look into such a flood, open the overflow file yourself (one entry per line, in the same form). Never moved there: what you do yourself in the web app, what agents do, and every role change, removal of a member, decision about project settings and removed entry.
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:
- Each agent session tells the smurg on this computer when a shell command starts and when it ends. This notice never blocks a command: when smurg does not answer it, the command is simply not recorded under that agent. (Whether a command may run at all is decided before, as §5.2 describes.)
- A file that changes while exactly one agent is running a shell command (plus 3 seconds after the command ends), and that nobody else claims, is recorded as changed by that agent, for example "Claude (Amy) changed src/app.ts with a shell command"; the audit log says the same. While two or more agents are running shell commands, the change still shows as "Outside program".
- Known limit: if you change a file in the same area with a tool outside smurg (another editor, your own terminal) while an agent is running a shell command, the change is also recorded as that agent's.
- The cost: two small programs run for every shell command, about 0.05 seconds each on the development machine.
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):
- the workspace code, the shared folder, the relay's address (it says when that is the shared relay) and the connection state, the number of connections and the members online;
- the daemon key fingerprint (§3);
- keep-awake (§6);
- notices of agents' shell commands (on or off, §5.5);
- "Claude Code": its version, whether this smurg was verified with it or it is too old for agent sessions, and whether it is logged in ("not checked yet (smurg checks it when the first agent session starts)" until then);
- "Agent sessions": how many are running, waiting for a person, stopped without a report or failed, and idle;
- "Topics": how many there are, and how many of them run, wait for a decision, are ready to check or are paused, for example "3 (1 running, 1 waiting for a decision, 1 ready to check)" (§10.3, §10.5);
- "Claude Code project settings": "confirmed (agents use them)", "not confirmed (agents run without them; confirm them in the web app)" or "none in this folder" (§5.3);
- "Your own Claude Code allow rules": how many apply to agent sessions (§5.3);
- where the daemon's log is:
~/.smurg/logs/<workspace code>.log(mode 0600, no invite links in it). When something goes wrong, the details are there.
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 see | Cause 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 sharing | The 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 command | Claude 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 session | Only 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 feed | You 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 it | smurg 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
smurg updatefirst readshttps://downloads.smurg.ai/latest/VERSION. When a version newer than yours exists, it downloads this computer's executable and that version'sSHA256SUMSfromhttps://downloads.smurg.ai/v<version>/, and replaces the current executable in place only when the sha256 matches, the file really is that version and it runs on this computer. Then it prints the old version, the new version and the address of the changelog (https://smurg.ai/docs/changelog/). When you already have the newest version it does nothing, and it never replaces the executable with an older version.- You cannot update while sharing:
smurg updateasks you to runsmurg stopfirst; it does not stop sharing by itself. The reason: the daemon that is still running is the old version, while thesmurgcommand that agent sessions call is already the new one, and the two versions together can go wrong. - Your workspaces are kept. The first
smurg hostof the new version reads what the earlier version wrote (members, invite links, keys, settings, topics, conversations) and carries it over; nothing is reset and nobody joins again (§9.2). What a version changes is in the changelog. - Your
smurg, the web app and every teammate'ssmurg attachmust speak the same protocol version. The web app comes from the relay, and the shared relay gets each new version when it is published. While the page is newer than yoursmurg, teammates read "The host's smurg is older than this page" and cannot connect until you have updated;smurg hosttells you in one line when it turned such a teammate away (§8). A teammate whose tab orsmurgis the older one is told to reload or to update. When you run your own relay, deploy it again each time you update (§2.2). - Going back to an older version is not supported.
smurg updatenever installs one. A workspace that a newer smurg has shared may be refused by an older one: smurg 0.4.0 refuses every workspace that 0.5.0 or later has shared, and 0.5.0 every workspace that 0.6.0 or later has shared; their message tells you to move the workspace's folder away. Do not follow that advice (§9.4 is for those who did): install the newest version again. (0.5.1 and 0.5.2 say that nothing was changed and that you runsmurg update.) - If the download fails, the sha256 does not match or you press Ctrl-C, the current executable is left untouched and the partly downloaded temporary file is deleted.
- When the folder that holds the executable is not writable (for example, it was not installed by the installer), it says which folder: update the way you installed, or run the install line of §1 again.
- You trust what the installer trusts:
SHA256SUMSis not signed, so it rests on https and on downloads.smurg.ai itself. - The environment variable
SMURG_INSTALL_BASE_URL(for tests or a mirror) downloads from that address instead. Only https is accepted.
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:
- 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 hostdoes not start and the workspace is exactly as it was (§9.3). - 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 nextsmurg hostfinishes 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:
- the workspace itself: the same workspace code and the same daemon key. The fingerprint is the one your teammates compared, and nobody is asked about a changed key;
- every member with their role, and every device: your teammates open the workspace again without a new invite link
(in the browser once the page has loaded anew, with
smurg attachonce they have runsmurg update). People you removed stay removed, and a revoked device stays revoked; - the invite links: a link that had uses left still works, and a link that was used up, revoked or expired stays refused. As at every start, the host link of the last run stops working and a new one is printed;
- the settings you changed in the host console;
- kept worktrees with the work in them, the merge requests that wait for you, the kept copies of conflicts, an upload that was interrupted (it goes on where it stopped), the suggestions that were decided, the audit log and the activity feed;
- on this computer: your relay login, and the record of which folder is which workspace.
New since 0.4.0, with these values after the update (the host console's settings change them):
- "Agents may use my own and this project's MCP servers": off (§5.3). An update never switches this on;
- the waiting time after which a question or a permission request reaches the others: 5 minutes (§10.6);
- "Work items running at the same time": what a new workspace gets on this computer (§10.4).
What did not come along, and why:
- Sessions. Under 0.4.0 no session outlived
smurg stop: its terminals had ended, and its agent sessions were terminals too, so there is no conversation to continue. - A suggestion that still waited for an answer when sharing stopped: it is closed, as 0.4.0 itself closed them at every stop.
- Agent sessions with an older Claude Code: they need 2.1.288 or later now (§1).
- A teammate's
smurg0.4.0, and a browser tab from before the update: both are turned away until the teammate has updated or reloaded (the guide for teammates, §8 and §10).
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:
- Editor now also takes part in topics: an Editor votes on agents' questions, comments on them and reviews result reports.
- Agent access now also creates topics and starts their work items, sends messages to agents, answers what agents ask to run on your computer, and changes who is responsible for a session.
- Viewer reads, as before.
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:
- a session that someone had made stricter ("Asks before edits and commands" for a work item or a session in a worktree) keeps that choice; every other session follows the workspace's mode;
- every session runs on the host's default model, as before: nobody has chosen a model yet (§5.1);
- the line above names the smurg that last shared the workspace (for example "This workspace was last shared with smurg 0.5.2").
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 work items an earlier Start started keep waiting for you to merge them; the ones started from now on merge by themselves;
- the audit log has one entry for the change of the setting, made by the update, and each automatic merge says whether you chose the setting or the update set it;
- plans go on by themselves after a restart (§10.5): a plan that the earlier version paused at its restart goes on at the first start of 0.7.0, unless it has a work item that ran directly in the shared folder and was interrupted.
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 says | What 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.":
- "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.
- 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.jsonthat 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. - 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. - 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.
| File | What it holds | Setting it aside loses this, and nothing else |
|---|---|---|
inbox.json | what each member has read or dismissed in their inbox, and the mentions kept for them | everything in every inbox is unread again; the kept mentions |
suggestions.json | the suggestions members made to agent sessions | all of them; one that still waited is made again |
conflicts.json | the list of kept conflicts between a person's and an agent's edit of the same file | that list: the agent's version can no longer be applied from smurg. Your files are not touched |
worktrees.json | smurg's record of the worktrees it made and of every merge request, and of smurg's own history of a folder without .git | smurg 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.json | which terminal sessions were running | nothing after a normal stop; after a crash, processes those terminals left running are not ended for you |
host-rules.json | your own Claude Code allow rules as smurg last saw them | nothing that lasts: smurg tells you about the rules again |
claude-trust.json | your decisions about projects' Claude Code settings | all of them: agent sessions start without a project's settings until you confirm them again |
cards.json | which conversations have questions and permission requests | the 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:
- Whoever opened the new workspace in between has ITS key recorded: your own browser, and every teammate who
joined it or accepted its key. They are not asked anything. Their page says
"Security warning: connection refused" (
smurg attach: "… the key of the host's computer differs from the one this computer recorded last time …"), and its only way on is a link. Open "Your link" of step 4 yourself. Send the others a link again, and tell them over another channel the fingerprint thatsmurg statusshows now (the one from before the move). With the link they are asked "The host computer's key has changed", compare the fingerprint and confirm. - The link for teammates that step 4 prints is an Editor link (unless you chose another with
--role). An earlier member with another role (Viewer, Agent access) who takes it reads "This invite link cannot be used" after confirming the key. The key was accepted all the same: they open the workspace again, without the link, and are in. Or make them a link of their own role in the host console. - Someone who joined only the new workspace is not a member of the earlier one, and the invite links made in between do not work in it: send a new link.
- The topics, the conversations and the audit log of the time in between are not merged into the earlier workspace. They stay in the folder you set aside at step 2; the spec, plan and report files of those topics are files of your project and stay where they are.
- The worktrees of that time (
.smurg/worktrees/in the shared folder) stay on disk, and smurg no longer knows them: merge by hand what you still need, then delete them. - What 0.4.0 left open is open again: the kept worktrees with their work, and the merge requests that waited for you, which can still be read and approved.
Two more things to know:
- If you moved the folder twice, the second
mvdid not replace the first.oldfolder: it put the folder it moved inside it, as<workspace code>.old/<workspace code>/. The earlier state is what lies directly in the.oldfolder; move the folder inside it out before step 3. - If you moved the folder on purpose, to replace the workspace's keys (§5.1 "After taking it back", step 1), do not go back: the keys you wanted to replace are in it. Leave it where it is, and delete it when you no longer need its conversations and its audit log.
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:
- the executable itself (
~/.local/bin/smurgwhen the installer installed it); - the cache: the native modules unpacked from the executable (macOS:
~/Library/Caches/smurg; Linux:~/.cache/smurg; withSMURG_CACHE_DIRset, thenative-…folders in that directory); - the state folder
~/.smurg(orSMURG_HOME): logins, the device key, every workspace's keys, members and invite links, the conversations of agent sessions, log files. Afterwards the members and invite links of the workspaces you shared no longer work.--keep-datakeeps it.
It does not touch:
- the
.smurg/folder inside a project folder: the worktrees and the changes not merged yet are in there.smurg uninstallonly lists the ones it knows about; whether to delete them is up to you. - the spec, plan and report files of your topics: they are files of the project (
specs/in the shared folder). - shell startup files: the installer only told you to add
~/.local/binto yourPATH; it never changed your files. Remove the line you added yourself.
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
- Merge. Merging is yours: by default smurg merges for you each work item whose report says it is complete and verified, and what else needs a merge waits for you (§10.3); without git, work items change the folder directly (§10.2). Whether work items merge by themselves is your setting ("Merging work items").
- Undo a merged work item or a whole topic, where smurg keeps history (§10.3).
- Decide what only you can: a work item that changes files only you may merge, a hand edit by a member without agent access, the main workspace in the way of a merge (§10.3), and "Accept as it is" for an unfinished work item without git (§10.2).
- Confirm the folder's Claude Code project settings (§5.3), edit
CLAUDE.mdand the scripts those settings run, and rename or delete a folder that holds a file only you may change (§4). - Allow the requests that reach beyond the project, a command that writes where one of those scripts is, and in auto mode what smurg asks of a teammate's session (§5.2, §5.3).
- Change the host settings in the host console: what agents may do without asking (the workspace's permission mode, "Asks for nothing" included, §5.2), whether work items merge by themselves (§10.3), how many agents may work at once (§10.4), how long a question, a request or a decision waits before the others are asked too (§10.6), whether agents may use your own MCP servers (§5.3), the folders shared into worktrees.
- Start and retry work items without git: when this computer's git cannot be used, work items run directly in the shared folder, and only you start them (§10.2).
- Try again after three failed starts of a session, terminate any session, delete an archived topic, remove one entry of a conversation (§5.4).
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:
- A folder that is a git repository (with at least one commit): each work item runs in its own git worktree of
that repository, as described below. A repository without a commit, or a
.gitthat git does not take, stops Start with what to do (§8); a session that asks for a worktree of its own is refused with the same words. - A folder without
.git: smurg keeps its own history of the folder in.smurg/git, never a.gitin your folder ("The folder has no git repository of its own. smurg records the folder as it is now in its own history (in .smurg, not a .git of yours), and each item starts from that."), and topics run as with a repository: a worktree per work item, the result report's diff, your merge.- Start records the WHOLE folder in that history, under the name of the member who pressed Start, and every worktree
is a copy of it. What it leaves out:
.smurgitself,node_modules/,.venv/,__pycache__/,.DS_Store, the files teammates cannot see (§4) at any depth, the folders shared into worktrees, and what the folder's own.gitignorefiles ignore. A folder of more than 1 GB or 50,000 files is refused before anything is written (§8): name large folders in a.gitignoreor as shared folders. - A folder inside it that is a git repository of its own (
frontend/.git) is left out: work items do not see it, and the Start dialog names it ("These folders are git repositories of their own, and work items do not see them: …"). To work in one, share that folder. - In a folder that a cloud service syncs (iCloud Drive, a folder under
~/Library/CloudStorage, Dropbox), the history and every worktree are synced too, and a file kept only online can make Start fail; the dialog says so. - The history keeps every version of every file it recorded, secrets included, also after you delete a file
from the folder, and agents in worktrees can read that history through their own checkout. It only grows: smurg
packs it, never prunes it. smurg's checks keep others away from it (no person can write
.smurg, no agent's edit or command that names it runs, and smurg refuses a history that something else changed, §8). .smurg/gitstays when the folder becomes a repository later. You can remove it once no work item and no merge request of it waits: the next Start in a folder without.gitmakes a new one.
- Start records the WHOLE folder in that history, under the name of the member who pressed Start, and every worktree
is a copy of it. What it leaves out:
- Without git (not found, older than 2.42, or it does not run): work items run one at a time directly in the shared folder, where people work too. There is no diff to review before a change lands, nothing waits for a merge, and smurg cannot undo a change. Only you can start or retry such items, after ticking the dialog's box ("I understand that these changes land in the shared folder directly"); a teammate's dialog says "Without git, only the host can start work items: they run directly in the shared folder." One agent works in the folder at a time, its later turns included: a message to an item while another one works waits ("This message waits: another work item is working in the shared folder. It is sent when that one is done"). Each item writes its report in the folder, without a diff. What depends on an item starts only when its report says complete and verified (and was checked in the turn that made it); otherwise the item waits for a decision: a follow-up, "Continue", "Leave it out…", or your "Accept as it is". Its session ends once someone has reviewed the report or the topic's result was checked. To get worktrees, install git 2.42 or later and share again (§8).
- An item runs only in the history its own Start chose. When that history cannot be used any more (git went missing,
.gitwent away or appeared, smurg's own history was refused), the item does not start, also on "Try again", and says why (§8); it never moves to another history or into the folder by itself. - The folder can become a repository while you share it. In your own terminal, in the shared folder:
git init
git add -A # write a .gitignore for node_modules and the like first
git commit -m "First commit"
- smurg looks again whenever Start is pressed, and every few seconds: the next Start uses the repository, without
sharing again, and open pages see it within seconds. Work items and merge requests that smurg's own history made
keep working with it until they are done; new ones use the repository. A change of git itself (installed,
updated, repaired) needs sharing again: smurg looks for git, on the
PATHof the terminal that ransmurg host, only when sharing starts or the folder becomes a repository (§8). smurg runs no git for a teammate's request in a folder without.gitbefore it has checked git itself (§8). - git leaves smurg's own
.smurgfolder out. Each start of sharing writes.smurg/.gitignore(*) unless there is one, so git leaves the folder out whatever the order ofgit init,git add -Aandgit commit. If the repository already tracks it (committed while sharing with smurg 0.5.1 or earlier),smurg hostsays so once; take it out:
git rm -r --cached .smurg # the files stay on disk
git commit -m "Stop tracking smurg's own folder"
- If
.gitgoes away while you share, Start is refused with the reason, and items waiting to start may need "Start again" (§8). Nothing is deleted: worktrees, their work and merge requests work again once that.gitis back. Put it back rather than rungit init: a new repository cannot merge those requests. - Start shows what it will do before it does it: which items start now and which wait for others, who is
responsible for each, who edited the spec and the plan by hand since the last Start, and the commit below. Read
it: it is the moment the team's text becomes instructions for agents that run as you. It also says how the items
are merged: by smurg (the workspace's setting), or "The host merges each item", which whoever presses Start may
choose (§10.3). A member who renamed or
deleted the topic's folder, or
specsitself, is named there for both files. A change ofSPEC.mdorPLAN.mdthat a program outside smurg made is listed as such; a whole folder that such a program swapped is not listed, though smurg reads the two files again at once and Start confirms what they hold then. - smurg commits the spec and the plan for you (in a repository of the folder; with smurg's own history, Start
records the whole folder, above). A worktree contains only what is committed, so when someone presses Start, smurg
commits exactly two files, the topic's
SPEC.mdandPLAN.md, to the branch you have checked out in the shared folder (the dialog names it; smurg merges the items into that branch, and only into it), in the name of the member who pressed Start, with the messagesmurg: spec and plan of <topic folder>and oneEdited-by:line per person who edited them by hand. Nothing else in the folder is committed, staged or changed, and none of your repository's git hooks runs. Start is refused while the repository is in the middle of a merge or a rebase, or when git ignores the topic's folder. - Agents start only from what was confirmed. A work item that waits for others starts by itself later, when the items it depends on are merged, and only while the spec and the plan are still exactly the ones that were committed at Start. If either file changed since (an Editor fixed a typo, the plan was updated), the item does not start: the person who pressed Start and you get an inbox item, look at the change and start it again.
- Each work item has its own branch,
smurg/<topic folder>/<item id>(of smurg's own history in a folder without.git), in a worktree under<folder>/.smurg/worktrees/. The agent does not commit; smurg commits the item's changes when its report is written, in the name of the member who started the item, with the messagesmurg: work item <number> (<item id>). - A fresh worktree has no
node_modulesand nothing else that git does not track. Name the folders that should be shared into every worktree (read-only for people there) in the host console's settings, or let the agents install first.
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.
- Complete and verified is what the report says: its outcome is "Complete", at least one of its checks passed, and
none failed. The checks are what the agent reports: smurg runs none of them. A ticked box is the agent's word that a
check passed: smurg refuses the common contradictions (a ticked check whose words say
failed,not run,not verified,fails, a test tool'sFAILorFAILED, or a count of failures or errors such as2 failed), and the agent writes the line again; other wordings it does not read, and what catches those is the team's check at the end and the undo. A check the report lists as not verified does not stop the merge; the Result column lists those first (below). - When smurg merges an item by itself: its turn ended normally and no later turn was stopped; nobody wrote to its
agent since its report; the report is the current version, the agent checked it in the turn that made it (smurg
asks it once when it did not: "Checking its report again"), and it says complete and verified; no file of it was
edited by hand by a member without agent access; nothing of the item waits for a person; smurg's merge policy
allows its files (below); nobody asked for its merge (a merge someone requested stays yours); the main workspace is
on the branch its Start committed on, with nothing staged; and the merge is clean. smurg looks at all of this
again just before
git mergeruns: a Pause, the setting turned off or "Leave it out…" that comes first wins. One merge at a time, the oldest report first; what waits for an item starts from the merged workspace. - The merge is a commit on that branch whose author is you (your consent) and whose committer is smurg, with
Merge smurg/<topic folder>/<item id> (<name>)and a last lineMerged-by: smurg (automatic merging, the host's setting)(in a folder without.git, the same in smurg's own history). The audit log records it as "smurg merged a work item for you", with whether you chose the setting or the update set it (§9.2). smurg never merges onto another branch: a Start on a detached HEAD is yours to merge, and its dialog says so ("The main workspace is not on a branch (a detached HEAD), so the host merges each item of this Start."). - A merge that is not clean. When the other side is only other work items' changes, smurg brings the item's checkout up to date with the main workspace itself (no agent runs git, and none of your git hooks or git settings is used) and asks the item's own agent to resolve and verify again ("Bringing its work up to date"); its next version is tried like the first. After three tries it is a decision. When the other side is a person's change (yours, a teammate's, or a commit made outside smurg), it is a decision at once, naming the file and who changed it: smurg never lets an agent resolve over a person's lines by itself. Files of the checkout that git does not track are never overwritten.
- What waits by itself: a file someone is typing in ("Waits to merge: Amy is editing"), and git busy in the main workspace for a moment. What waits for you, and goes on by itself once you have done it: uncommitted edits in a file the merge touches, files in the way where the item adds its own, something staged, the main workspace on another branch, git busy there for ten minutes, an undo that was interrupted. smurg looks again when those files or git change, at the latest every minute; §8 says what to do for each.
- What stops, and who decides. A decision stops only its item and what depends on it; everything else goes on. It is a waiting item in the inbox ("… was not merged: …"), the item's foot says why and what each person may do, and §8 has a row for each reason. A report that is not complete and verified, a conflict, a person's message to the agent or a stopped turn after its report: the item's responsible person decides when they have agent access, otherwise you and the members with agent access, and after the waiting time (§10.6) all of you. What only you decide: files only you may merge, a hand edit by a member without agent access, the main workspace in the way. What a decision offers: "Ask the agent to fix it" (a follow-up under the report), "Ask the agent to resolve", "Merge it as it is" (the version stands as it is), "Continue", "Ask the agent to take them out" and "Merge…" (yours), and "Leave it out…". An Editor's suggestion to a work item's agent (a follow-up under its report, or a message in its conversation) is a decision too: it waits for the same people, reaches all of you after the waiting time, and the topic is not ready to check until someone accepts or rejects it.
- "Leave it out…" (you and the members with agent access) drops an item and every item that depends on it without editing the plan: their changes are not merged, their sessions end and their worktrees are kept.
- The turns smurg asks for by itself (to resolve, to verify again, to continue after a restart, a usage limit or an error) run with nobody watching, in the item's own permission mode: its file edits stay in its checkout, and its commands reach as far as any turn's (§5.2).
- Ready to check. When every item is merged with nothing of it still in progress, left out or undone, the topic
is "Ready to check": every member's inbox says "Ready to check: <topic>", open pages show a notice, and
smurg hostprints one line:
Topic "Checkout" is ready to check: 3 of 3 work items are merged into the shared folder. Look at the result in the workspace.
- The topic's "Result" column shows how many items were merged and how many checks passed, failed or were not verified, the checks that were not verified first, every file each item changed with its diff as smurg merged it, what to watch out for, and every item with its report. Items that merge cleanly can still break each other: nothing verifies the combination before the end. Look at the result (run the project's tests in the main workspace yourself), then anyone but a Viewer presses "I've checked the result": the topic is complete and its work items' sessions end. Until then a follow-up from a report still reaches the agent that did the work, and a change it makes merges like the first one. "I've reviewed this" stays as a mark on each report: it changes nothing in the folder.
- Undo and its limits (only you): where smurg keeps history (the folder's own git, or smurg's own history), "Undo…"
on a merged item, or "Undo the whole topic…" in the Result column. smurg shows first what the undo does, without
touching the folder: the items built on it go with it, and so do later merges of the same lines (of any topic,
named with their topic, whose sessions end too); a dependent that is running, a person's later change on the same
lines (named), someone typing, uncommitted edits in a touched file, something staged, git busy or another branch
keep it from running, and so does an undone item's checkout that holds changes no merge carried (a member's saved
edit there, a later turn of its agent): the undo would delete them, so they are merged first, or you remove that
checkout on purpose. Then one new commit takes the change back out, as you; the reports and conversations stay,
and an undone item can be started again. In smurg's own history the folder is recorded first, so nobody's saved
edit is taken back. A checkout a member saves a file in while the undo runs is not deleted: it stays as its
owner's worktree, and the item starts again from a new one. An item whose merge smurg no longer keeps a record of
(its worktree is gone, and smurg keeps the newest 300 decided merges) cannot be undone here ("smurg cannot find
this item's merge in the main workspace's history any more."): revert it with git in your terminal. What undo
cannot take back: what the agents' commands did outside this folder (other folders,
installed tools, services they called), and a branch you pushed keeps the merge until you push the undo too. To
bring an undone change back in the folder's own git, run
git revertof the undo commit in your terminal. Without git there is nothing to undo (§10.2). - Files smurg never merges by itself: files only you may change (
CLAUDE.md,.claude/,.envrcand the like, and the scripts your confirmed project settings run, §5.3), the topic's ownSPEC.mdorPLAN.md, a link pointing out of the project, and smurg's.smurg. Such an item waits for you with the files named: "Ask the agent to take them out", or request the merge yourself and read the diff before you decide. Its report says why, for example "The changes cannot be shown: the worktree contains files only the host may change." - A teammate's hand edit: an Editor's edit in a work item's checkout waits for you ("Not merged: Amy edited files of it by hand"); read the diff with "Merge…". A member with agent access could have had the agent make the same edit, so theirs merge like the agent's.
- Everyone can read the diff of a report and of the Result column. A file that teammates cannot see (§4) is listed
there without its content for everyone but you, and text that looks like a credential is shown as
[masked]to everyone. - When an item is finished: a work item that is merged and reviewed, or whose topic was checked, is finished once nothing unmerged is left in its worktree and its agent is not in a turn (a turn that answers a message to it finishes first, and what it changes becomes a version of its own; after a later turn that did not finish, smurg continues it as §10.5 says (also when you merged it meanwhile), or it waits for "Continue", and until then the topic is not ready to check; ending its session drops that turn): its session ends, its worktree is removed, its conversation and its report stay readable. Until then its session and its worktree stay, so that a follow-up from its report reaches the agent that did the work. When the worktree of an item that smurg merged holds changes that no merge carried (a member's save there, a command its agent ran after its report, a later turn that did not finish), the item waits for its responsible person: "Merged; a later change is not merged: …", and "Continue" makes the change a version of its own, which merges like the first one. A file a member saves in a worktree while it is being removed (at "I've checked the result", for example) is not deleted: the worktree stays as its owner's. Archiving a topic lists the work items whose changes were never merged and asks whether to keep or delete them.
- When you merge each item yourself (the setting "I merge each item myself", a Start that chose
"The host merges each item", a Start on a detached HEAD, and every work item started before the update to 0.7.0):
- When a result report has been reviewed, its changes are in your inbox by themselves, as "Reviewed, ready to merge", with the items that wait for it. A member with agent access can also ask you to merge work that nobody reviewed.
- The row in your inbox opens the item's result report. "Merge…" there shows the complete diff; you read it, then
choose "Merge into the main workspace" or "Reject". (A request that someone made after the report, or for a
worktree without a report, opens the list of its changes instead, with the same two choices.) The merge commit
is yours and says whose work it was (
Merge smurg/<topic folder>/<item id> (<name>): the member who asked for the merge, else the one who started the item). It merges where the main workspace is now. - Work items that depend on others start only after you merged those. In such a plan you are the one everybody waits for: the plan says which items wait for a merge, and the inbox puts the merges that unblock something first.
- A conflict stops the merge and leaves the main workspace as it was. You or a member with agent access can then ask the item's agent to resolve it ("Ask the agent to resolve"), and the merge is offered again once its new report is reviewed.
- A follow-up after your merge that made the agent change something more waits for your merge like the first one ("Reviewed · waits for the host to merge").
- Without git nothing waits for a merge (the plan says "Without git, work items run one at a time directly in the shared folder; nothing waits for a merge."): an item counts as merged when its report is in and says complete and verified, and what depends on it starts once the folder is free. Otherwise it is a decision, and you can also press "Accept as it is" (§10.2).
10.4 How many agents work at once, and memory
- One Claude Code process runs per agent that is working or waiting for a person. On the development machine a fresh one took about 260 MB of memory, and one with a long conversation 400 to 600 MB.
- smurg therefore limits how many work items work at once: 8 by default, fewer on a computer with little memory (about one per 3 GB, at least 2). You change the limit in the host console's settings ("Work items running at the same time"). A work item that waits for a free agent says so in the plan, with how many of the working agents are waiting for a person.
- An agent that is idle gives up its process after a while and gets a new one with its next message; the conversation continues where it was. An agent that waits for an answer or for permission keeps its process. Such waiting work items do not keep unrelated ones from starting: up to twice the limit (and never more than 32) can then be alive at once, so an unanswered inbox can double the memory the agents take. Lower the limit if this computer cannot afford that.
- smurg shows no token counts and no cost. Several agents working at once use your Claude account several times as fast as one; look at the usage where your Claude account shows it.
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:
- Before anything goes on,
smurg hostprints which topics go on, under the links:
2 topics go on where they stopped: Checkout (2 work items), Search (1). To pause one, press Pause in its plan.
- Then the agents that were interrupted are told to continue (their conversation says "smurg was restarted on the host's computer and asked Claude to continue"), the work items that were waiting start when they may, and smurg merges what is in order. A question or a permission request that was open before the restart is asked again when its session continues; the votes and comments of the earlier card stay readable.
- When it stops (Ctrl-C, or
smurg stop), it says how many topics will go on at the next start:
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.
- "Pause" in a plan (you and the members with agent access) is the brake that stays across restarts: nothing new
starts, nothing merges and nothing continues by itself until someone presses "Continue all". Turns that run
finish, and so does a merge already under way; to stop an agent that is working, stop its session. If you stop
smurg hostbecause an agent misbehaves, pause its plan first, whilesmurg hoststill runs: while it is stopped nobody can pause anything (the web app shows Pause and "Continue all" turned off), and at the next start the turns that go on run with nobody watching (§10.3). - A later turn of a work item whose report was in (a person's message to its agent, a follow-up) that the stop cut is not told to continue: what it was asked is not known after the start. So is a message to such an item that no turn had taken yet: it waits in its session. The item waits for its responsible person's decision ("its last turn did not finish": Continue, "Merge it as it is" or "Leave it out"; for an item already merged, Continue, and its merged version stays in the folder), and nothing of it merges until then. While such a message waits, "Merge it as it is" (and, without git, "Accept as it is") is not offered: Continue delivers it first. Your own "Merge…" stays yours once you have read the whole change: that version merges, and the item then waits for Continue like an item already merged. So does an item you merge yourself (§10.3), also after you turned smurg's merging off while it waited. Until Continue the topic is not ready to check, and "I've reviewed this" does not end the item's session. "End session" on an item already merged drops that turn: what it changed stays in the worktree, and "Request merge" there puts it in your inbox. Your reject drops it (it stays there), as "End session" drops a later version you rejected.
- Two kinds of plan stay paused after a restart: one a person paused (
smurg hostnames it: "Paused by a person, and still paused: …"), and one with a work item that ran directly in the shared folder and was interrupted (its half-done change is in the folder, which has no history). The web app shows the second on top of the sessions view ("smurg was restarted on the host's computer."), and you and the members with agent access have one inbox item per topic. "Continue all" lets such a plan go on. - smurg also goes on by itself after other interruptions, each a bounded number of times: when your usage limit has reset, after a turn that ended on an error (twice: a minute and five minutes later), after an agent's process stopped (once, a minute later), and after it could not record an item's changes (once). Never for an item a person stopped, nor while the plan is paused or Claude Code is logged out. Until then nobody is asked for it (a usage limit is still the item in your inbox for the account); once they are spent, the item waits for its responsible person. The same holds for an item already merged, whoever merged it.
10.6 When someone does not answer, leaves or is removed
- Nobody answers. A question or a permission request that has waited for the waiting time (5 minutes by default; 1 to 60 minutes in the host console's settings), or whose person has been offline for a minute, also appears in your inbox and in that of every member with agent access. You can then answer in that person's place ("Submit for Ian"); the conversation records that you did. A decision on a work item that was not merged reaches you and them the same way (§10.3), except the ones only you can settle, which are yours from the start, and so do a work item whose agent could not finish (it stopped without a report, its process failed, or it was stopped) and an Editor's suggestion to a work item's agent. A result report of an item you merge yourself that nobody reviewed does the same after six times that long.
- A member leaves the workspace, or you change their role so that they can no longer use agents: their terminals and their agent sessions without a topic end. The sessions of topics pass to you and keep running ("Amy left. This session now runs for the host"). When they left or are now a Viewer, whatever they were responsible for is decided by the next person in line: whoever opened the session or pressed Start, or you. A member you made an Editor stays responsible for what they had. The worktrees of the sessions that ended are kept, with their changes. After a role change they pass to you. A member who left keeps theirs: leaving does not take away the role, and they find them when they open the workspace again.
- You remove a member: the same, but their topic sessions are stopped first ("Amy was removed. This session was stopped and now runs for the host"), and the worktrees they had kept pass to you. A member who is removed and joins again does not get their old sessions back.
- In all these cases what they put in place goes with them: the kinds of commands they always allowed are removed, a permission mode they chose goes back unless it is stricter than what the session or the topic would follow (a stricter one stays), a model they chose that may be billed to usage credits goes back to your default (the conversation says "The model is back to the host's default: …"), and work items they started that have not begun do not start until someone starts them again. A session that passed to you keeps the limits it was created with: its agent still cannot change the files only you may change.
10.7 Long discussions
A topic's discussion is one conversation that everyone shares, and it can get long.
- When it no longer fits, Claude Code shortens the earlier part by itself (a pause you can see, then "Claude Code shortened the earlier conversation to make room."). The spec and the plan are files, so what was decided is not lost.
- A long conversation costs more with every turn, and after the team has deliberated for a while without the agent, the next turn reads the whole conversation again, on your account.
- A long discussion therefore offers "Start a fresh conversation": the topic gets a new discussion that starts from the spec and the plan as they are now. The earlier one stays readable.
- If a topic's discussion can no longer be used at all (it was terminated, or it failed to start three times), you and the person who created the topic get an inbox item with "Restart discussion". The files and the work items are not touched by that.
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:
- Agents start no subagents, and agent definitions in
.claude/agentsare not used (§5.2). - The checks in a result report are what the agent says it ran: smurg runs none of them. Work items that merge cleanly can still break each other, and nothing verifies the combination before the topic is ready to check (§10.3).
- Auto mode's check is a model's judgement. smurg's own rows in auto mode see only what smurg can read in a command, and its deny rules refuse only commands that name a place (§5.2). smurg also relies on Claude Code 2.1.288 for this: a session's settings file is read once, at its start; a deny rule refuses a shell command that names its place, in auto mode and in "Asks for nothing"; the check skips only commands inside the agent's own folder. Each newer Claude Code is checked for these again before smurg is verified with it.
- smurg's own history of a folder without
.gitonly grows and keeps the files you deleted (§10.2). - The list of models is what your Claude Code answered last; a model removed from your account since shows as refused in the session (§8).
- In a folder whose project settings run scripts, smurg reads what an agent's shell command names. A program that names none of the scripts (a build, a script that rewrites another) is not seen before it runs (§5.3).
- Removing an entry of a conversation does not remove the cards, the inbox excerpts and the audit entries that hold the same text (§5.4).
- A link in what an agent or a member wrote shows where it leads only when you rest the pointer on it or reach it
with the keyboard. smurg writes the destination out beside the words when the words themselves name another
place (
github.com (https://evil.example/)), but it does not recognize every such case: a name under a less common ending (amazon.in,github.lol) and a name with a sign in it that only looks like a dot are drawn as ordinary links. Look at the destination before you follow a link (the guide for teammates, §5). - A spec or a message that takes too long to format is shown as it was written, in whole or in part, under a note. In a very large spec of that kind the first keystrokes can each take most of a second, until every section that is slow to format has been set aside.
- When an agent session ends, or you stop sharing, smurg ends what the agent's commands left running. On macOS it
can miss one kind of program: a background job of one of Apple's own programs (
/bin/sleep,/usr/bin/python3) whose shell ended at once. smurg finds such a job only if its scan, every two seconds, saw it while the shell still ran. Anode, apnpmor apythonfrom Homebrew is found. - Hosts need macOS or Linux; Windows is not supported. Teammates only need a browser, on any operating system. On Linux every test passes (Ubuntu 24.04: an arm64 virtual machine, and x64 on GitHub Actions), but nobody has really hosted there yet: besides real Claude Code (above), the installer has not run on a fresh Linux computer.
- Only the Apple silicon executable is tested on the development machine. The Intel Mac and Linux executables are built by GitHub Actions on their own platforms and smoke-tested there.
- Not built: comments on a section of a spec, cost or token figures, and a terminal client for agent conversations
(
smurg attachattaches terminal sessions only: the guide for teammates, §10).