So I’m running two Claude Code sessions most of the time on the same repo and I keep running into the same problem. Agent A refactors something, agent B doesn’t know about it and writes code against the old version. Everything looks fine until you try to merge and half the tests fail I’ve tried a few setups:
- separate worktrees per agent, which helps with file conflicts but they still don’t know what the other one changed
- separate branches and merging after, but by that point the changes have diverged too much
- Coldtea runs a worktree per agent and lets them see each other’s changes which is the closest I’ve gotten to it actually working. still mac only though
- tmux with split panes, which is basically just two terminals with extra steps the real issue tbh for me isn’t isolation, it’s that isolated agents have zero awareness of each other. You solve the file conflict problem but create a context problem. submitted by /u/leena_xander
Originally posted by u/leena_xander on r/ClaudeCode
You must log in or # to comment.
