About Foremerge
Foremerge is an open source coordination protocol for coding agents, layered on top of Git. It exists to solve a specific failure mode: when several agents work on one repository from separate worktrees, Git compares text, so two edits that are each sensible on their own can land in different files, merge without complaint and quietly undo one another. Foremerge asks each agent to declare what it is about to change before it changes it.
Agents publish intent, semantic claims over symbols and files, dependencies, provisional change sets, decisions and verification results into a single store held inside the project Git directory, so every agent on the machine reads the same picture whether it is Claude Code, Codex or Cursor. When two declared plans collide, the command line tool returns a structured conflict record with a kind, a severity, an explanation of why the plans contradict each other and a heuristic suggestion, which the output itself flags as advice rather than an automatic design decision. Output is available as JSON for scripting, and an MCP setup lets assistants query the store directly.
The project is distributed as open source and the site publishes no plans, subscriptions or commercial tiers; the pricing address does not resolve to a page. Installation is documented as a shell script fetched and piped straight into a shell, and the site additionally offers a single line of text to paste into a coding assistant so that the assistant performs the install and wires itself up. Teams with policies about executing remote install scripts, or about letting an agent run one, should review that step before adopting it.