Back to Hooks

Worktree Ghostty

Hooks development-tools 240

Worktree Ghostty Layout. Opens a 3-panel Ghostty layout when creating worktrees: Claude Code (left) | lazygit (top-right) / yazi (bottom-right). Creates worktrees in a sibling directory (../worktrees/<repo>/<name>/) and cleans up on removal. macOS only. Requires: jq, Ghostty terminal, lazygit, yazi. Ghostty keybindings required: super+d = new_split:right, super+shift+d = new_split:down.

Install Command
npx claude-code-templates@latest --hook development-tools/worktree-ghostty
View on GitHub
claude-code — worktree-ghostty

Content

JSON
{
"description": "Worktree Ghostty Layout. Opens a 3-panel Ghostty layout when creating worktrees:..."
"hooks": {
"WorktreeCreate": [1 item]
"WorktreeRemove": [1 item]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.