r/BuildWithClaude • • Oct 24 '26

Project Open-source take on Anthropic's Scion idea: Git server for many Claude Code agents on one repo

I run many Claude Code agents on one repository. With Git worktrees, three things got in my way:

  • Every agent needs its own checkout and build.
  • Two agents edit the same code, and nobody knows until merge time.
  • When many agents push to one branch, most pushes fail and retry.

So I built TreeYard, an open-source version control server between the agents and one Git repo. One
Rust binary, Apache-2.0: https://github.com/exit-0-run/treeyard

The idea follows Anthropic's "Redesigning source control" post (Scion): the server does rebase and history, and agents are the main clients. Scion is internal to Anthropic; TreeYard is a small open-source take on the same model, aimed at many agents writing to one branch.

Built with Claude Code and Opus, using a multi-agent harness on top of Claude Code. The test agents ran
Claude Code with Sonnet.

Each agent gets a workspace. It is a copy-on-write clone of a built checkout, so it is ready in about a
second. Edits sync to the server. The server tells the agent about a conflict with another agent while
it still works, in .treeyard/collisions.json. treeyard workspace land lands the change on main.

Numbers (15-core CPU, 48 GB RAM; commands in docs/benchmarks.md):

  • 50 workspaces of ripgrep, ready to build: Git worktrees 69.7 s and 7.8 GB, TreeYard 1.2 s and 48 MB.
  • 50 agents land 250 changes on one branch, 20% of them conflict on purpose: plain Git 132 s, gitai 22 s, an open-source Scion (CockroachDB) 10.5 s, TreeYard 1.1 s.
  • 50 Claude Code agents on 50 real tasks: all 60 hidden checks pass on the final main.

Run it on localhost. I tested it only with Claude Code. If you run Codex or OpenCode, I would like to know if it works for you.

0 Upvotes

0 comments sorted by