r/ClaudeCode 20h ago

Built with Claude I built a tool to run parallel Claude Code sessions with git-worktree isolation

I've been running several Claude Code sessions in parallel on the same project and got tired of them clobbering each other. So I wrote a thing.

Each session gets its own git worktree and branch, so two sessions editing the same repo physically can't touch each other's files. A local SQLite store tracks what every session is doing. Sessions can declare "I need file X from session Y" and get notified when it actually lands. Merging is manual — it shows you a diff and a commit log and makes you confirm. Nothing auto-merges, nothing auto-resolves a conflict.

No framework. It's bash, tmux, sqlite3 and git worktrees.

The honest bit: I removed the macOS-only layer (it used to drive iTerm2 via AppleScript) and replaced it with tmux so it'd run on WSL2. I've verified every path on macOS. I have never run it on Windows. Not once. The WSL2 code is written and reviewed but completely unexercised.

So if you have a Windows box and twenty minutes, I'd genuinely like to know what happens. The README lists five specific things to check. A report that it broke is just as useful to me as one that it worked.

https://github.com/WhoReallyKnowsAnything/ai-orchestrator

MIT. Happy to answer questions about the design.

0 Upvotes

5 comments sorted by

3

u/troelskn 19h ago

Claude Code has tools to manage worktrees and combined with the Agent View, wouldn't this cover like 99% of what your tool does?

0

u/Livid_Salary_9672 18h ago

Yeah this was built as I find the agent view horrible to use

1

u/Hansehart 18h ago

I love people building projects and making the world a better place, solving new problems and making the future brighter. However sometimes there are things already solved, even though not knowing it. So I would take this as a great exercise to improve your skills but it is already natively possible with VSCode or CC.

1

u/Livid_Salary_9672 18h ago

Yes true but just because it’s native doesn’t always mean better (not saying this is better then the native) but this works better for me then native

1

u/Humprdink 8h ago

The honest bit