The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Quilt listing page.
Quilt is a command-line tool that tracks which agent wrote which lines in a shared Git checkout, so multiple AI coding agents can work in one repo at once and each commits only its own changes.
It captures every edit at the tool boundary, keeps a per-line record of who wrote
what, and reconstructs each agent's own changes at commit time. Git stays the
source of truth. Quilt never calls an LLM or spawns agents, and its state lives in
a .quilt/ sidecar you can delete without touching your repo.

You want your agents in ONE checkout: one node_modules, one build, one dev
server, one environment to keep working, not a worktree per agent, each with
its own install and its own drift. But on a shared checkout, plain git bites
even when agents work on completely different things: the first git commit -am
sweeps everyone else's uncommitted files into one blob, codegen and lockfile
churn get credited to whoever committed last, and two agents occasionally do
land on the same line, where one silently overwrites the other. None of that
requires agents to be working on the same task. It's just what a shared
checkout does by default.
Quilt makes the shared checkout safe. Every agent commits exactly its own lines and nothing else: disjoint work stays disjoint all the way into history, with no ceremony. And when two agents genuinely want the same code, that becomes a coordinated handoff instead of a silent loss. It holds as you add agents.
./examples/fleet.sh runs seven agents against one checkout. The two endings:
Fanning out on disjoint files is the easy case. The real test is contention. A denied claim isn't a dead end. It carries the holder's stated intent and when their lease lapses:
So the blocked agent builds its granted files while it waits, re-claims after
the holder's commit auto-releases, and layers its change on top of the landed
one. Two clean commits, both changes in the file, nothing lost.
./examples/contention.sh runs the whole sequence on the real machinery.
commit --mine commits only your lines, even when
they share a hunk with another actor's.utils.js#formatPrice, not the whole file, so
agents editing different functions never contend. Ten languages via tree-sitter;
whole-file claims for the rest.Every commit Quilt produces is an ordinary Git commit. It trusts Git and never
rewrites it, and all state lives locally under .quilt/. No account, no daemon.
That's it. Agents are named automatically: each Claude Code session or MCP connection gets its own id, so parallel agents are told apart with no setup.
The whole flow, from a git repo to four agents working at once:
Start sessions from a directory that holds several repos? Run quilt setup
there instead: it wires the workspace root and every repo inside, and each
edit is captured into the repo its file belongs to.
Nothing else. No QUILT_ACTOR, no per-terminal ceremony, nothing to approve:
the capture hooks attribute every edit to its session automatically. Watch it
live with quilt fleet, and when a session's work is ready, ask it to run
quilt commit --mine -m "...". Each commit contains exactly that session's
lines, even where two sessions touched the same file. (Claude Code will also
offer to enable the optional quilt MCP server for the project; approving it
adds the claim/prevention tools, but the hooks protect you either way.)
quilt ui opens the same picture in your browser, live: who wrote what
(per-actor line counts per file), active claims, who's blocked on whom, and
anything that needs a human. Local-only (127.0.0.1), read-only, one command.

Prefer the terminal? quilt fleet --watch is the same view as text.
Set an explicit id when you want one that is stable across sessions:
Then each agent commits only its own lines:
Quilt writes that provenance into the Git commit itself, so it survives normal
pushes and fresh clones. Prompt correlation stays local in quilt ui; it is not
published into Git history.
In a shared shell, make the committer explicit (quilt --as auth-agent commit --mine ...). Quilt refuses a checkout-global session identity when the dirty
tree shows another actor. If a deploy provider requires a recognized Git email,
set one once while keeping actor names distinct:
quilt fleet shows the whole picture: every actor, their claims, and anything
that needs a human. See docs/reference.md for the full
command list.
A worktree per agent is the usual answer, and for fully independent tasks it works. But every worktree is another environment to build (another install, another build cache, another dev server) and isolation just moves the collision to merge time. Those costs grow with the number of agents; the whole point of a shared checkout is paying for the environment once.
| Run fewer agents | Worktree per agent | Quilt | |
|---|---|---|---|
| Parallelism | capped low | high | high |
| Setup per agent | none | full install/build/env × N | none (one checkout) |
| See each other's in-flight work | n/a | no | yes |
| Collisions | avoided by hand | surface at merge | prevented, or surfaced live |
| Clean per-agent commits | n/a | after a merge | yes |
Worktrees isolate; they don't coordinate. When agents work the same code at the same time, you usually want them to see each other and account for each other as they go. That is what Quilt does. The two aren't mutually exclusive: worktrees for independent, long-running work, Quilt for agents in the same code at once.
quilt setup wires the capture hooks and a shared MCP server. On Claude Code the
hooks let agents use the built-in Edit and Write tools normally while Quilt
records each change's author and blocks a write into code another agent holds,
with no protocol for the agent to follow and no setup: each session is named
automatically, or carries its own QUILT_ACTOR for a stable id. For other
runtimes, the same capture and prevention is available as MCP tools, with each
connection named automatically the same way.
See docs/orchestrators.md for Codex, Cursor, Aider, and the difference between process-per-agent and many-agents-in-one-process setups.
.quilt/ state layout.One anonymous heartbeat per day: quilt version, OS, Node major, random
local id. Nothing else unless you opt in at quilt setup, and never code,
paths, repo or actor names. quilt telemetry off, QUILT_TELEMETRY=0, or
DO_NOT_TRACK=1 silences everything. Details: docs/reference.md.
Contributions are welcome. See CONTRIBUTING.md.
MIT