AI product Open source

Foremerge

Foremerge is an open-source coordination protocol and CLI for parallel coding agents, developed by naw103 and built above Git. It gives agents isolated Git worktrees while recording shared intents, semantic scopes, claims, dependencies, ChangeSets, decisions, validation results, and provenance in a local SQLite store under the repository's Git common directory.

View repository Visit site Mentioned in 1 video ↓

Overview

Agents publish what they intend to change before editing. Foremerge compares typed scopes such as symbols, APIs, schemas, configuration, infrastructure, tests, migrations, files, components, contracts, and domains, producing deterministic, explainable conflict advisories and related-work information. Claims are leased and advisory rather than exclusive: the system does not lock files, block agents, or ask a model to judge conflicts. Its workflow can publish and validate a ChangeSet against a recorded Git fingerprint, require a clean worktree and resolved high-severity conflicts for acceptance, and record the eventual integration commit without merging, rebasing, cherry-picking, or pushing code.

The project provides a Rust CLI, JSON API, MCP server, SQLite coordination store, Git worktree support, and integrations for Claude Code, Codex, and Cursor. It is a local-first pre-1.0 MVP; coordination across machines is outside its scope, validation commands run with the local operating system's permissions, and the project reports no published benchmark results. Foremerge is distributed under the Apache License 2.0.

What Foremerge is used for

1 use taken from transcripts — each links to the moment in the video.

  • Detects likely merge conflicts between parallel coding agents by comparing the parts of the codebase they intend to change. It also verifies changes with tests on a clean commit before they land.

Videos mentioning Foremerge

1 in the library.