Worktrunk
Active and stableRuns locally ✓No paid APIA CLI that organizes Git worktrees for parallel tasks, from creation and status to merge and cleanup with hooks and explicit approvals.
brew install worktrunk && wt config shell installIdeal use for this tool
Best for an individual developer or small team running parallel branches or several coding agents at once. It gives each task an isolated folder and a clear review, merge, and cleanup path. It may be unnecessary when work always stays on one branch or native Git worktree commands are already sufficient.
Details and illustrated features
When several coding tasks run at the same time, one checkout becomes a bottleneck: an agent edits files while you review another fix, manually copied folders accumulate, and a simple question becomes difficult—Which folder belongs to which branch? Worktrunk turns Git worktrees into a clear workflow with short commands to create an isolated workspace for each task, inspect it, merge it, and clean it up. It is particularly useful for an individual developer or small team running parallel tasks manually or through coding agents, without adding a mandatory cloud service on top of Git.
🧭 What is Worktrunk, and how does it work?
git worktree is a native Git feature that opens multiple working directories from one repository. Each directory is attached to a different branch while sharing repository history and Git data. That keeps parallel tasks from writing into the same checkout. The raw Git command, however, asks you to choose a path and branch, change directories, and manage cleanup yourself.
Worktrunk is a Rust command-line tool that uses the short command wt on macOS and Linux. It derives a worktree path from the branch name and wraps repeated operations in commands such as wt switch, wt list, wt merge, and wt remove. It can also run user- or project-defined hooks, read pull-request status through forge tools, and share build caches with copy-on-write when the filesystem supports it.
It is not a new version-control system and does not replace Git, GitHub, or GitLab. It also does not start an agent merely because you create a worktree. The --execute option can run a command you supply, such as Claude Code, Codex, or a development server.

Original explanatory diagram of the repository-to-worktree relationship, not a Worktrunk interface screenshot.
🎯 How does it help you?
Imagine an API fix, a payment feature, and a documentation update. In one checkout, you would keep switching branches or stashing unfinished changes, and two processes could not safely edit the project at the same moment. With Worktrunk, each branch gets a separate directory, while one list shows their state.
The added value is not merely “run more agents.” It makes each task lifecycle traceable: a branch name maps to a predictable path, setup can be repeated, state is visible before review, and merge and cleanup have explicit guardrails. If you always work on one task and are comfortable with native git worktree commands, another layer may not be worthwhile.
🌟 Key features and capabilities
1. Create and enter a worktree from the branch name
wt switch -c feat/login creates a new branch and worktree, then enters it when shell integration is installed. Worktrunk derives the location from a configurable template rather than asking for a path every time. The -x option runs a command after switching, with arguments following --.
- Where: the
wt switchcommand. - How: choose a descriptive branch; add
-cto create it and-x <command>to run a command after the switch. - Illustrative example:
wt switch -c -x claude feat/login -- 'Add login validation'creates the space and invokes the supplied command. This example was not run in a real environment. - Watch out: the executed command inherits terminal permissions and may read project files or use the network. Review the arguments first.

The diagram shows the logical move. Changing the parent shell directory depends on installing shell integration.
2. A status list instead of remembered folders
wt list displays worktrees, branches, and related state. Full mode adds broader information such as branch diffs, logs, and CI or PR status when the relevant forge tool is available. The documentation names gh, glab, tea, and az for hosted-platform information.
- Where:
wt list,wt list --full, and the interactive picker. - How: start with the local list, then enable forge data only when you need it and have authenticated the corresponding CLI.
- Value: see whether a branch is clean or changed before opening or removing it instead of visiting each folder.
- Watch out: CI and PR status use network access and forge credentials; they are not part of local Git.

Illustrative values, not output from a real repository.
3. A merge workflow for squash, rebase, checks, and cleanup
The documented wt merge pipeline processes changes, squashes commits by default, rebases onto the target, runs relevant hooks, merges, then cleans up the worktree and branch according to the chosen options. --no-squash keeps individual commits. When worktree changes are included in the squash, Worktrunk creates a recovery reference at refs/wt-backup/<branch> before continuing.
That convenience is not a risk-free button. Inspect git diff, confirm the target branch, and run appropriate tests. A rebase conflict or failed hook still requires a human decision. A backup ref is also not a substitute for a remote repository or project backup.

The diagram summarizes the default pipeline; options and repository state can skip steps.
4. Hooks for setup and pre-merge verification
Hooks can target phases such as pre-start, post-start, pre-commit, pre-merge, and pre-remove. A practical setup might install dependencies when a worktree is created, start a server in the background, and run tests before merge. Blocking hooks follow the documented order, while background hooks may run together; commands writing the same resource can race.
Worktrunk distinguishes user hooks in ~/.config/worktrunk/config.toml from project hooks in .config/wt.toml. Project commands require approval the first time and again if the command template changes or the project moves. Approvals are stored in ~/.config/worktrunk/approvals.toml. User hooks do not prompt because the user defined them.

Approval reduces surprise execution; it does not sandbox a command or make it safe automatically.
5. Copy-on-write build-cache sharing
Worktrunk documents copying ignored files or build caches with reflinks when supported. A new copy shares disk blocks until either side writes, avoiding an immediate full copy of a large directory for every worktree. Documented filesystems include APFS, btrfs, XFS, and ReFS.
This is not continuous synchronization between worktrees and does not prove that node_modules remains valid after a lockfile or platform change. If the filesystem lacks reflinks or a build tool cannot safely use a copied cache, prefer an explicit installation hook. Do not treat the project's performance examples as results for your environment without measuring them.

Diagram of copy-on-write behavior, not a measured speed or disk result.
6. Custom commands and optional LLM commit messages
Aliases and templates let you compose repeatable project workflows. Commit messages can also be generated by an external command that reads a prompt from stdin and prints text. Worktrunk documents Claude Code and Codex examples, but it does not require a provider or include free provider usage.
When generation is enabled, the prompt can contain a Git diff, so source code may leave the device according to the selected CLI, provider, and account. Leave it disabled when project policy prohibits sending diffs, or use a local command you trust. Review the generated message; a model may not know the intended change or team policy.
🪜 Practical example: three parallel tasks without checkout collisions
Illustrative example; it was not executed in a real repository: a web application needs a pagination fix, a login feature, and a guide update.
- Confirm Git 2.43 or newer is installed and that current changes are saved and understood.
- Run
wt listto see existing worktrees and avoid reusing a busy branch. - Create
wt switch -c fix/pagination, then run the project's baseline tests inside that worktree. - Create two more worktrees for the feature and documentation. If agents are used, give each the correct worktree path and only the permissions it needs.
- Use
wt list --fullor inspect Git directly. Do not replace diff review with an AI summary. - Review the fix first. If the project defines a
pre-mergehook, read it and approve only commands you understand. - Run
wt mergeafter reviewing the target and squash policy. Resolve conflicts and test the target branch. - Do not use
wt remove -fon a changed worktree unless its staged, modified, and untracked files may be discarded.
⚖️ What changes compared with manual work?
| Task | Plain Git worktree flow | With Worktrunk |
|---|---|---|
| Create | Choose branch and path, then change directory | Branch name derives the path and shell integration moves there |
| Inspect | Visit folders or assemble custom commands | Unified list with optional detail |
| Set up | Repeat installation and startup in every folder | Shareable hooks after approval |
| Merge | Commit, squash, rebase, merge, and remove separately | Configurable pipeline with hooks and a recovery ref |
| Clean up | Remove worktree and branch manually | wt remove with state checks and explicit force |

This compares access patterns and command flow, not a measured time-saving percentage.
⚙️ Important configuration
User configuration lives in ~/.config/worktrunk/config.toml and can contain path templates, personal hooks, aliases, and an optional LLM command. Project configuration lives in .config/wt.toml and can be committed to share hooks or development-server URLs. Organizations may also deploy system configuration; wt config show reports platform-specific locations.
Use wt config approvals list to read project-command approval state without writing. --format=json helps an orchestrator determine whether an unattended operation would stop. Do not make --yes the default for an untrusted repository: it bypasses the prompt for the current operation, while wt config approvals add --yes stores approval for future runs.
Shell integration is required for wt switch to change the current terminal directory because a child process cannot change its parent shell. Inspect the installer change before accepting it in a shared environment.
🚀 Installation and first run
The documented prerequisite is Git 2.43 or newer. On macOS or Linux with Homebrew:
brew install worktrunk
wt config shell install
wt --version
wt list
Official routes also cover Cargo, Arch Linux, and Windows through Winget:
winget install max-sixty.worktrunk
git-wt config shell install
On Windows, wt conflicts with a Windows Terminal application alias, so the Winget package installs git-wt unless that alias is disabled. Building with cargo install worktrunk requires Rust; default features also need a C99 compiler for Bash highlighting, and the FAQ documents a build without that feature.
The verified stable release is 0.81.0, published on GitHub on 20 October 2026. Homebrew displayed the same version. I did not install the tool or execute these commands, so shell integration and Windows behavior were not tested in this environment.
🔗 Integrations and compatibility
Worktrunk runs above Git on macOS, Linux, and Windows through documented installation routes. It can optionally use GitHub CLI, GitLab CLI, Gitea tea, or Azure az for forge information. Coding-agent integrations are commands and configuration rather than a requirement for core worktree management.
Reflink support depends on APFS, btrfs, XFS, or ReFS. Shell integration varies by shell and platform. Advanced surfaces such as CI or PR previews also require an authenticated forge CLI. Consult wt <command> --help for the installed release because the active pre-1.0 project can change options.
💰 Cost and local operation
The repository is dual-licensed under your choice of MIT or Apache-2.0. Core commands run locally without a Worktrunk account, subscription, or paid API. External costs come from services you choose: Git hosting, an AI provider for commit messages, or CI infrastructure.
On 6 November 2026, GitHub displayed about 11.6k stars and 441 forks. These changing adoption signals are not user ratings or quality certification. The repository appeared on GitHub Trending that day, and its issue list showed new activity on 5 November. That indicates recent activity, not guaranteed stability.
🔐 Privacy, security, and permissions
Worktrunk runs Git commands and can read or write repository data, branches, refs, and worktrees. wt merge and wt remove can change history or remove a working directory, and -f can discard staged, modified, and untracked files. Higher verbosity can write raw subprocess output under .git/wt/logs/; do not assume secrets printed by a command remain unlogged.
Project hooks and aliases are executable code. The approval gate is useful because a new or changed template prompts again, but it is not a sandbox: an approved command can read files and environment values, access the network, or delete data with the user's permissions. User hooks do not pass through that gate. Inspect both configuration sources and begin without --yes in a new repository.
A forge CLI may send requests to GitHub, GitLab, or another host using its credentials. LLM commit generation pipes a prompt to an external command; data handling is governed by that command and provider. Core Worktrunk usage does not require either connection.

The diagram separates major trust boundaries; it is not an independent security audit.
⚠️ Limitations and when not to use it
- It needs Git 2.43+ and basic worktree knowledge; it cannot prevent logical Git conflicts.
- The project remains pre-1.0 and releases quickly. Pin the team version and review the changelog before upgrading.
wt mergemay not fit a team that preserves every commit or requires all merges through pull requests. Choose options or leave merging to the forge.- Hooks add an execution and maintenance surface. A README or small script may be clearer for a tiny project with one setup command.
- Copy-on-write depends on the filesystem and does not guarantee cache correctness.
- Parallel tasks still compete for CPU, memory, ports, and databases. Folder isolation does not isolate external services.
- Do not use
remove -finstead of reviewing a dirty worktree, and do not treat a backup ref as a permanent backup.
🔎 Why was it selected today?
Worktrunk was compared with Glances from system monitoring. Glances is mature, open-source, and cross-platform, but overlaps directory cards such as Beszel and Dagu. Worktrunk adds a different job: parallel Git work and handoff between a developer and coding agents. It is outside DSH and outside Astral, the ecosystem behind the preceding Ruff card, and it appeared on GitHub Trending during inspection. Selection was not based on stars alone; the deciding factors were a clear job, local operation, flexible licensing, detailed documentation, and approval controls for project commands.
GitHub Trending and Topics, claudeskills.info, and dshmarket.com were used for discovery and comparison only. None was used to prove Worktrunk product facts, and no matching DSH package was found that would count toward the DSH limit.
📚 Sources and verification date
Verified on 6 November 2026 against:
- Official website and documentation
- Original repository
- Release 0.81.0
- MIT or Apache-2.0 license
switch,list,merge, andremovedocumentation- Hooks and approval and approval management
- FAQ and system requirements
- LLM commit messages
- Homebrew formula
I did not install Worktrunk, run the example, test hooks or network traffic, test Windows, or perform an independent security audit. All images are original explanatory diagrams rather than product screenshots.