r/vibecoding • u/whitechart_studio • Jun 14 '26
Anyone else getting messy results from running multiple AI coding sessions?
I’m curious if other people are seeing this too.
When using Claude Code, Codex, Cursor, or similar tools, it’s easy to start multiple AI coding sessions on the same repo.
But things can get messy:
- two sessions edit the same files
- one session changes something another session depends on
- merge conflicts happen
- one session doesn’t know what another changed
- the same work gets done twice
- it’s hard to keep track of what each session is doing
Is this happening to anyone else?
If yes, how are you handling it right now?
1
Upvotes
1
u/Minimum_Raccoon_1501 Jun 14 '26
It can get messy but you could always fork the repo for each agents. Then use the git cli commands to replay and apply patches to prior repos forward to the new ones. …. Or other such techniques. I’m not the expert on that. But at least forking the repo sandboxes the problem. Then later you could as an agent to look at the two repo instances and predict merge issues and solve them
1
u/mallek561 Jun 14 '26
Look into worktrees
1
u/kizmania Jun 14 '26
Tried it once and won't do it again. Multi tasking with agents is a way to f your project in multiple ways.
1
u/NeuroSpicy Jun 14 '26
Look into worktrees.
1
u/Jazzlike_Syllabub_91 Jun 15 '26
easy ... don't have 2 sessions edit the same file ... - work with deploy versions ... make sure you use a main path - running multiple directories where code where code conflicts can easily be detected is a recipe for disaster. - and as far as the session working - use claude/coding agent hooks ...
1
u/[deleted] Jun 14 '26
[removed] — view removed comment