Skip to content

Command reference

Run shadowclone --help for the full command shape. Run shadowclone with no arguments to see the current result and the next step.

  • 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. --repo opens it for this repository, --no-open prints the local URL, and --cli configures a build in the terminal.
  • shadowclone install --agent all --global: install native guidance for every agent. --agent <agent> --local installs it for this repository only.
  • shadowclone uninstall --global or --local: remove the integrations that shadowclone owns in that scope.
  • shadowclone sync: refresh maintained skills, bundled skills, and native routing. --replace-edited also 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, or status: turn background learning on or off, or read the last attempt.
  • shadowclone learning list or pending: 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> or reject <key>: decide a learned rule.
  • shadowclone learning retire <key>, narrow <key>, or replace <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 repositories and bind <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 status reads the last receipt.
  • shadowclone skills: list the bundled skills. skills list lists 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>, or reject <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 on or off: allow or stop automatic edits.
  • shadowclone skills retry <key> or exclude <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.

  • 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>. --cloud comments @<bot> review so the Actions bot reviews it. Other options are --no-checks, --offline, --repo owner/repository, --output file.md (or file.json for the full result as JSON), --model <id>, and --effort <level>. --no-lenses turns lens runs off, and --max-cost <usd> sets their limit, $4 by default. The cloud workflow also uses review prepare, checks, analyze (with --lenses on to add lens runs), and publish. See reviews.
  • shadowclone bot setup --bot <login>: set up the machine account bot. --provider is anthropic (default), openai, openai-compatible, or cursor. openai-compatible needs --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. --yes skips the question.
  • shadowclone clone setup --repo owner/repository: set up clones on this machine. --provider is claude-subscription (default), anthropic, chatgpt-subscription, openai, openai-compatible, ollama, or foundry. The endpoint providers need --base-url <url> and --model <id>. --no-attribution turns off the Co-authored-by trailer, and --image <name> uses another clone image. If the skills repository does not exist yet, --yes pushes 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>, and clone 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> and clone 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 second serve on the same machine exits with status 1.
  • shadowclone hub serve [--port <n>]: serve the hub on 127.0.0.1, port 4517 by default. A second hub on the same machine exits with status 1. hub service installs 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. --tailnet uses tailscale serve, so only your tailnet reaches the hub. --off turns it off.
  • shadowclone hub pair: print a pairing code for a new client. A code works once, for 10 minutes. --node prints 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-service skips 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 nodes and hub nodes remove <name>: list the joined machines, or remove one.
  • shadowclone hub clients and hub 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 on ntfy.sh. --text adds the repository and the question, --no-text removes them, --off stops the pushes, and hub notify test sends one push.
  • shadowclone hub lock and hub unlock: refuse every request, or allow them again.
  • shadowclone hub allow <source>...: accept requests only from anthropic, tailnet, loopback, or address ranges. --any removes the limit.
  • shadowclone hub status: show the URL, the lock, the allowed sources, and the number of clients.
  • shadowclone live enable and live 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 status and live list: show the setting and the live sessions of this machine, then the open pairs. With task briefs on, live list adds the name of each brief, and its kind while the brief describes the last message of an idle session. live hook claude and live hook codex run 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 enable and live briefs disable: turn task briefs on or off. Disable deletes the saved prompts and briefs. live brief <live-id> writes one brief, and the Stop hook starts it. See the hub.
  • shadowclone live pair <live-id> <live-id>: let two live sessions send each other notes, 20 in total. live pairs lists the open pairs, and live unpair <pair-id> ends one. See the hub.
  • shadowclone check [--changed]: run the repository checks. --format accepts human, json, or claude-stop.
  • shadowclone mcp: serve the MCP tools on standard input and output.

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.

An agent can pass all three consent decisions without prompts:

Terminal window
shadowclone init --learn --skill-maintenance --background-learning

Each 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.

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 with project action <id> '{"operation":"setMaxWorkers","count":<n>}'.
  • shadowclone project link <project> [folder] and project unlink <project> [folder]: add a folder to a project, or remove it. Without a folder, both use the current folder.
  • shadowclone project on and project 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>] and project 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 as worker-2.
  • shadowclone project add-worker <id> <claude|codex|mcp>: add a worker seat. For mcp, 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 as lead, worker, or worker-2.