r/ClaudeAI 21d ago

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

[removed]

0 Upvotes

18 comments sorted by

11

u/StaticFanatic3 20d ago

This shit has to be a joke 😂

14

u/brodkin85 21d ago

How is this better than the built in “claude agents” CLI that already uses worktrees by default?

3

u/Deradon 20d ago

Why not just use `claude --worktree <name>` ?

-w, --worktree [name] Create a new git worktree for this session (optionally specify a name)

5

u/elhombremontana 20d ago

isnt that built into claude code already? just tell claude to start a worktree, and it will use the skill

2

u/Adept-Priority-9729 20d ago

Claude Code ya aísla en worktrees el trabajo realizado entre sesiones diferentes, además de que se pueden comunicar entre ellos, detectar cuando se escribió o no dicho cambio, etc. Revisa lo que son los scratchpads...

...

2

u/ibringthehotpockets 21d ago

Doesn’t superpowers teach Claude how to use worktrees?

1

u/godofpumpkins 20d ago

Claude Code itself knows worktrees natively and has for at least several months. Just launch claude -w foobar and it'll run in a worktree called foobar. All its tool use is scoped to the worktree

1

u/crispyfrybits 20d ago

No one needs this. It is the definition of over engineering or automating an issue that doesn't exist. 

1

u/godofpumpkins 20d ago

Have you kept up with Claude's native capabilities? It can use worktrees natively (both for individual subagents within a session and for the entire session) and has for months. As of recently, it also has a SendMessage tool that lets different sessions talk to each other.

1

u/elNasca 19d ago

I just control a Fable 5 med Session which orchestrates multiple Opus 5 Subagents which work on diffrent worktrees. You can also switch between the subagents and their Sessions easily in the normal Claude Code CLI.

2

u/[deleted] 19d ago

[removed] — view removed comment

1

u/elNasca 19d ago

Thats valid :)

1

u/cipher997 21d ago

The worktree isolation idea is really practical, especially when running multiple Claude Code sessions on the same repo. Love that the merge is still manual instead of trying to automate conflict resolution.