Foremerge: an open-source protocol that lets parallel coding agents declare intent before edits
ShiftTechnical · reddit · 2026-09-11
The author of Foremerge, an open-source coordination protocol for parallel coding agents, opens a design discussion. Before editing, an agent publishes its intended change as scopes with declared operations — a second agent touching the same scope gets a HIGH conflict finding before any code is written. Claims are leased and advisory, stored in SQLite under Git's common directory so isolated worktrees share it.
Key observation: the protocol has two halves. The front half (intent, claims, conflict findings, approvals) doesn't depend on Git beyond locating the store; the back half is Git all the way down — ChangeSets are fingerprinted, verification only counts if the fingerprint is unchanged, and acceptance pins immutable commits under refs/foremerge/accepted.
Four open questions: what serves as a content-addressed snapshot for non-repo resources (Terraform state, CRM records)? What real collisions have people seen between non-coding agents (e.g. refund vs. escalation)? Should the scope vocabulary be open or use per-domain profiles? And is pre-action detection most valuable precisely when actions can't be undone? The design deliberately keeps models out of conflict judgment — the detector is deterministic.
More from coding & agent
- Astra builds a surprisingly polished Catan game in three.js, reusing past UI and 3D assets — FinanceYF5 · 2026-09-11
- Open-Source Tool Highlights the Exact PDF Paragraphs Behind AI Answers — Flat-Phone-1596 · 2026-09-11
- OpenAI Codex may issue another usage reset this weekend, says Codex lead resets happen — umesh_ai · 2026-09-11
- Dev swaps gemini-3.8 for gemini-3.5-flash-lite in his MCP harness at a fraction of cost — julianharris · 2026-09-11
- ComfyUI Style Explorer Adds LoRA Preview Catalog and Sharing — neonsparksuk · 2026-09-11
- User burns $200 of Codex credits in one agent turn — 4,700 of 5,000 credits, task unfinished — RileyRalmuto · 2026-09-11