Foremerge
Coordination layer that warns when parallel coding agents plan conflicting changes
- Pricing
- Open source
- Platforms
- CLI, macOS, Linux
- Runs
- Locally
- Version
- 0.7.0
- Listing updated
- 3 days ago
About Foremerge
Foremerge is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
Git only notices conflicts after code exists, and only when text overlaps. Foremerge works before that: each agent publishes the target of its plan, such as a symbol and whether it will replace or extend it, into a small SQLite database inside the project's .git folder, which every agent on the machine can read. If one agent replaces PaymentService while another adds PayPal support to it, Foremerge raises a HIGH advisory naming both and suggesting a stable abstraction.
Detection is deterministic and uses no language model, so the same inputs give the same answer. It never locks files or blocks agents, because one crashed agent would then stall the rest; warnings are advisory. It also tracks dependencies, provisional ChangeSets, decisions and verification-gated lifecycle steps.
The README labels version 0.7.0 as a pre-1.0, local-first MVP with schemas that may change, no published benchmarks and no coordination between machines. It ships as one binary through cargo, npm or a checksum-verified download.
Install
Run in a terminal
claude mcp add foremerge -- npx -y foremergeAdd to claude_desktop_config.json
{
"mcpServers": {
"foremerge": {
"command": "npx",
"args": [
"-y",
"foremerge"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"foremerge": {
"command": "npx",
"args": [
"-y",
"foremerge"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"foremerge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"foremerge"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"foremerge": {
"command": "npx",
"args": [
"-y",
"foremerge"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"foremerge": {
"command": "npx",
"args": [
"-y",
"foremerge"
]
}
}
}What it does
- Intent publishing
- Agents declare scopes like symbols before editing.
- Deterministic conflict detection
- Explainable findings without a model in the loop.
- Shared local store
- A SQLite database inside .git visible to every agent.
- Advisory only
- No file locks and no blocking.
- Verification-gated lifecycle
- ChangeSets move forward only after checks pass.
- Cross-provider
- Works with Claude Code, Codex and Cursor.
Good for
- Run Claude Code and Codex in separate worktrees without collisions
- Catch a replace-versus-extend plan clash early
- Record decisions and verification for agent changes
- Review what other agents are about to change
Pricing
Open source
Open source; install via cargo, npm or binary
Prices change. Check foremerge.com before you buy.
Foremerge FAQ
Does it lock files?
No. It never locks or blocks; warnings are advisory.
Does an LLM judge conflicts?
No. Detection is deterministic and explainable.
Does it work across machines?
No. The README says coordination between machines is out of scope.
How mature is it?
Version 0.7.0 is a pre-1.0, local-first MVP and schemas may change.
Is Foremerge free?
Yes. Foremerge is open source, so you can use and self-host it for free.
How do I add Foremerge to Claude Code?
Run this command in your terminal: claude mcp add foremerge -- npx -y foremerge
What are the best alternatives to Foremerge?
The closest alternatives to Foremerge are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to Foremerge

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools