Command reference
Run shadowclone --help for the full command shape. Run shadowclone with no arguments to see the current result and the next step.
Set up
Section titled “Set up”shadowclone init: choose consent for learning and skill maintenance.shadowclone init --advanced: choose each capture source on its own.shadowclone init --status --json: check whether setup exists, with no change.shadowclone init --repo: set up shared instructions, skills, and checks for this repository.shadowclone wizard: pick skills in the browser.--repoopens it for this repository,--no-openprints the local URL, and--cliconfigures a build in the terminal.shadowclone install --agent all --global: install native guidance for every agent.--agent <agent> --localinstalls it for this repository only.shadowclone uninstall --globalor--local: remove the integrations that shadowclone owns in that scope.shadowclone sync: refresh maintained skills, bundled skills, and native routing.--replace-editedalso replaces shadowclone content that changed after shadowclone wrote it.shadowclone doctor: check the installation and the effective policy.shadowclone forget --all: remove all shadowclone state and the files that it owns.
Agent identifiers are claude-code, codex, cursor, antigravity, pi, and opencode. Add --subagent to install an optional local Claude subagent. Add --auto-delegate to allow automatic delegation.
shadowclone learn: index sessions and report, with no model call.shadowclone learn --deep: run a bounded learning pass with a model. Options are--dry-run,--apply,--engine <id>,--model <id>,--reasoning-effort <level>, and--max-calls <n>. See learning.shadowclone remember [--repo or --global] <text>: record a rule yourself.shadowclone import: read consented repository guidance as evidence.shadowclone learning enable,disable, orstatus: turn background learning on or off, or read the last attempt.shadowclone learning listorpending: list active guidance, or every open review and publication decision.shadowclone learning show <key>: read the redacted evidence, the guidance, and the scope.shadowclone learning apply <key>orreject <key>: decide a learned rule.shadowclone learning retire <key>,narrow <key>, orreplace <key> <guidance>: preview a retirement, a limit to this repository, or a replacement.shadowclone learning remove-source <source>: preview the removal of guidance that one source alone supports.shadowclone learning repositoriesandbind <id>: review and confirm repository links for past sessions.shadowclone learning acknowledge <key>: mark later corrections as reviewed.shadowclone learning probe <key> --agent <agent> --task <text> --expect <text> --yes: test one exact response on macOS.probe statusreads the last receipt.
Skills, context, and history
Section titled “Skills, context, and history”shadowclone skills: list the bundled skills.skills listlists the skills in your configured roots.shadowclone skills update: review the library and update skills.shadowclone skills pending: list unpublished learning and conflicts.shadowclone skills show <id>,apply <id>, orreject <id>: decide a proposal.shadowclone skills configure [--repo or --global]: choose the skill roots to maintain. It also accepts--root <directory>and--third-party.shadowclone skills automatic onoroff: allow or stop automatic edits.shadowclone skills retry <key>orexclude <key> <reason>: queue a record again, or keep it unpublished.shadowclone skills disable: stop access to the skill library.shadowclone context --explain: show the guidance that is active in this repository.shadowclone history [revision]: list revisions, or show one.shadowclone undo <revision>: restore the files of a revision.
See skill maintenance.
Review, cloud, and repository
Section titled “Review, cloud, and repository”shadowclone review <pr>: review a pull request on this machine and write a Markdown file.--base <ref>reviews the commits on this branch since it left<ref>.--cloudcomments@<bot> reviewso the Actions bot reviews it. Other options are--no-checks,--offline,--repo owner/repository,--output file.md(orfile.jsonfor the full result as JSON),--model <id>, and--effort <level>.--no-lensesturns lens runs off, and--max-cost <usd>sets their limit, $4 by default. The cloud workflow also usesreview prepare,checks,analyze(with--lenses onto add lens runs), andpublish. See reviews.shadowclone bot setup --bot <login>: set up the machine account bot.--providerisanthropic(default),openai,openai-compatible, orcursor.openai-compatibleneeds--base-url <https url>and--model <id>. Other options are--model <id>,--repo owner/repository,--yes, and--no-open. See the Actions bot guide.shadowclone bot status --repo owner/repository: list the open setup steps, or start the check run and wait up to 8 minutes for its result. It exits with status 1 until the check passes. Without--repo, it prints the saved setups as JSON.shadowclone bot export --skill <name> --output <private-folder>: save skills to a folder outside the checkout, with no upload.shadowclone clone skills: push the equipped skills of the current checkout to your private repository<you>/shadowclone-skills, after you approve the file list.--yesskips the question.shadowclone clone setup --repo owner/repository: set up clones on this machine.--providerisclaude-subscription(default),anthropic,chatgpt-subscription,openai,openai-compatible,ollama, orfoundry. The endpoint providers need--base-url <url>and--model <id>.--no-attributionturns off theCo-authored-bytrailer, and--image <name>uses another clone image. If the skills repository does not exist yet,--yespushes your skills without a question. See clones.shadowclone clone secrets --repo owner/repository: name the secrets file and the values to paste into it.shadowclone clone status --repo owner/repository: run the check in Docker. It exits with status 1 until every line passes.shadowclone clone login --repo owner/repository: sign in to Codex with a ChatGPT plan through a device code.shadowclone clone start --repo owner/repository [--issue <number> | --pull <number> | --review <number>] [task]: queue a clone. It exits with status 1 when the node refuses the clone, and the output names the reason.shadowclone clone list [--repo owner/repository],clone show <id>, andclone logs <id>: show the clones on this machine, one clone, and the end of its container log.shadowclone clone stop <id>: stop a clone. A running clone pushes its unfinished work first.shadowclone clone send <id> <message>andclone answer <id> <question-id> <answer>: give a running clone a message, or answer its open question. See clones.shadowclone serve: start queued clones in Docker, up to 2 at a time. Setup installs it as a service. A secondserveon the same machine exits with status 1.shadowclone hub serve [--port <n>]: serve the hub on127.0.0.1, port 4517 by default. A second hub on the same machine exits with status 1.hub serviceinstalls it as a service.shadowclone hub expose: put the hub behind Tailscale Funnel and save its public URL.--url https://<host>saves the URL of your own proxy instead.--tailnetusestailscale serve, so only your tailnet reaches the hub.--offturns it off.shadowclone hub pair: print a pairing code for a new client. A code works once, for 10 minutes.--nodeprints a code for another machine.shadowclone hub join <hub URL> --code <code>: join this machine to a hub as a node, and start the node link as a service.--name <name>sets the node name, and--no-serviceskips the service.shadowclone hub link: keep the node connected to the hub. The service runs it.shadowclone hub leave: remove the link of this machine.shadowclone hub nodesandhub nodes remove <name>: list the joined machines, or remove one.shadowclone hub clientsandhub clients revoke <id>: list the approved clients, or stop one at once.shadowclone hub notify: send ntfy pushes when a clone or a live session needs you, and when a clone ends. With no--url, it makes a private topic onntfy.sh.--textadds the repository and the question,--no-textremoves them,--offstops the pushes, andhub notify testsends one push.shadowclone hub lockandhub unlock: refuse every request, or allow them again.shadowclone hub allow <source>...: accept requests only fromanthropic,tailnet,loopback, or address ranges.--anyremoves the limit.shadowclone hub status: show the URL, the lock, the allowed sources, and the number of clients.shadowclone live enableandlive disable: turn live sessions on or off on this machine. Enable adds the hooks to Claude Code and Codex. Disable removes them and the saved state. See the hub.shadowclone live statusandlive list: show the setting and the live sessions of this machine, then the open pairs. With task briefs on,live listadds the name of each brief, and its kind while the brief describes the last message of an idle session.live hook claudeandlive hook codexrun from the agent hooks.shadowclone live show <live-id>: show one live session. With task briefs on, it also shows its brief.shadowclone live briefs enableandlive briefs disable: turn task briefs on or off. Disable deletes the saved prompts and briefs.live brief <live-id>writes one brief, and theStophook starts it. See the hub.shadowclone live pair <live-id> <live-id>: let two live sessions send each other notes, 20 in total.live pairslists the open pairs, andlive unpair <pair-id>ends one. See the hub.shadowclone check [--changed]: run the repository checks.--formatacceptshuman,json, orclaude-stop.
shadowclone mcp: serve the MCP tools on standard input and output.
Install notes
Section titled “Install notes”A repository install adds each file that it creates to .git/info/exclude, so the files stay out of commits. Uninstall removes those entries.
If an agent’s instruction file links to a regular file in your home folder, shadowclone keeps the link and writes its block into that file. If ~/.claude/CLAUDE.md imports the same file with @, Claude Code gets no second block. shadowclone follows no other link. Setup skips that agent, installs the others, and names the link and its target. shadowclone install --agent <agent> fails on such a link until you replace it with a regular file.
A Codex repository install writes AGENTS.override.md. Codex reads one instruction file in each folder, so the override would hide an existing AGENTS.md. In that case the install skips Codex, names both files, and exits with status 1. Other agents still install. Run shadowclone install --agent codex --global instead. If an earlier version created the override, the install says so and explains how to remove it.
Non-interactive setup
Section titled “Non-interactive setup”An agent can pass all three consent decisions without prompts:
shadowclone init --learn --skill-maintenance --background-learningEach flag has a --no- form. If you pass one consent flag, you must pass all three. Background learning needs session learning. An incomplete command exits and writes no configuration.
Project commands
Section titled “Project commands”Use shadowclone project open [project] for the local board. It starts the page in the background, opens the browser, prints the address, and returns. Add --no-open to only print the address. The page stops 2 hours after its last request. Use shadowclone project tui [id] for the terminal. Use project status <id> --json for a snapshot. See the Projects guide.
shadowclone resume [project]: print the note that tells an agent where the project context is. With no project, it uses the project that uses this folder. If several projects use it, it lists them.shadowclone project here: print the note for this folder, list each project that uses it, or say that no project uses it. A session gets this note only when it asks.shadowclone project list [--json]: print each project’s name, goal, folders, and last activity.shadowclone project lead <project>: give the lead seat to the agent thread that runs the command, if no live session holds it. Run it only when the owner asks.shadowclone project spawn claude|codex "<task>" [--background] [--folder <directory>]: run by the lead only. Start a worker session with the task, in tmux or headless, and give it a worker seat. A project allows 4 live workers. The owner changes the limit withproject action <id> '{"operation":"setMaxWorkers","count":<n>}'.shadowclone project link <project> [folder]andproject unlink <project> [folder]: add a folder to a project, or remove it. Without a folder, both use the current folder.shadowclone project onandproject off: turn projects on or off. When they are off, agents do not propose or lead projects.shadowclone project context <project>: print the context folder, the project folders, and the files as JSON.shadowclone project board [project]: list the plan steps that are open, taken, or done. If several projects use the folder, name one.shadowclone project claim <step> [--plan <plan>]andproject release <step>: take an open plan step so that no other agent starts it, or give it back. Only a session that holds a seat can run them. The step records its role, such asworker-2.shadowclone project add-worker <id> <claude|codex|mcp>: add a worker seat. Formcp, it prints the one-time code for the IDE agent.shadowclone project invite <id> <role>: issue a new one-time code for an IDE agent seat, such aslead,worker, orworker-2.