theonly1me/shadowclone
关于
Your engineering taste, in every coding agent. Shadowclone learns your rules and delivers them as skills to Claude Code, Codex, Cursor, Pi, and Antigravity, and as a GitHub cloud bot.
开发工具实测星标增长
- 24小时
- -1
- 7天
- +1
- 15天
- +4
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Still copying prompts between Claude and Codex? Teach one agent. Every agent knows.
Correct one agent, and every agent learns. shadowclone keeps one set of skills and instructions current for Claude Code, Codex, Cursor, Pi, Antigravity, and OpenCode. It learns from your corrections and updates the skills in the background.
Switch agents, and the work picks up where it stopped. Projects share the same plans, decisions, and handoffs with every agent. One lead and any number of agents work at the same time, and each one takes its own step from a shared board.
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: Claude Code, Codex, Cursor, Pi, Antigravity, and OpenCode.

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:
- It installs the CLI, and the plugin in Claude Code or Codex.
- It asks if shadowclone can learn from your past sessions, keep skills in sync, and keep learning in the background.
- It opens the skill page, where you pick skills and select Equip.
- It learns from your past sessions while you pick skills, if you agreed.
Then start your first project in a repository:
shadowclone project create "Kitebird" "A booking app for small climbing gyms"
shadowclone project open
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.
Skills that make every agent work your way
Start with a build. shadowclone includes 15 workflow skills for planning, debugging, implementation, verification, and review. 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.
Choose where skills apply. 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.
One project for every agent
A project is like a Claude Project that every coding agent can use. shadowclone is not a new agent or a new harness. Each agent stays in its own tool, and the project follows the work.

Every agent knows where the work is. A project keeps its context 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. An agent in a linked repository gets a short note with the path of that folder. It reads only the files that its task needs.
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 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 claim "Return Retry-After" --as "Codex"
One list of what needs you. Decisions in plans, questions from your clones, finished clone pull requests, and repositories that no project links yet all wait on the home page. Answer them there, or on your phone through the hub.
Works in every agent. With live sessions on, Claude Code and Codex get the project note at start. Any other agent runs shadowclone project here, or you paste shadowclone resume "<name>". An agent in a sandbox uses the shadowclone_project_context MCP tool. See the Projects guide.
In the same project, one lead can work with any number of workers on this machine. In Rex, cmux, T3 Code or another local MCP client, select IDE agent (MCP) and give that agent its one-time join code.
A clone works while you are away
Ask, and it works as you. Tell your agent "start a clone to fix the flaky date parser test", or run shadowclone clone start. Claude Code or Codex works with your skills, on your Claude or ChatGPT plan or a key. It stops when its draft pull request has green CI. The pull request shows your name.
$ 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
Runs on your machine. Each clone runs in a fresh Docker container on a machine that you own. Your tokens stay in a file on that machine. Clones never push to the default branch, and each commit names the agent.
Set it up with one sentence. Ask your agent to "set up shadowclone clones for this repository." You approve your skills and paste two tokens. See the clones guide.
Reach your work from 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.
Reviews on your machine and on GitHub
Review a pull request. Run a local review with your Claude subscription:
shadowclone review 123
The reviewer combines repository standards, mechanical checks, and code analysis. Each finding has evidence checked against the source. The result stays in a local file. Run shadowclone review --base main to review committed branch changes before you open a PR.
Read a guided review. Equip guided-pr-review and shadowclone-review, then ask your agent:
Use guided-pr-review to review PRs 1, 2, and 3.
The agent writes a guide with the actual diffs, behavior traces, and a reading order across the PRs. In an agent with artifacts, the guide is an artifact. In other agents, it is a local HTML page. You add notes inline, and you reveal the agent's findings after you form your own review. See reviews.
Review in the cloud. Comment @<bot> review on a pull request, also on one from a fork. The Actions bot posts its findings on GitHub under its own identity. See cloud review.
An Actions bot for your team
Share an agent with your team. A 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.
Ask the agent to configure it. After local setup, ask:
Set up the shadowclone Actions bot here with the account octo-shadow.
The agent prepares the skills repository and workflows. Then it gives you one link where you add the bot token and the API key on GitHub. Merge the setup PR, and the agent runs a check. The Actions bot guide covers providers, setup, and how to pause work and continue locally.
Keep your key on GitHub. The bot reads the API key from a GitHub environment, and shadowclone never sees it. Anyone with write access can tag the bot, so set a spending limit in your provider console.
How shadowclone compares to other tools
shadowclone gives one set of skills to the agents that you already use, on your machine and on GitHub. The table uses each project's own pages, checked on 2 December 2026. "Not stated" means that those pages do not answer the question.
| Tool | What it is | Agents | Learns from your sessions | Same guidance in the cloud | Reviews pull requests |
|---|---|---|---|---|---|
| shadowclone | Skills, instructions, learning, and a GitHub Actions bot for the agents that you already use | Claude Code, Codex, Cursor, Pi, Antigravity, OpenCode | Yes, from the sessions that you allow | Yes, clones and a bot | Yes, locally, guided, and on GitHub |
| pstack | A skill and principle pack | Cursor and Claude Code | No. You run /reflect to edit a skill |
Not stated | Yes, /interrogate and Comment Sicko |
| Hermes Agent | Its own agent with a learning loop | Hermes, on any model and provider that you pick | Yes, it writes skills after tasks | Yes, on a server with chat apps | Not stated |
| Claude Code auto memory | Built-in notes from corrections | Claude Code | Yes, notes from your corrections | No. Memory stays on one machine | No |
| Claude Subconscious | A background Letta agent | Claude Code | Yes, through a Letta agent | Not stated | No |
| imprint | A plugin that trains one profile | Claude Code | Yes, when you run /imprint:train |
Not stated | No |
Claude Code loads its auto memory beside shadowclone skills, so you can use both. See the comparison guide for each tool and its sources.
How it works
flowchart LR
P[Project context] --> D[Agents on your machine]
D --> P
A[Consented sessions] --> B[Learning]
B --> C[Skills and native instructions]
C --> D
C --> E[Clones that work as you]
C --> F[Actions bot on GitHub]
Each project keeps its plans, decisions, and handoffs in a private Git folder. Agents read that folder by path. 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. 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, orshadowclone forget --all.
Read the privacy policy and data handling.
Docs
| Guide | Use it to |
|---|---|
| Projects | Share work and context |
| Agent builds | Pick skills and scope |
| Learning | Learn from sessions |
| Skill maintenance | Review updates, undo |
| Repository setup | Share checks |
| Pi setup | Use Pi models |
| OpenCode setup | Use OpenCode |
| Delegated work | Ready a pull request |
| Actions bot | Set up the GitHub bot |
| Clones | Work as you, anywhere |
| Hub | Reach your clones |
| Reviews | Review a pull request |
| MCP server | Give agents the tools |
| Command reference | Find every command |
| Enterprise controls | Set scope and policy |
| Comparison | Compare related tools |
More: documentation index, motivation, 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.
探索相关项目
加载中…
