max-sixty/worktrunk

A command-line tool for managing git worktrees, designed specifically for running multiple AI coding agents simultaneously: each agent gets its own isolated working directory to prevent interference, and creating, switching, or cleaning up worktrees is as simple as switching branches.

A command-line tool for managing git worktrees, designed specifically for running multiple AI coding agents simultaneously: each agent gets its own isolated working directory to prevent interference, and creating, switching, or cleaning up worktrees is as simple as switching branches.

Stars 10037 (+77 / 24h)

Reasons

  • With native git, opening a worktree requires typing the branch name three times and then cd-ing into it; with this tool, wt switch -c -x claude feat creates a branch, sets up a worktree, and launches Claude inside it with a single command. Use wt remove to clean up, and wt list to display changes, ahead/behind status, and commit states for each worktree.
  • Includes hooks (automatically run commands before and after creation or merging), generates commit messages based on diffs, displays CI status and AI summaries per branch, and completes squash/rebase/merge/cleanup in one command. On APFS, btrfs, and XFS, it allows multiple worktrees to share build caches such as target/ and node_modules/.

Usage

  • Run brew install worktrunk && wt config shell install, or cargo install worktrunk; on Windows, use winget install max-sixty.worktrunk, with the command name git-wt.
  • Use wt switch --create feature-auth to create a new one; use wt switch pr:123 to switch directly to a PR's branch; full documentation is available at worktrunk.dev.

Risks

  • Generating commit messages and branch summaries requires separately configuring model commands, as the README only provides documentation links; on Windows, there is a command conflict between wt and Windows Terminal.
  • The README lists the license as dual MIT or Apache-2.0 (not recognized by GitHub); the repository was created in 2025 year 10 month, and this is its first appearance on the list.

Open

Trendshift(GitHub Trending 快照)

Explore the latest AI Radar updates