Who it is forA developer running two or more AI agents on one codebase, who worries that their separate changes will undo each other even though Git merges them cleanly.
The problemGit only flags edits to the same lines, so two reasonable changes in different files can silently break each other.
The outcomeYou see which agents' declared operations clash on the same symbol, with an explanation and a suggested split, while both worktrees are still clean.
What you need first
- Git and jq installed
- macOS or Linux, or the Windows binaries from the releases page
- A Git repository to coordinate, with at least one coding agent or a shell to act as one
- Rust 1.85+ only if you build from source
Steps
- Register each agent with
foremerge --json agent register --name stripe-agent --no-worktreeand note the returned id. (inferred, check the README) - Publish the first plan with
foremerge --json intent publish --agent "$STRIPE_AGENT" --task "modernize-payments" --summary "Replace PaymentService with StripePaymentService" --scope symbol:PaymentService=replace. (inferred, check the README) - Register a second agent and publish its plan with
--scope symbol:PaymentService=extend. - Read the findings with
jq '.data.conflicts[] | {kind, severity, scope, explanation, suggestion}'on the second publish result. - Record your decision with
foremerge assess record.
Prompt for your agent
In the <repo path> repository, register two agents with --no-worktree and publish intents that declare the same symbol:<target> scope with different operations. Expected output: a non-empty conflicts list in the second publish result with severity, explanation, and suggestion. Verify that the conflicts array is not empty before you report that the plans clash.
Caveat. The README's example uses --no-worktree sessions to exercise detection, and real agents should register their isolated worktrees and model identifiers instead.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for naw103/foremerge and "Catch conflicting agent plans before code is written"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer