Worktrunk is a CLI for git worktree management, designed for running AI agents in parallel.

AI agents like Claude Code and Codex can handle longer tasks without supervision, such that it’s possible to manage 5-10+ in parallel. Git’s native worktree feature give each agent its own working directory, so they don’t step on each other’s changes.
But the git worktree UX is clunky. Even a task as small as starting a new worktree requires typing the branch name three times:
git worktree add -b feat ../repo.feat, thencd ../repo.feat.
In addition to improving common tasks like switching and cleaning up worktrees, Worktrunk provides workflow automation too:
- Hooks — run commands on create, pre-merge, post-merge, etc
- LLM commit messages — generate commit messages from diffs
- Merge workflow — squash, rebase, merge, clean up in one command
- Interactive picker — browse worktrees with live diff and log previews
Worktrunk is dual-licensed under MIT and Apache-2.0 licenses.
Leave a Reply