DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to catch conflicting agent plans before code is written with Foremerge

Publish each agent's planned symbol changes and get a conflict warning before either agent edits files.

Short answer: Register each agent with foremerge --json agent register --name stripe-agent --no-worktree and note the returned id; then Publish the first plan with foremerge --json intent publish --agent "$STRIPE_AGENT" --task "modernize-payments" --summary "Replace PaymentService with StripePaymentService" --scope symbol:PaymentService=replace; register a second agent and publish its plan with --scope symbol:PaymentService=extend. All steps.

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

  1. Register each agent with foremerge --json agent register --name stripe-agent --no-worktree and note the returned id. (inferred, check the README)
  2. 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)
  3. Register a second agent and publish its plan with --scope symbol:PaymentService=extend.
  4. Read the findings with jq '.data.conflicts[] | {kind, severity, scope, explanation, suggestion}' on the second publish result.
  5. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer