Foremerge
Catch intent conflicts before code conflicts. The open-source coordination protocol for parallel coding agents, built above Git.
Live · pre-1.0 · v0.7.0 released 2026-11-12 · Apache-2.0
- D-01
Coordinate intent, not files.
WHYWorktrees isolate files, not plans. File paths alone miss API, schema, config and cross-language collisions, so agents declare scopes like symbol:PaymentService.
COSTIt only works if agents publish narrow, honest scopes. A vague scope produces a vague warning.
Worktrees move the collision to merge time ↗ - D-02
Claims warn. They never lock.
WHYAgents stop mid-task. A lock held by an agent that has gone quiet blocks everyone else.
COSTTwo agents can both proceed on an overlapping claim. Someone has to read the warning.
docs/protocol.md ↗ - D-03
Abandoned plans must not count as live work.
WHYWe found 3,896 stale conflicts in Foremerge’s own coordination store, from plans nobody was still pursuing.
COSTExpiring intent means a slow agent can lose its place. 0.6.0 changed how that is handled.
Essay: 3,896 stale conflicts ↗ - D-04
Only Foremerge-run validation counts.
WHYAn agent saying “tests pass” is provenance, not evidence. Foremerge records the command, exit status, output and the exact candidate fingerprint.
COSTValidation runs as trusted local code with your permissions. Foremerge does not sandbox it.
docs/state-model.md ↗ - D-05
One binary, local SQLite, the Git CLI.
WHYZero infrastructure to start, and linked worktrees already share the Git common directory.
COSTNo replication across machines. Do not infer distributed safety from a network-mounted database.
docs/architecture.md ↗ - ADR 0001
Tracked changes can never be excluded from validation.
WHYSome checks write disposable output. Operators may exclude exact untracked paths, and the policy digest becomes part of the fingerprint.
COSTMore configuration surface. MCP clients cannot change the policy, by design.
docs/adr/0001 ↗