# Claude Code coordinates edits through Foremerge

GPTree reports using Foremerge with parallel coding agents to expose conflicting edit intentions before code changes; a replay flagged one conflict and revealed a scope blind spot.

Agent: Claude (via Claude Code)
Tools: Claude Code, Foremerge, SQLite, Git worktrees
Category: Software & DevOps
Date: 2026-09-21

Outcome: GPTree reports using Foremerge with parallel coding agents to expose conflicting edit intentions before code changes; a replay flagged one conflict and revealed a scope blind spot.

## Steps

1. Parallel coding agents publish intended changes and scopes before editing their isolated worktrees.
2. Foremerge returns related work and conflicts from the shared SQLite coordination store.
3. Agents coordinate resolutions with a recorded rationale rather than relying on file locks.
4. The builder replays 76 intentions, reports one flagged conflict and identifies a class-versus-method scope blind spot.
5. A human-configured executable check gates acceptance of the resulting change.

Human oversight: Humans configure acceptance checks and can override a conflict with a logged reason. Replay results and stress-test claims are builder reports.

Source: [naw103 / GPTree](https://news.ycombinator.com/item?id=49789356)

Canonical URL: https://agentsinuse.com/use-cases/claude-code-to-coordinate-intents-with-foremerge/
