GitHub - theonly1me/shadowclone: Control plane for coding agents

GitHub

8 min read Original article ↗

Works with the agents and harnesses that you already use.

Each agent keeps its own rules, memory, and threads. shadowclone keeps them in one place and gives them to every agent that you use. It works with Claude Code, Codex, Cursor, Pi, Antigravity, and OpenCode.

A control plane decides and coordinates, and another part does the work. Your agents do the work: they read code, write code, and run tools. shadowclone controls three things for each of them:

Part The question What shadowclone does
What they know How should my agents work? One set of skills and instructions in every agent, kept current from your corrections
What they work on What is the work, and who does which part? Projects with shared plans, decisions, a board, and handoffs, for a lead and its workers
Where they run Where does the work happen, and how do I reach it? Workers on this machine, clones in Docker, a bot on GitHub, reviews, and your phone

What it is not. shadowclone is not a coding agent and not a model. It writes no code. It is not a harness: each agent stays in the terminal, IDE, or app that you run it in. It is not only a skills library. The library is shadowclone skills. The control plane delivers it, keeps it current, shares the work, and starts the runs.

Free and open source. shadowclone runs on your machine, under the MIT license. It needs no account and no server. It works with the agents and subscriptions that you already have. Read what is shadowclone and the motivation.

The skill map, with skills grouped by category and the details of one skill

Quick start

Paste this into Claude Code, Codex, Cursor, Pi, Antigravity, or OpenCode:

Set up shadowclone: https://raw.githubusercontent.com/theonly1me/shadowclone/main/plugins/shadowclone/skills/setup-shadowclone/SKILL.md

The agent installs and configures shadowclone in about 5 minutes. You answer the consent questions and pick skills in the browser:

  1. It installs the CLI, and the plugin in Claude Code or Codex.
  2. It asks if shadowclone can learn from your past sessions, keep skills in sync, and keep learning in the background.
  3. It opens the skill page, where you pick skills and select Equip.
  4. It learns from your past sessions while you pick skills, if you agreed.

Then pick a part to start with:

  • What they know: work as usual. Correct an agent once, and the correction reaches the others.
  • What they work on: ask your agent to "start a project for this", and it becomes the lead.
  • Where they run: ask your agent to "set up shadowclone clones for this repository".
Install by hand
npm install -g @shadowclone/cli
shadowclone init
shadowclone wizard

To add the plugin, run /plugin install shadowclone@shadowclone after /plugin marketplace add theonly1me/shadowclone in Claude Code. In Codex, run codex plugin marketplace add theonly1me/shadowclone and then codex plugin add shadowclone@shadowclone.

What they know

Start with shadowclone skills. shadowclone includes 16 skills for planning, debugging, implementation, tests, verification, review, and projects. Pick skills on the skill map and select Equip. The same skills reach all six agents. Browse them in skills/, or install them without the CLI.

One source, every format. shadowclone writes your skills and short instructions into the files that each agent reads. Use a personal build, a private build for one repository, or a shared build that a team commits. Pi can use any model it supports. See Agent builds.

Learn from corrections. If you allow it, shadowclone reads your past sessions and turns repeated corrections into skills and short native instructions. Repository rules stay in their repository. Every rule is a file that you can read, edit, and undo. See the learning guide.

Keep guidance current. Background learning reviews new rules after each session. With automatic maintenance on, it applies lasting guidance and discards rules that a skill already covers. You can review and undo each change.

What they work on

One project, every agent. A project keeps one piece of work in a private Git folder on your machine. The folder holds what the project is, its rules, its plans, its decisions, and a handoff from each session. Any agent reads it by path, so you can switch agents and continue where the work stopped. A project can use many folders, and a folder can belong to many projects.

Your projects: what needs you, and every project with its last handoff

A lead and its workers. Ask an agent to start a project, and it becomes the lead. The lead starts each worker as a new Claude Code or Codex session, in tmux or in the background, with its task. Up to 4 workers run at once.

In Rex, cmux, T3 Code, or another local MCP client, select IDE agent (MCP) and give that agent its one-time join code. A session that you open for other work hears nothing about the project.

Plans you can read and edit. Agents write plans in Markdown. You read them as formatted pages and edit them in place. Decisions show the recommended option, and the work continues with it until you choose. Diagrams in a plan draw as pictures.

A plan with its stage, its summary, and two decisions that wait for the owner

A board that agents share. The open steps of every plan make the project board. An agent takes a step before it starts, so two agents never start the same work. You can take a step too, or give one back.

shadowclone project board
shadowclone project spawn codex "Return Retry-After on each 429"

To read a project in another agent, paste shadowclone resume "<name>". See the Projects guide.

Where they run

On this machine. The lead starts workers in tmux or in the background. One list shows what needs you: decisions in plans, questions from your clones, and finished clone pull requests.

In a clone, while you are away. Tell your agent "start a clone to fix the flaky date parser test", or run shadowclone clone start. Claude Code or Codex works as you, with your skills, on your Claude or ChatGPT plan or a key.

Each clone runs in a fresh Docker container on a machine that you own, and your tokens stay in a file on that machine. It stops when its draft pull request has green CI. See the clones guide.

$ shadowclone clone start --repo you/app "fix the flaky date parser test"
Queued clone k3x9m2qa for you/app: fix the flaky date parser test
$ shadowclone clone list
k3x9m2qa done you/app shadowclone/k3x9m2qa #43 2026-10-18T14:02:11Z fix the flaky date parser test

On GitHub, for your team. The Actions bot runs in GitHub Actions with your selected skills and one provider API key: Anthropic, OpenAI, an OpenAI-compatible endpoint, or Cursor. Anyone with write access can tag it. It works on issues, opens pull requests, and follows checks and review feedback. You decide when to merge.

The bot reads the key from a GitHub environment, and shadowclone never sees it. See the Actions bot guide.

In reviews. Run shadowclone review 123 for a local review with your Claude subscription. Equip guided-pr-review and shadowclone-review for a guided review that you read before you see the agent's findings. Comment @<bot> review on a pull request for a review on GitHub. See reviews.

On your phone. The hub puts your clones and projects behind Tailscale Funnel as an MCP connector. Ask Claude on your phone what your clones are doing, see the open work in each project, and answer questions there. See the hub guide.

How it works

flowchart LR
  A[Consented sessions] --> B[Learning]
  B --> C[Skills and native instructions]
  C --> D[Agents on your machine]
  P[Project context] --> D
  D --> P
  C --> E[Clones that work as you]
  C --> F[Actions bot on GitHub]
  H[Hub on your phone] --> E
Loading

shadowclone indexes references to enabled sessions and copies no transcript. It redacts text and learns rules. One session can give an explicit rule, and an inferred pattern needs three independent sessions. Rules become skills that you can read, edit, and undo. Each project keeps its plans, decisions, and handoffs in a private Git folder. Agents read that folder by path. shadowclone changes the guidance, not the model. See the architecture.

Eval and Results

Across 24 fixed tasks, shadowclone learning scored above existing user skills on all four models. Scores measure preference adherence on synthetic tasks. See setups, methods, and limits.

Setup GPT 6.1 Sol GPT 6 Luna Claude Sonnet 5.5 Claude Opus 5.5
Agent alone 77.3% 59.0% 56.5% 53.2%
Existing user skills 85.2% 80.6% 76.4% 73.6%
Existing skills + shadowclone learning 89.4% 83.3% 90.0% 82.9%

Privacy

  • No collection service. No telemetry. Model work uses the agent CLI that you choose.
  • Consent. Every source is off by default and has its own setting.
  • Redaction. Tool results, tool-returned file contents, and thinking blocks never enter learning.
  • Removal. Run shadowclone learning disable, shadowclone skills automatic off, or shadowclone forget --all.

Read the privacy policy and data handling.

Docs

Read the docs at docs.shadowclone.co, or in docs/.

Part Guides
Start here What is shadowclone, Motivation
What they know Agent builds, Learning, Skill maintenance, Repository setup, Pi, OpenCode
What they work on Projects
Where they run Delegated work, Clones, Actions bot, Reviews, Hub
Reference Commands, MCP server, Enterprise controls, Comparison with related tools

More: design records, security.

Contributing

Read CONTRIBUTING.md before you open a pull request. shadowclone uses the MIT license. If shadowclone saves you a correction, star the repository.