Flag coding conflicts before agents edit
They set up a local layer that makes coding agents announce planned changes so overlapping architecture work gets caught early.
- What they did
- They installed Foremerge locally and connected it to Claude Code, Codex, and Cursor through a CLI and MCP server. Before any edits, each agent posted an intent using semantic scopes like a symbol name, then claimed that scope. In the demo, one agent planned to swap out PaymentService while another planned to extend it.
- How it went
- The second agent’s intent triggered a HIGH replace_vs_extend warning right away, before any files were changed. The system is only a heuristic, so it can miss alternate wording or flag work that would actually fit together. It only warns on claims, and there are no published benchmark results.
- Tips
- This works best as a pre-edit check on one local machine where all agents share the same SQLite state. Because validation runs with the user’s permissions, keep the commands limited to trusted code and always review the warning before proceeding.
Try it yourself with Claude Code
I’m running several coding agents in parallel worktrees on [repo path]. Help me set up a local coordination check where each agent must first publish a brief plan with the files or symbols it expects to change, then try to reserve that area before editing. Compare the plans for likely conflicts in architecture or overlapping file/symbol changes, and stop to show me the conflict report before any edits happen. If a step could delete, submit, send, or replace anything, pause and ask for my approval first. I want to use [Claude Code/Codex/Cursor] and register [test command] as part of the setup.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use Claude Code for a carefully checked migration
A developer used Claude Code to update a reset feature, but the review work and cleanup erased most of the speed gains.
Share files between sandboxed Claude Code agents through MCP
A developer connected sandboxed Claude Code instances to a virtual file system so they could pass files through MCP without direct access to AWS.
Build Playwright tests from a live app with Claude Code
Claude Code inspected a working app, generated a Playwright test, and fixed a locator conflict before a person checked the result.
Turn tracked tickets into pull requests
Use an agent to pick up issues or tickets, make the code change in an isolated pod, and open a PR for review.
Use Claude Code from a phone with a remote VM
They accessed Claude Code on an iPhone by pairing a Tailscale-only Vultr VM with Termius, mosh, and tmux.
Ask Claude Code to prototype a kernel change
Linus Torvalds had Claude Code help produce a Linux kernel patch, plus tests, review, and a first cover-letter draft.