For teams running many AI coding agents
The better way to work with AI agents.
Every agent gets its own complete workspace in about a second, from one prepared, sealed base. Agents start fast, do not step on each other, do not fill the disk, and leave nothing behind. Git, branches and pull requests stay exactly as they are.
less real disk per agent
xarray (Python): 990 MB per plain worktree against 9.2 MB per workspace.
sooner to a first passing test
xarray, own dependencies: 10.4x with 3 agents, 17x with 8.
faster end to end
xarray wall time: 4.7x with 3 agents, 7x with 8 (1 WorkGrove run).
The old way and the new way
Parallel agents should not mean parallel copies of everything.
With plain git worktrees every agent gets a full duplicate checkout, runs a fresh install, and leaves its folder behind. WorkGrove grows every workspace from one prepared base.
The old way A full worktree per agent
Each agent gets a duplicate checkout and installs its own dependencies before it can run a test.
The WorkGrove way One base, thin stems
The base is prepared once. Every agent gets a complete workspace cloned from it, dependencies included.
How it gets done
Six steps, and Git stays as it is.
WorkGrove replaces the worktree, not your version control. Claude Code calls it through its hooks; here is what happens, and what an agent sees.
- 01
Prepare a base once, and seal it
Check out the repository, install its dependencies, warm its build once. The base is sealed: any change to it is detected.
You name the install command once per repository. WorkGrove runs it in a fresh checkout, records a seal of every file, and refuses a base that changed afterwards: the next workspace uses the newest intact one.
base: running your install command once base sealed: every file recorded - 02
Every agent gets a workspace in about a second
A complete checkout with dependencies, cloned from the base by the file system. Only what the agent changes takes new space.
When Claude Code starts an agent or a sub-agent, its hook asks WorkGrove for a workspace. The workspace is a copy-on-write clone of the base with its own small git directory, its own branch, and your identity, signing and hooks carried over. Nothing to install, nothing to fetch.
hook: WorktreeCreate workgrove: workspace ready on its own branch dependencies: from the sealed base - 03
The radar warns before a clash
Before an agent's first edit to a file, it is told when another change already touches that file.
Every workspace reports the files it edits. Before an agent's first edit to a file, the radar checks the other live changes and tells the agent while it still has the context to choose: wait, coordinate, or work elsewhere.
hook: PreToolUse (first edit of src/api.py) workgrove radar: another workspace already changes src/api.py - 04
Commits come back to the parent
When a sub-agent stops, its commits are collected into the parent's checkout, ready to pick up. No fetching by hand.
When a sub-agent stops, WorkGrove collects its commits into the parent's checkout under its own reference and tells the parent how to take them. Nothing is merged behind anyone's back.
hook: SubagentStop workgrove: commits of the sub-agent collected into the parent nothing was merged: take them with git cherry-pick or git merge - 05
Sync and rules settle the mechanical conflicts
A workspace's branch moves onto the current trunk without a stopped rebase; lockfiles and JSON or TOML lists are merged by rule.
Sync moves a workspace's branch onto the current trunk and never leaves a rebase stopped halfway. Files that conflict mechanically, such as lockfiles and lists in JSON or TOML, are merged by rule and checked; changes to the same lines of code are left to people.
sync: trunk moved, branch replayed onto it package-lock.json: merged by rule, then checked - 06
Finished work is found, kept, snapshotted and removed
A survey finds finished workspaces. Unmerged commits are kept and a verified snapshot is taken before anything is removed.
A read-only survey sorts workspaces and old worktrees into finished and unfinished. The plan for a finished one runs in order: keep a copy of any unmerged commit, take a snapshot and verify it, and only then remove. Unfinished work is never removed automatically.
survey: finished and unfinished workspaces, read only plan: keep unmerged commits, snapshot, verify, remove unfinished work: left alone
Measured, not promised
The results, with their scope.
Real Claude Code agent runs on a large Python project, each agent with its own dependencies, the same task, prompts and model both ways. Pick how many agents ran at once.
3 agents: end to end 215 s plain against 46 s WorkGrove; first passing test 176 s against 17 s.
End to end, wall time
4.7x fasterTo a first passing test, per agent
10.4x soonerReal disk per agent
108x lesspydata/xarray, 3 agents, medians of 3 runs with plain worktrees and 2 runs with WorkGrove; Claude Sonnet in Claude Code, one 16 GB Mac. With 1 to 3 runs per figure, differences under about 30% are within run-to-run variation.
for a complete workspace
0.3 s on a 150-file repository, 1.4 s on a 20,000-file one.
and no manual fetches
34 real-agent runs on xarray and ripgrep.
of old worktrees held finished work
538 of 692 worktrees, 104.7 GB, on one developer's Mac.
How we measured
- Compared
- Plain git worktree agents against WorkGrove agents: same task, same prompts, same model.
- Machine
- one 16 GB Mac, the same for both.
- Model
- Claude Sonnet in Claude Code.
- Success
- Each run passed or failed by a script that checked the commits and ran the tests, not by reading the agent's words.
- Runs and repositories
- 34 recorded runs on pydata/xarray (Python, a large project with a 949 MB environment, each agent with its own dependencies) and BurntSushi/ripgrep (Rust); 1 to 3 runs per figure.
- One-time cost
- Preparing a base costs about one install, once per base. xarray: 23 s to 33 s per base build.
- Reading the figures
- With 1 to 3 runs per figure, differences under about 30% are within run-to-run variation.
What is built
Built today.
WorkGrove is one command-line program; Claude Code calls it through hooks.
- Sealed basesPrepared once per repository; any change to a base is detected.
- A workspace per agentA complete checkout by file-system clone, with its own git directory.
- Claude Code hooksCreate, stop, sub-agent start and stop, session end.
- Commits collectedSub-agents' commits come back into the parent.
- Identity carried overYour name, signing and hooks work inside every workspace.
- Conflict radarTells an agent before its first edit when a file is already being changed.
- Sync onto trunkMoves a branch onto the current trunk without a stopped rebase.
- Rules for mechanical filesLockfiles and JSON or TOML lists merged by rule.
- SnapshotsTaken, verified and restorable.
- Survey and cleanup planFinds finished worktrees; removes only after a kept copy and a snapshot.
Get WorkGrove · releasing soon
Run your agents the better way.
The installer and releases are being built now. Ask for early access and we will tell you the day it is out.
Install
Requirements
- macOS first; Linux in progress
- git
- Claude Code (optional: workspaces are plain git checkouts)
First three commands
Quickstart
Ask for early access
Tell us about your team, your repository and the agents you run. We reply by e-mail.
FAQ
Short answers.
Does WorkGrove replace Git?
No. Git stays exactly as it is: branches, commits, pushes and pull requests work as before. WorkGrove replaces only the worktree each agent works in.
Which agents does it work with?
Claude Code calls it through its hooks: agent and sub-agent start and stop, and session end. A workspace is an ordinary git checkout on disk.
How much disk does a workspace take?
Only what the agent changes, because the rest is cloned from the base. About 108x less real disk per agent. xarray (Python): 990 MB per plain worktree against 9.2 MB per workspace.
What about merge conflicts?
The radar tells an agent before its first edit when another change already touches the file, and rules settle the mechanical kind. About a third of real merge conflicts were mechanical: the kind a rule can settle. 70 of 199 real conflicts at most, in one organisation. Two changes to the same lines still need a person.
What happens to finished work?
A survey finds finished workspaces. Before anything is removed, a copy of every unmerged commit is kept and a snapshot is taken and verified; unfinished work is left alone. For scale: on one developer's Mac, 538 of 692 git worktrees held finished work: 78%, 104.7 GB.
Where does it run?
macOS first; Linux in progress.
Is it free?
WorkGrove is closed source. Terms of use come with the release.
Does it need WorkLedger?
No. It works on its own; WorkLedger adds the team record.