Run multiple AI agents in isolated workspaces without conflicts
This command-line tool helps you run five to ten or more AI agents, such as Claude Code or Codex, simultaneously by ensuring each works in an independent directory. It simplifies the use of Git worktrees, automatically creating an environment where agents work on their own branches without overwriting each other's changes.
Worktree management as easy as branches
Git worktrees provide independent directories for multiple agents working simultaneously, but existing commands are complex to use. Previously, creating a new worktree required entering the branch name three times. This tool calculates the path automatically when you specify only the worktree by branch name. You can create a worktree and move to its directory with a single line like wt switch feat. You can also append the command to run the agent, significantly reducing the setup process.
Parallel work automation features
The tool includes features that automate repetitive tasks required when managing multiple worktrees. You can set hooks to run specific commands when creating a worktree. It also supports a feature where AI automatically generates commit messages. The merge workflow is handled with a single command, performing squash, rebase, merge, and cleanup processes at once. Additionally, it provides an interactive selector that displays CI status and PR information in real time. It shares build caches to prevent rebuilding identical dependencies across multiple worktrees. Set hooks to run specific commands when creating a worktree. Supports automatic generation of commit messages by AI. Handles squash, rebase, merge, and cleanup processes with a single command. Displays CI status and PR information in real time. Prevents rebuilding identical dependencies across multiple worktrees.
Installation and initial setup
On macOS and Linux, you can install it via Homebrew. On Windows, use Winget; since the wt command may conflict with Windows Terminal, you should install it as git-wt or change the alias. Because it is written in Rust, installation via Cargo is also possible. If shell integration is not configured, directory change commands may not work correctly, so it must be set up.
Suitable usage environments
It is suitable for developers running multiple AI agents like Claude Code or Codex simultaneously. It is also useful for those who already use Git worktrees but find the commands complex. It helps teams building workflows to develop multiple features or fix bugs in parallel. The build cache sharing feature is particularly effective in environments using APFS, btrfs, or XFS file systems. It can be used with any Git-based project, regardless of the programming language.