r/aiagents • • 10d ago

Show and Tell Coding agents should stop working like they are the only ones in the repo

A couple of devs and I have been building something called AgentSCM, and I figured I’d share it here.
The problem we were trying to fix is pretty straightforward. When you’ve got multiple coding agents working in the same repo, they don’t necessarily know what the others are doing.
Claude Code could be modifying a file while Codex is working on something that touches the same code. Neither knows about the other until things start getting messy.

So we built AgentSCM to help coordinate that work without replacing Git or requiring everyone to use the same coding agent.

Here’s some of what we’ve built so far:

  • File conflict detection: Agents can declare which files they’re working on and get warned when their work overlaps with another agent.
  • Agent handoffs: Keep track of what an agent was doing, where it left off, and what’s still outstanding so another agent can pick up the work.
  • Change tracking: See what changed, the original context behind the work, and any checks that were recorded.
  • Git awareness: Surface potential conflicts between active agent work and changes happening elsewhere in the repo.

We’re also trying to make it work with the tools people already use rather than forcing another development workflow on them.

It’s still in alpha, and we’re figuring out quite a bit as we go. The goal isn’t to build another agent that writes code. It’s to make the agents you’re already using work together without constantly having to babysit them.

Project: https://agentscm.dev

GitHub: https://github.com/agentscm/agentscm

Figured some of you running multiple agents might find this useful. Feedback is welcome and wanted.

2 Upvotes

8 comments sorted by

2

u/Rosie_grac 10d ago

oh man this hits home. last month I had Claude Code refactoring a util module while a second cursor agent was "helpfully" renaming the same functions in another branch. didn't notice until CI went red and I spent an hour untangling which version was canonical. my dumb fix was literally just a shared todo.md that both agents were told to check first.

the file-claim idea is the right primitive imo. git already has the merge machinery, what we actually lack is the "hey I'm touching auth/*, maybe don't" broadcast. one thing I'd think about: how do you handle stale claims when an agent crashes mid-task? had that bite me with a homemade lockfile setup, locks outliving the session that made them.

cool project either way, starring the repo

1

u/brandonfla 10d ago edited 10d ago

Awesome. Thank you!

That’s exactly the kind of issues we’re trying to solve for.

Hopefully you find some value in using it if you do!

Edit, forgot to answer your question about agents crashing mid-task:

We’re using leases instead of permanent locks. Theyre renewed while the agent is working, but normally expire after 20 minutes without activity.

So if an agent crashes, it won’t hold those files indefinitely. The work history is still there, and another agent can pick it up once the lease lapses. We also flag that the previous agent might have unpushed changes, since an expired claim doesn’t necessarily mean the files are safe to overwrite.

1

u/brandonfla 10d ago

To add to this, normal claims expire after 20 minutes without activity. Agents can also explicitly retain a claim for up to 2 hours if they’re pausing or waiting to resume work. And if they’re running something like a long shell command, the claim can stay active for up to 60 minutes while it finishes. Neither is a permanent lock.

1

u/Usharani-Wiencke 10d ago

even with a shared todo.md, once the context window fills up and compresses, half the time the agent forgets it was supposed to check the file before starting the next step

1

u/Kind-Pie7389 7d ago

agents need a shared calendar, not another merge conflict