Data handling
shadowclone reads the sources that you enable and maintains local coding-agent guidance. It has no hosted collection service, analytics, crash reporting, or automatic upload of your environment. Model work uses your installed, authenticated agent CLI, under the account and retention terms of its provider.
Consent
Section titled “Consent”Source settings live in ~/.shadowclone/config.toml and default to off. Default setup names detected paths before it asks about session access, skill maintenance, and background learning. init --advanced offers a choice for each source. Managed policy can restrict these settings.
Before consent, setup checks only whether a configured source root exists and has data. It keeps a temporary boolean and opens no source contents or entry names. Reading contents needs the matching setting.
Source access does not authorize automatic skill edits. Disabling a source removes its indexed events from later learning selection, and shadowclone checks authorization again before each text reference resolves. Pending approval checks its saved provenance against current consent. Disabling a source does not erase published guidance or requests that a provider kept. Review and retire existing guidance separately.
Sources
Section titled “Sources”| Setting | What may be read |
|---|---|
claude-code |
Session JSONL under ~/.claude/projects/ |
claude-prompts |
~/.claude/history.jsonl |
codex |
Sessions under ~/.codex/sessions/, or $CODEX_HOME/sessions/ |
cursor |
Chat databases and metadata under ~/.cursor/chats/ |
pi |
Version 3 session JSONL under ~/.pi/agent/sessions/, or $PI_CODING_AGENT_DIR/sessions/. Original files stay untouched |
opencode |
User and assistant rows in opencode.db under ~/.local/share/opencode/, $XDG_DATA_HOME/opencode/, or $OPENCODE_DB. The database stays untouched |
antigravity |
Generated conversation logs under ~/.gemini/antigravity-cli/brain/ |
antigravity-workspaces |
~/.gemini/antigravity-cli/history.jsonl, for workspace attribution |
declared-rules |
Repository-root CLAUDE.md, AGENTS.md, .cursorrules, and direct SKILL.md files under .claude/skills/ and .agents/skills/ |
claude-memory |
Claude memory under ~/.claude/projects/<repo>/memory/. Recurring extraction needs registered repositories with verified identity |
agent-context |
Consented personal and registered repository instructions, plus selected-agent baseline skills for evaluation arms |
skill-library |
Consented personal, repository, custom, and third-party skill roots |
git-metadata |
Local repository remote names, to determine scope |
github-writing |
Through your gh login, for voice capture only: your 40 newest pull request titles and bodies, your 40 newest reviews with up to 10 comments each, and your 60 newest commit messages |
live-sessions |
With remote.live-sessions on, hooks in Claude Code and Codex record each session’s repository, branch, folder name, state, terminal, and redacted last message. No prompt, tool output, or thinking |
task-briefs |
With remote.task-briefs and remote.live-sessions on, the UserPromptSubmit hook keeps the redacted first and latest prompt of each live session, each at most 2 KB. No subagent prompt, tool output, or thinking. A live session can also ask the owner a question with shadowclone_ask |
repository-manifests |
Scripts and dependency names in package.json, lockfile names, pyproject.toml, requirements.txt, Makefile targets, CI workflow files, and top-level entry names, for repository setup |
Shell history is not a source. Upgrading deletes indexed shell history events, cursors, and repository bindings, and shadowclone ignores a shell setting left in an older config.toml or managed policy.
Personal skill locations include ~/.agents/skills/, ~/.claude/skills/, ~/.codex/skills/, ~/.cursor/skills/, and ~/.gemini/config/skills/. shadowclone may also review configured provider plugin caches. It skips ~/.claude/skills/synced/, where another product syncs its own skills. Codex paths follow $CODEX_HOME when set. Evaluation context can include ~/.claude/CLAUDE.md, Codex AGENTS.md and AGENTS.override.md, and the selected skill catalog, which each study freezes.
With agent-context on, learning reads those three instruction files to find guidance that you already maintain. It also reads root AGENTS.md, AGENTS.override.md, and CLAUDE.md files for registered repositories with Git metadata consent. It verifies each repository origin and excludes blocked or changed origins. With skill-library on, it reads full user-owned skill text from the applicable personal and repository roots. Third-party skills do not become user-owned coverage. The text crosses the redaction boundary. Each instruction file has a 32 KB limit, and discovery bounds skill files and the library. Model coverage has a 512 KB limit per scope. Excess coverage stops learning before it proposes rules. A repository instruction or skill covers only rules for that repository.
Transcript parsers can meet prompts, assistant responses, tool results, and thinking blocks in an enabled file. Only user-authored text counts as learning evidence. Tool results, tool-returned file contents, thinking, and data-access results never enter learning. Agent responses, plans, and questions reach the model only as labeled context beside a user correction. Eligible text can still hold sensitive information.
Pi and OpenCode transcript consent is separate from Git metadata and skill maintenance. For these agents, session start records repository identity only when both their capture and Git metadata are on. See capture for what each adapter excludes.
What reaches a model
Section titled “What reaches a model”| Operation | Provider access |
|---|---|
Plain learn after setup |
Local indexing and reporting. No model calls |
| Deep or background learning | Selected redacted steering, supporting context, guidance needed for reconciliation, and redacted coverage text for duplicate checks and triage |
| Skill maintenance | Redacted catalogs, full instructions of overlapping workflows, and evidence for proposed updates. Supporting resources are checked locally |
| Browser editor | Opening it makes no model request. Build naming sends redacted skill titles and summaries. Voice capture and skill drafts need a user action |
| Actions bot | Reviewed skills from your private skills repository, the selected repository, and an authorized issue or PR task |
| Task brief | With remote.task-briefs on, after each turn: the redacted first and latest prompt and the redacted last message of one live session, to the fast model of that session’s own engine, with no tools |
| Clone | Reviewed skills from your private skills repository, the selected repository, and the owner’s task |
shadowclone-work skill |
The existing agent session reads the skill and its own workspace. shadowclone makes no model calls |
| Pull request review | The PR title and description, diff, file history, base-commit standards, rule hits, toolchain diagnostics, and files that the reviewer reads |
| Evaluation | Synthetic task workspaces and the tested setup’s skills and instructions. Judges receive generated code without redaction |
First-time interactive learn can offer setup, which may make an authorized first learning pass. A deep dry run still calls a model.
Pi learning sends only prepared redacted input, with no tools or coding-session context, over a private token-authenticated socket or temporary private files. Pi keeps provider configuration and credentials. A missing live bridge or model fails with no provider fallback.
Eligible source text crosses the shared redaction boundary before learning or context import. Redaction detects known token, host, path, and entropy patterns. It can miss confidential prose, personal information, and unusual secrets, and it can remove harmless text. It is not an anonymity guarantee. Use only material that you may send to the chosen provider. Provider limits or charges may apply, and local deletion does not delete provider copies.
Local files
Section titled “Local files”| Location | Contents |
|---|---|
~/.shadowclone/config.toml |
Source consent and model and action settings |
~/.shadowclone/environment.json |
Learned guidance, scope, evidence, publication decisions, and builds |
~/.shadowclone/index.db and sidecars |
Event metadata, source references, cursors, and origin bindings |
~/.shadowclone/distill/ |
Derived learning checkpoints and fingerprints |
~/.shadowclone/learning-pending.json |
Learned rules awaiting approval, with source provenance and keys rejected during review |
~/.shadowclone/learning-attempts/ |
Private receipts with outcome codes, counts, next actions, and a redacted failure reason of up to 200 characters, without excerpts or transcript paths |
~/.shadowclone/learning-feedback.json |
Opaque evidence hashes, rule and guidance identifiers, source names, correction times, and review acknowledgements |
~/.shadowclone/learning-probes/ |
Probe receipts with task and guidance hashes, provider metadata, outcomes, and loading observations, without prompt or response text |
~/.shadowclone/skills.json |
Configured roots, maintenance ownership, and cached library review fingerprints |
~/.shadowclone/learning-notice.json |
Titles of rules that triage applied or discarded, revision identifiers, and when the next session received them |
~/.shadowclone/learning-triage.json |
Learning keys and record fingerprints that triage deferred, so it does not ask about them again |
~/.shadowclone/review-notice.json |
A fingerprint of the proposals that the last session start announced |
~/.shadowclone/editor.json |
Local editor settings, such as whether build naming is on |
~/.shadowclone/builds/learning-*/ |
Private skills for repositories whose learnings stay out of the repository |
~/.shadowclone/skill-proposals/ |
Proposed edits and conflicts with redacted supporting passages and required decisions |
Other files under ~/.shadowclone/ |
Revisions, installation ownership, original-library snapshots, and learning and skill ledgers |
| Agent skill and instruction directories | Published skills, resources, native routing, and hooks |
| Repository harness files | Reviewed shared instructions, skills, and checks meant for version control |
shadowclone does not copy whole transcripts into its store. The index holds references and event metadata. Learning records, checkpoints, and original-library snapshots can still hold sensitive derived content. State uses private directories and owner-only permissions where supported, and it is not encrypted. Processes with equivalent access, administrators, and backups may read it. Interrupted evaluation can leave temporary workspaces in its private study directory for manual cleanup.
Scope and editing
Section titled “Scope and editing”Repository learning stays with the registered repository. Setup and deep learning register the working repository only when Git-metadata consent and skill maintenance are on and its remote identity verifies. Past sessions from before metadata consent stay isolated until you confirm a directory-to-remote association. Blocked and unknown origins stay unregistered. Organization learning uses a normalized remote-owner identity, which is a technical scope and does not verify a legal employer boundary. Explicit global guidance applies across repositories. Guidance that names a repository, codebase, or path never gets global scope, even when the learning model rates its evidence as global. Without Git-metadata consent, working directories stay isolated.
Automatic skill maintenance needs separate write authorization. Conflicting edits stay pending. Before a model sees a learned rule from captured sessions, a local check looks for text that reads like instructions to an agent. It flags:
- A request to ignore other instructions.
- An imitated system or role message.
- A download piped into a shell.
- A request to send secrets.
- Hidden or direction-changing characters.
- A long encoded string.
A flagged rule stays pending with its reasons, and nothing publishes it. The check skips rules that the user wrote or chose. Native memory and third-party packages stay unchanged. Revisions record files together and refuse an undo that would overwrite later edits.
Execution
Section titled “Execution”Outside personal GitHub clone setup and pull request reviews, shadowclone does not commit, push, or act on GitHub itself. The shadowclone-work skill acts through the host agent’s own tools and permissions. A push sends Git objects, including repository code, without redaction. Review comment text is untrusted data and never becomes learning input.
A local pull request review fetches the PR refs, reads them in temporary worktrees, and removes the worktrees afterwards. Its toolchain checks use Bubblewrap on Linux or Seatbelt on macOS. Every command reads only the worktree and required runtimes. Host file changes stay in the worktree and isolated review state. Each review side gets a fresh HOME, temporary folder, and caches. Host credentials and private user configuration stay outside. Dependency install scripts remain disabled. Downloads use a fixed public-registry allowlist through a restricted proxy. Direct networking, local services, and Unix sockets are blocked. If isolation cannot start, checks fail without executing the command. --no-checks skips them. The review model can read only files inside the head worktree. Unless you set --offline, it can search the web and fetch pages with GET requests. The skill tells it to put only public names in searches and URLs. To check a quote, shadowclone fetches each cited documentation URL itself, with GET only. It refuses private, loopback, and metadata addresses, including their mapped IPv6 forms. Unless --offline is set, the names and versions of packages that a changed lockfile adds or upgrades go to the OSV API, without code. --cloud posts one @<bot> review comment as you, and the bot posts the review. Cloud review results pass between jobs as artifacts that expire after one day. Posted text is redacted, and mentions and cross-repository links are wrapped in code spans. Review output never becomes learning input.
The pull request review evaluation copies merged pull requests from a public repository into a public evaluation repository and keeps the source license. Copied descriptions lose mentions and links to the source threads, so no upstream author is notified. The evaluated reviewers run on that repository with the owner’s accounts. Raw runs, judge verdicts, and the case list stay in private storage outside every checkout until publication.
Evaluation confines candidate writes to disposable workspaces, with separate workspace and agent-home copies. Native filesystem policies deny credential reads and network access. Authentication is copied for the selected CLI and removed in cleanup. Verification runs apart, without provider credentials or network access, and sends no verifier output to judges. These controls depend on the supported provider and operating-system sandbox. The architecture and the evaluations describe their contracts. Native Codex evaluation denies shared /tmp and /private/tmp. Claude’s native sandbox still needs separate host qualification.
Scored execution sends the synthetic repository, prompts, and selected guidance to the selected provider. Responses, code, traces, frozen inputs, learning receipts, scores, raw native stdout and stderr, and identifying runtime paths stay in private storage outside every checkout. They stay out of public reports and every learning source. Public synthetic inputs include fixed correction sessions with synthetic repository bindings. Preparation replays them through the normal index API and never associates a user’s unbound history with a current remote.
The browser editor listens on loopback, serves local assets, checks request origins, and uses an ephemeral token. Opening it grants no new capture consent.
Skill discovery reads only configured, consented roots. It allows up to 2,000 distinct physical skill files and 8 MB in total, and counts overlapping roots once. Native copies may collapse into one browser entry. A skill keeps its 48 KB and 500-line limits, and discovery refuses paths nested more than twelve levels.
Build naming sends the redacted titles and one-line summaries of the equipped skills and preferences. It never sends skill bodies, paths, repository names, or ownership metadata. It makes one call to the fast tier of the engine, with no tools and a 30-second deadline. Where the provider supports a dollar cap, the limit is $0.05. Turn naming off stores the choice in that browser and stops every naming request. Results stay in server memory until the editor closes. Agent builds lists the timing and models.
Voice capture needs the github-writing setting, which the My voice dialog turns on or off. Managed policy can block it. With the setting off, the editor makes no gh call. Capture reads only text that the signed-in user wrote. It skips pull requests from codex/, claude/, and cursor/ branches, text with agent attribution lines, release pull requests, and merge and revert commits. It removes fenced code, comments, and images, redacts each item through redactSecrets, and keeps at most 1,200 characters per item and 24,000 in total. One call to the saved learning model describes the voice and writes 3 invented examples. The call has a 120-second deadline and a $0.25 limit where the provider supports a dollar cap. A result that copies 8 or more words in a row from the writing is discarded. Rewriting the examples after an edit sends only the edited description to the fast model. Collected writing stays in server memory until the editor closes or you turn the setting off. Saving writes ~/.agents/voice.md only when no file or link exists there.
Use AI in the skill editor sends only the typed form fields and reads no repository file. The request uses the learning execution contract with no tools, one call, and a 60-second deadline. Providers with dollar-cap support get a $0.25 limit. Other providers show that no cap can be enforced. Cancellation aborts the request, but usage already incurred may still be charged. Generated drafts stay editable and need the usual build review before publication.
Actions bot
Section titled “Actions bot”bot setup authorizes a read of the current repository origin for that setup. It does not turn on ongoing Git metadata capture. Managed source, engine, blocked-origin, and action restrictions still apply.
Setup lists the exact skill files, resources, plugin metadata, and native rules that it will push to your private skills repository. The files pass through the redacted delivery boundary. They exclude transcripts, source history, receipts, and raw learning records. Setup pushes them only after your approval.
You add the bot token and the provider API key on GitHub. shadowclone never reads them. The GitHub CLI receives only the skills deploy key, through standard input. Non-secret installation metadata lives under ~/.shadowclone/cloud/installations/. Explicit exports use owner-only files outside the checkout and stay until you delete them.
During a run, the provider receives the prompt, the skills, and the repository content that the agent reads. The check run sends one small request with the API key: a model list request, or one short prompt for Cursor. A review of a fork pull request runs no fork code and has no network access.
Actions bot tasks and exported guidance are not new learning sources. Local guidance changes do not update the frozen bundle. The Actions bot guide covers secrets, the default-branch ruleset, who can start work, pausing, limits, and removal.
Clones
Section titled “Clones”clone skills uses the same reviewed delivery as the Actions bot, and pushes the files to your private skills repository only after your approval. clone setup reads your GitHub login, the repository, and Docker state. It writes ~/.shadowclone/clones/: the clone config, the logs, and secrets.env (mode 0600).
You paste the GitHub token and the model login into secrets.env. shadowclone never reads the file. It gives Docker only the path. A ChatGPT login stays in the Docker volume shadowclone-codex-login.
clone start and the shadowclone_clone MCP tool write the owner’s task to a run folder under ~/.shadowclone/clones/runs/ (mode 0700, files 0600). clone send and clone answer add the owner’s messages and answers to inbox.jsonl in the same folder. shadowclone serve writes the state, the recent events, the clone’s questions, its final report, and the container log to the same folder. It removes a finished run folder after 30 days. Nothing in a run folder leaves the machine.
A clone runs in a fresh container. The provider receives the prompt, the skills, and the repository content that the agent reads. The container keeps nothing after it stops. The final report is the agent’s last message, through redactSecrets, at most 4000 characters. The shadowclone_sessions MCP tool returns the task and the events to the connected agent, which sends them to its own model provider. Clone tasks are not learning sources. See clones.
shadowclone hub serve listens on 127.0.0.1 only. hub expose asks Tailscale Funnel to forward public HTTPS requests to it. Each approved client receives the clone lists and clone details that it asks for. For the Claude app, that text passes through Anthropic, which sends it to the model.
The hub writes ~/.shadowclone/hub/ (mode 0700). hub.db (mode 0600) holds the client names and redirect URIs, the settings, and SHA-256 hashes of pairing codes, authorization codes, and tokens. The hub never stores a code or a token itself. The log names client ids and redirect hosts. hub clients revoke ends a client’s tokens, and deleting the folder ends all of them.
hub notify saves an ntfy topic URL. The hub then sends that ntfy server a push for each clone or live session that needs you, and for each clone that ends. A push holds the clone id, its state, and its machine name. With --text, it also holds the repository and the question, through redactSecrets, at most 500 characters. For a live session with a current task brief, a push with --text also holds the brief name, and the brief question or need. Anyone who knows the topic can read the pushes.
A machine that joins a hub writes ~/.shadowclone/hub/link.json (mode 0600) with the hub URL, its node name, and its node token. Its link sends the hub the text of its clone tool answers. On that machine, shadowclone mcp sends clone tool calls to the hub. The hub stores a hash of each node token. See the hub guide.
Live sessions
Section titled “Live sessions”shadowclone live enable sets remote.live-sessions in config.toml and adds hooks to ~/.claude/settings.json and ~/.codex/hooks.json. It keeps your own hooks. The hooks write one file for each session in ~/.shadowclone/live/ (mode 0700, files 0600). The file keeps the process id of the agent: CLAUDE_PID for Claude Code, or the outermost codex process above the hook for Codex. When that process stops, the session list marks the session ended. The process id stays on the machine. The summary is the last assistant message through redactSecrets, at most 2 KB. A permission prompt adds its redacted notification text.
The hub and joined machines send the list and the summaries to each approved client. The hub also sends them as typed rows for the session board, with the same fields as the text. The board view runs in the sandbox of the client host and has no network access. A message that you send waits in live-<id>.inbox.jsonl until a hook delivers it. For an idle session, shadowclone types it into the tmux pane or cmux surface instead. A finished session record stays for 1 day. live disable removes the hooks and the folder.
shadowclone live briefs enable sets remote.task-briefs. It refuses while live sessions are off. A managed policy keeps it off unless the policy allows live sessions and model generation. With the flag on, the hook writes live-<id>.task.json (mode 0600) with the first and the latest prompt of the session. Each prompt passes through redactSecrets and has at most 2 KB. A prompt from a subagent stays out.
After a turn ends, a separate shadowclone live brief <id> process sends those prompts and the redacted last message to the fast model of the session’s own engine. The request marks that text as data, and the run has no tools. The answer becomes live-<id>.brief.json (mode 0600): a name, a goal, what the agent did, a kind, an optional question, and up to 4 options. Each field passes through redactSecrets and has a length limit. live-<id>.brief-calls.json holds the times of the calls in the last hour, and live-<id>.brief.lock is the lock of the writer. The writer prints and logs only the session id and its outcome.
While the flag is on, the brief of each idle session whose last message made it leaves the machine. The hub and joined machines send its name, goal, done text, kind, question, and options to each approved client. They go in the list text and in the board rows. The text marks it as a summary by a model and as data. For the Claude app, that text passes through Anthropic. With hub notify --text, ntfy receives the brief name and the question or the need. The digest and the time of the brief stay on the machine.
These files stay as long as the session record: 1 day after the session ends, or 7 days with no change. live briefs disable deletes them for every session. live disable deletes them with the rest of the folder, and turns task briefs off.
With task briefs on, an agent in a live session can call shadowclone_ask in shadowclone mcp. The tool writes live-<id>.question.json (mode 0600) with the question, 2 to 4 options, and the recommended option, each through redactSecrets and a length limit. The SessionStart hook adds one line of context with the live id. That line holds no session text. The hub and joined machines send the question and its options to each approved client, in the text and in the board rows. Your answer goes back through the hub, waits in the question file, and reaches the session as the tool result. If the agent no longer waits, your answer goes through the inbox, as a message does. The file goes when the session gets the answer, when the session ends, at live briefs disable, and at live disable.
When you pair two sessions, ~/.shadowclone/live/pairs.json holds the pair id, the two session ids, a hash of each key, and the number of notes. A note passes through redactSecrets and has at most 8000 characters. It waits in the inbox file of the peer until a hook delivers it, and then shadowclone deletes it. The peer’s agent sends the note to its model provider, like any prompt.
Boundaries that a change must keep
Section titled “Boundaries that a change must keep”Contributors also read the contributor data rules.
resolveRedactedturns an eligible pointer into text only after it checks the range, the root, the file type, the limits, and the captured identity.materializeSnapshotuses the same redaction, so model text matches the parsed metadata.- Persistent identities stay local behind opaque tokens during reconciliation. Logs show counts, sizes, hashes, and source names. Captured paths and raw provider output must not become diagnostic text.
- Resource copies keep their bytes and permissions. Local checks cover them. Maintenance never sends them to the learning model and never runs them. A symbolic link, an unsafe reference, or an exceeded limit stops the update.
- Shared repository files are visible to anyone with repository access and can publish personal guidance, so review them before you commit. Setup asks before it includes personal guidance. Browser previews check the observed files again before they apply a change.
- Learning, authorized coding runs, and evaluation have different input contracts. Learning makes a request with no tools and shared limits. A coding run exposes a worktree to the provider. Evaluation exposes synthetic workspaces. Keep them apart.
- Candidate writes and verification have separate operating system restrictions. Unknown spend or missing required isolation stops the affected workflow.
- Pi dispatch and Pi evaluation stay disabled, because their action restrictions are not qualified.
Retention and removal
Section titled “Retention and removal”There is no automatic expiry policy. Use learning disable to stop background learning and source settings to stop future reads. Use skills automatic off to stop automatic skill edits. Review active guidance with learning list, learning show, or context --explain, and reverse a revision with undo. learning retire, replace, narrow, and remove-source preview explicit changes before application. Source removal keeps mixed-source and unresolved records for single review and never removes original transcripts or memory.
uninstall --global removes recorded global integrations, and uninstall --local removes recorded integrations in the current repository. Ownership checks keep unrelated content and refuse conflicting managed edits.
shadowclone forget --all restores or removes recorded managed files and deletes the local state of shadowclone, including task worktrees and original snapshots. Preserve unfinished work first. A conflicting maintained file can stop the operation before it completes.
Original transcripts, native memory, provider-retained requests, external repositories, backups, remote branches, PRs, Git history, and repository harness files remain. Use undo before you delete revision history, or remove harness files through version control. There are no source-specific or repository-specific forget flags.
Managed installations and reports
Section titled “Managed installations and reports”Root-owned managed policy can disable shadowclone or restrict sources, engines, origins, and action tiers. It governs this installation, not other programs under the same account. local-only blocks hosted learning, and no local model engine exists.
Report exposures privately through security reporting. Public reports should hold synthetic examples and reviewed summaries, never raw transcripts, private receipts, credentials, or identifying paths.
Guided review documents
Section titled “Guided review documents”The guided review skill puts pinned code, a summary of the PR descriptions, explanations, findings, and human notes in a local HTML document. Keep private reports outside public checkouts. Generating or opening the guide makes no GitHub review write. With browser file permission, Save review writes annotations into the original HTML. The user can attach that file to a coding agent and explicitly request staging through their own workflow. Review content never enters learning. Personal staging instructions and voice evidence stay outside the public package.
Local projects
Section titled “Local projects”Creating a project stores its goal, working directory and chosen roles in a private local catalog. Each project has a SQLite history and a library of explicit document revisions. Project storage contains only submitted project content. It does not import native transcripts.
Live session hooks require existing live consent. Attaching a role gives the chosen native session a one-use invitation. Its model can see that invitation and its member key. Stored member keys and invitations use hashes. Member tools need the key on each request. Local project launch needs a separate choice from the owner. The native agent can contact its configured provider.
With live sessions on, a Claude Code or Codex session gets a seat in three ways. It creates the project, it runs shadowclone project lead when the owner asks, or the lead starts it with shadowclone project spawn. The first two read the thread ID that the agent gives its shell commands (CLAUDE_CODE_SESSION_ID or CODEX_THREAD_ID). A started worker gets a one-use launch nonce in its environment, and its first hook trades the nonce for the seat. The catalog stores the live session ID, its start time, and the folder of the seat. For each lead thread, the project database stores the engine, the thread ID, the folder, and the first and last times. It stores only this pointer, never the transcript. The project database stores a one-line update for the lead for each change. A change is a new lead, a started worker, or a worker that takes, finishes, or gives back a step, or ends its session. An update holds the role, the step text, and the task that the lead gave the worker.
A background worker writes its output to ~/.shadowclone/projects/<project-id>/workers/<name>.log (mode 0600). Shadowclone never sends the log anywhere. The worker gets the environment of the lead’s shell without the lead’s thread ID and terminal variables. It uses its own agent configuration and provider account.
For an IDE seat, the owner issues a one-time code from the local board or CLI. The code expires in five minutes. The selected agent sees the code when the owner gives it the join instruction. The database stores only its digest. This path needs no live hook or transcript capture.
Each project also has a context folder, a private Git repository at ~/.shadowclone/projects/<project-id>/context/. It holds Markdown that the owner and the agents write: the project file, the instructions, plans, decisions, handoffs, and reference files. Shadowclone redacts recognized secrets before each commit. It never pushes the folder. An owner who adds a remote pushes it with Git.
The project catalog stores the full path of each folder that a project uses. A seated session, or a session that the owner asks to read a project, receives the path of the context folder, never its text. A session that only starts in a project folder receives nothing. The agent reads files with its own tools, so its provider sees only the files that it reads. The shadowclone_project_context MCP tool reads only files inside one context folder. It is the folder of the project that the agent names, or of the one project that uses the server’s folder.
A session can start in a folder that no project uses. The catalog then stores the full path of that folder until the owner adds it to a project or dismisses it. The local live record stores the full path of the session folder, so the local page can show the live sessions of a project. The hub receives only the last part of the folder name, as before. With shadowclone project off, the hooks record no folder. The project database stores each step claim: the plan file, the step text, the role of the seat, and the time. A claim ends after 24 hours.
The hub board receives a short summary of each project. The summary has the project name and the text of up to five open steps. It also has the claimed steps with their session names, and the number of open decisions. The hub sends it to the MCP client that the owner connected, such as the Claude app. Plans, documents, handoffs, and instructions stay on the machine.
The local page reads the clone records on the same machine to show clone questions and finished clone pull requests. An answer from the page goes to the clone inbox, as shadowclone clone answer does.
Project events and documents have no learning route. The local CLI and token-protected loopback board provide owner actions. Turning off live sessions revokes project bindings. Archive preserves the library. The Projects guide describes removal.