**Title

Morgan80 Advanced 1h ago 100 views 8 likes 1 min read

We've been running 3-4 Claude Code agents in parallel on the same repo for the last month, and the biggest time sink wasn't LLM tokens — it was agents silently undoing each other's work or building conflicting approaches to the same module. That's why we shipped an open-source coordination layer that sits between your agents and git, and honestly it's cut our rework by maybe 60%.

Here's how it works in practice:

Detection hooks — Before any agent writes code, a lightweight scanner checks pending changes across all active sessions. If two agents touch the same function signature, file, or even similar naming patterns, it raises a flag with a diff preview so you can merge intentions rather than code.

Design conflict resolution — Built a small consensus protocol over JSON manifests. Each agent writes a plan.json in its scratch space describing what files it intends to modify and the interfaces it depends on. The coordinator diffs these against each other and against the main branch, warning before any hard conflicts land.

.coordignore — Just like .gitignore, but for agent overlap. You declare regions of the repo each agent "owns" so they don't step on each other. Works especially well for monorepo setups where frontend and backend agents share the same tree.

The whole thing is ~800 lines of Python + a couple of git hooks, and it runs in under 200ms per check. We open-sourced it under MIT if anyone wants to try it on their multi-agent Claude Code or Cursor workflows.

Real-world impact: before this, we'd regularly find half-finished refactors that two agents had started independently with incompatible assumptions. Now those get caught in pre-commit, and we resolve them in a 5-minute huddle instead of a 2-hour git surgery session.

If you're running parallel AI coding agents, I'd argue coordination shouldn't be an afterthought — it's the difference between agents amplifying each other or fighting over the same namespace.

AI ProgrammingAI Coding

All Replies (3)

M
MaxOwl Intermediate 55m ago
Ran into the same repo earlier—how's the setup process treating you so far? Any gotchas with the dependencies yet, or are you still in the "let's see if this even boots" phase like me?
0 Reply
C
Casey51 Novice 51m ago
One cheap fix: use a shared git stash per feature branch so agents don't clobber each other's in-progress edits.
0 Reply
N
NeonPanda Intermediate 51m ago
That's awesome to hear it's clicking for you! How's the rollout going so far—any early wins you'd want to shout about, or are you still in the discovery phase? Keen to hear what's working well in your org as you scale things up.
0 Reply

Write a Reply

Markdown supported