I replaced Claude Code’s default --worktree command with a custom one built around Ghostty, Lazygit…
@dani_avila734K followers
67,005 views
27 Comments
Comments from the original post on X (Twitter)

@lawrencecchen
nice! can you also optionally support workspaces+panes in with cmux cli?
4 likes

@roderik
how do you do the ghostty panes? did not know you could script those
1 like

@JonZeolla
You can do similar without the third party dep with a bash function like this
1 like

@Robogator_adm
This is such a clean upgrade to Claude Code worktrees, love how you turned chaos into a focused branch playground 🚀

@japborst
Or... Just use @conductor_build

@benkruger
Good luck with your permissions with a sibling! When inside the same repo you inherit the repo permissions

@pmontp19
Love it!

@alvaro__data
I love your customization tools for ghostty and Claude Code, thanks for sharing! Do you use an IDE on top, or only the terminal?

@Douglance
tmux bro

@DonnyLi2001
Great workflow tweak. Keeping worktrees outside the repo is cleaner for fs watchers and usually cuts IDE index churn when multiple branches are open.

@yrzhe_top
Nested worktrees inside the project dir = accidental complexity tax. Solving it at the hook layer with adjacent dirs is a small spatial shift, big cognitive payoff. Bookmarked.

@rv_RAJvishnu
moving worktrees to sibling directories is one of those fixes that seems small until you realize how much cognitive overhead messy project nesting adds. having lazygit and yazi ready in the right context on launch is a nice touch too. most people underestimate how much time they lose just navigating to the right place before they can start working

@sweatspots_com
It's indeed a better DX than the default one! I didn't know that you can hook and overwrite the commands. How did you do that magic?

@Life_of_rick
the sibling directory move is underrated. I've seen agents step on each other's files mid-task and it's chaos. isolation isn't just cleaner — it's the difference between reliable output and silent corruption nobody catches until production.

@samcmkt
Nicely done! I also found hooks to be the ideal solution to parallel subagents. Furthermore, you can use context injection to avoid information repetition. Check it out here:

@askcodi
bro turned worktrees into a spa day for branches

@TysonGeorge
This is awesome. If you want the editor part too, I made lazyide — lazygit-style TUI IDE made to run right next to Claude Code.

@Sizero
What's your ghostty setup? Looks amazing!

@morganlinton
Super interesting Daniel, I need to try this.

@codewithimanshu
@dani_avila7, Dani, custom worktrees offer better project organization.







