Worktrunk

Active
GitHub Rust NOASSERTION

Description

A CLI for Git worktree management, designed for parallel AI agent workflows. Run multiple AI coding agents simultaneously across branches.

Key Features

  • Three core commands (switch, remove, list) making git worktrees as easy as branches
  • Worktrees addressed by branch name with paths computed from configurable templates
  • Built-in hooks for automating workflows on create, pre-merge, and post-merge events
  • LLM-powered commit message generation from diffs for faster development cycles
  • Interactive picker with live diff and log previews for browsing parallel worktrees
  • Copy build caches between worktrees to skip cold starts for target, node_modules, and more

Use Cases

💡 Managing 5-10+ parallel AI coding agents like Claude Code and Codex across branches
💡 Automating merge workflows with squash, rebase, and cleanup in a single command
💡 Running dev servers on unique ports per worktree using hash_port template filter
💡 Setting up per-branch CI status checks and AI-generated branch summaries
💡 Streamlining PR checkout workflows with direct branch switching from PR numbers

Quick Start

brew install worktrunk && wt config shell install

Related Projects