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

Two agents can work in separate worktrees, never touch the same line, and still collide. Foremerge makes each agent publish what it plans to change, so the conflict shows up before the code does.

Language
Rust, one binary
State
SQLite in the Git common directory, shared by every worktree
Interfaces
CLI, MCP server with 18 tools, local JSON API
Clients
Claude Code, Codex, Cursor
Origin
Internal tool for building GPTree, then open-sourced
Show HN
2026-09-21
Terminal output from a Foremerge release binary showing a HIGH replace_vs_extend conflict on symbol:PaymentService with an explanation and a suggestion
Real output from the 0.1.0 release binary, abridged. Agent A plans to replace PaymentService, Agent B plans to extend it. Both worktrees are still clean and no ChangeSets exist yet. Since 0.4.0 this rule is called destructive_vs_additive.

The fuller picture

Public facts · checked 2026-12-02

Timeline

  1. BeforeBuilt as an internal tool while building GPTree.
  2. 2026-08-27First Foremerge essay. Eight published since, cross-posted to Dev.to.
  3. 2026-09-21Show HN: 45 points, 20 comments.
  4. 2026-10-250.6.0 released, with changes to how stale intent is handled.
  5. 2026-11-120.7.0 released. Status stays small on a ledger with months of history.

What I owned

  • Protocol design: intents, claims, ChangeSets, decisions, provenance
  • The deterministic conflict rules and their limits
  • The verification gate: only Foremerge-run checks count
  • The writing, findings and the repeatable runs behind them

Team and how we worked

Corgen LLC builds it with several coding agents in parallel on our own repos.

Each agent publishes intent to Foremerge before editing. A different model family reviews against the plan and the Foremerge output. A person decides what ships.

Systems and integrations

RustSQLiteGitMCP · 18 toolsJSON APIClaude CodeCodexCursorApache-2.0

Results and evidence

v0.7.0Released 2026-11-12, pre-1.0GitHub · crates.io
45 ptsShow HN, with 20 commentsHacker News
3,896Stale conflicts found in our own storeForemerge blog
8Essays since 2026-08-27Foremerge blog · Dev.to