ktree • Terminal UI
Git worktrees, without the juggling.
ktree is a fast terminal UI for managing git worktrees. See every worktree, its status, and how far it's drifted from upstream — then create, switch, or clean up without leaving the keyboard.
View on GitHub
brew tap alikazai/ktree && brew install ktree
Worktrees~/code/myapp
●
-main
clean
●
↑2 ↓0feature/auth
dirty
●
-feat/dashboard
loading
↑/k up · ↓/j down · enter switch · n new · d delete · q quit
Why ktree
Built for people who keep several worktrees open at once and want a single view of what state each one is in.
Live clean/dirty status and ahead/behind counts for every worktree, at a glance.
Create, branch, switch, and delete worktrees without memorizing git flags.
Shell integration cd's into a worktree the moment you select it.
Vault init pulls in your .env* files so new worktrees aren't missing config.
Ships a bundled skill installer for Claude, OpenCode, Codex, Grok, and Cursor.
Built for parallel branches
Many worktrees. One clean view.
Stop losing track of which worktree has uncommitted changes or which one is behind main. ktree keeps every branch you're juggling in one scrollable list.
Instant switching
Press enter and land in the worktree's directory via the shell wrapper.
Status at a glance
Dirty, clean, or still loading — color-coded dots, refreshed concurrently.
No stray branches
Delete with confirmation, with a force option when there are uncommitted changes.
How it works
Install once, then run it from any git repo. No config required to get started.
01
Install ktree
brew tap alikazai/ktree && brew install ktree, or go install github.com/alikazai/ktree@latest.
02
Run it in a repo
ktree lists every worktree with its status and drift from upstream.
03
Create, switch, clean up
n to create, enter to switch, d to delete — all from the same list.
Ready to stop losing track of your worktrees?
ktree is open source — install it with Homebrew or Go, and run it from any git repo.