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

How to claim a code area so other agents see ownership with Foremerge

Mark which agent is working on a symbol, with an advisory lease that never blocks anyone.

Short answer: Claim the scope with foremerge --json work claim --agent "$STRIPE_AGENT" --intent "$STRIPE_INTENT" --scope symbol:PaymentService --reason "Changing the provider boundary", using the agent and intent ids from your earlier publish; then Claim the same scope for a second agent with its own intent id and a reason; read the second claim's advisory_only and warnings fields with jq '.data | {advisory_only, warnings}'. All steps.

Who it is forA developer whose agents may overlap on one area and who wants visible ownership without locking files.

The problemAgents cannot see who is already working on a symbol, and file locks would stall the whole fleet if one agent crashed.

The outcomeEach agent's claim is visible to others in a query, and overlapping claims show as warnings rather than blocks.

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. Claim the scope with foremerge --json work claim --agent "$STRIPE_AGENT" --intent "$STRIPE_INTENT" --scope symbol:PaymentService --reason "Changing the provider boundary", using the agent and intent ids from your earlier publish. (inferred, check the README)
  2. Claim the same scope for a second agent with its own intent id and a reason.
  3. Read the second claim's advisory_only and warnings fields with jq '.data | {advisory_only, warnings}'.
  4. List who holds the scope with foremerge --json work query --scope symbol:PaymentService | jq '.data[] | {agent: .agent.name, intent: .intent.summary, open_conflicts}'. (inferred, check the README)

Prompt for your agent

In the <repo path> repository, have two registered agents claim symbol:<target> with separate intents and reasons. Expected output: both claims succeed and the second response includes an overlap warning. Verify that advisory_only is true in the claim data before you tell anyone the scope is owned.

Caveat. A claim is advisory and never exclusive ownership, so agents still have to read the warnings and decide for themselves.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for naw103/foremerge and "Claim a code area so other agents see ownership"

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