适配 AI 并行工作流
为worktrunk打分
给出您宝贵的评分:
手机端可长按图片保存,分享到朋友圈 / 社群
使用 worktrunk,你可以:
Git worktree 管理 CLI 工具,专为并行 AI 智能体工作流打造,便捷管理多分支工作树
用户评论 (0)
2026年11月01日
2026年04月14日
2026年03月17日
2026年09月20日
2026年06月16日
2026年01月04日
2026年03月19日
2026年05月04日
v0.82.0
2026年11月15日
Release Notes
Improved
-
Backups before forced removal:
wt remove --forcesnapshots the worktree, including untracked files, torefs/wt-backup/<branch>and prints a recovery command. Ignored files, changes inside submodules, and separate staged versions are excluded. A failed backup stops removal; an unreadable status still permits removal without one. Docs (#4545, thanks @yajo for #4544) -
Codex activity hooks ship separately: skills stay in
worktrunk; activity hooks move toworktrunk-markers, so skill updates don't trigger hook reapproval. (Breaking: existing installs needcodex plugin add worktrunk-markers@worktrunkto retain activity markers after updating.) Docs (#4707, thanks @win5do for #4654) -
Claude Code
/wt-diffpane: shows the branch diff for worktrees the session has worked in, including work detected from subagents. Failed worktree lookups are retried, and tool errors reach Claude's hook diagnostics. Docs (#4638, #4668, #4689, thanks @rudycelekli and @Yash2031v) -
Shell completion: typing
wt switch origin/completes that remote's branches. Hook names honor per-project user overrides and source-qualified filters; completion honors-C,--config, config overrides, and alias precedence over executables on PATH. PowerShell filters suggestions by the typed prefix. (#4613, #4549, #4551, #4548, #4560, #4721, thanks @Bortlesboat, and @thernstig for #4612) -
JSON survives later failures: commands retain confirmed results when a later step fails, while diagnostics go to stderr and the exit status signals failure.
wt switch --format=jsonemits one result after execution. List schema 1 reports the tracked remote branch when its name differs locally. (#4345, #4574, #4584, #4756) -
Removal feedback: failures describe the surviving checkout and branch.
--delete-branchis visible in help as the override fordelete-branch = false, and the picker briefly confirms successfulAlt-xremoval. (#4457, #4615, #4669, thanks @Yash2031v for the picker feedback and @cazador481 for #4614) -
Fewer repeated Git operations: committing skips the second staging pass when no pre-commit hook ran; concurrent list tasks share identical ahead/behind counts. (#4540, #4663)
Fixed
-
Copying ignored files:
.worktreeincludecan select paths inside wholly ignored directories, such as.cache/types/. Copy and promotion also enforce destination containment before creating directories or moving files. (#4751) -
Foreground cancellation: signal handling closes races around child startup and completion, so Ctrl-C stops subsequent command steps. On Unix,
wt step tetherstops its supervised processes on interruption and now propagates a command's failure status. (#4596, #4609, #4623, #4598, thanks @drldavis for #4622) -
Hook execution and feedback: unselected templates no longer cause errors or consume arguments. Filtered background hooks retain independent user and project pipelines, and template failures identify the command. Background hooks running in different directories receive separate announcements. (#4429, #4781)
-
Config loading: rejected environment overrides warn and fall back to file settings consistently across commands; unreadable config files are reported instead of silently ignored. System-config deprecations point to the file that needs editing. (#4358, #4564, #4767)
-
State values: clearing a key removes all repeated values. Branch-local reads and clears exclude variables belonging to branches whose names extend with
.vars.*. State tables preserve literal pipes, links, and formatting characters. (#4566, #4779, #4780) -
Log and terminal handling: authentication-probe output is redacted from diagnostics; Unix logs use private permissions, and permission repair leaves symlink targets unchanged. Commit subjects, PR context, and list summaries escape terminal control characters. (#4604, #4611, #4605, #4730)
-
SSH remotes with a non-default port: port-less legacy project IDs no longer supply approvals or project settings to a different SSH server. Those repositories need port-qualified approvals and project overrides. (#4606)
-
Removal with submodules: text-mode removal warns about submodule commits reachable from no remote; the warning does not prevent removal. Orphan cleanup preserves fsmonitor daemons serving live submodules. (#4460, #4729)
-
Fork branch conflicts and GitHub Enterprise: GitLab and Azure DevOps use a prefixed, fetch-only branch when a fork's branch name conflicts locally. GitHub Enterprise PR lookup uses the remote’s host, or a supplied PR URL’s host, when
ghis authenticated there. (#4542, #4710, #4722, thanks @anqorithm, and @pgilad-rna for #4709) -
Azure DevOps remotes: collection-prefixed URLs, legacy SSH URLs, and URLs omitting the project segment resolve the correct project for links and CI lookup. (#4764, thanks @owpac for #4763)
-
Shell integration: directory changes preserve trailing spaces, and PowerShell treats paths containing brackets literally. Installation continues configuring other shells after an rc-file error; uninstall matches recognized standalone setup lines and leaves customized lines for manual removal. (#4608, #4680, #4583, #4595, thanks @dajiaohuang for the PowerShell fix and @lucasfonte21 for #4582)
-
Agent plugins: Claude's worktree-switching skill leaves the current worktree session before entering another by path. On Windows, Pi, oh-my-pi, and OpenCode select Worktrunk rather than Windows Terminal's
wt; Claude activity markers are written without launching anotherwt. (#4714, #4698, #4619, thanks @tian-yu200 for #4697) -
Branch markers: deleting a branch through Worktrunk or creating it with
wt switch --createclears its marker, so reused names don't inherit stale activity. Clearing all markers preserves a state variable namedmarker. (#4684, #4704, #4528, thanks @wsgavin for #4683) -
List and picker display: headers use
@for HEAD and^for the default branch. Variation-selector emoji align; IPv6-only loopback servers are detected; the footer shows task progress; stale refreshes cannot overwrite removal layout. (#4682, #4694, #4620, #4708, #4732, thanks @nixpulvis for #4727, @saltcoffee for the IPv6 fix and @NorfeldtKnowit for #4681) -
Numeric custom columns: list-column validation accepts
intandfloatfilters onvars.*andgit.branch.*values. (#4775, thanks @adrian-gierakowski for #1983) -
Linux process cleanup:
wt remove --reapdiscovers process working directories through/proc, avoiding a timed-out system-widelsofscan. (#4631, thanks @OmerFarukOruc for #4630) -
Aliases and custom commands: named aliases can be inspected outside a repository; project aliases display migrated template variables. Custom-command discovery excludes non-executable entries. (#4547, #4690, #4565)
-
Fixes for unusual setups: slash-named remotes work in branch inventory; same-named tags don't affect the push range; non-UTF-8 environment entries no longer panic config loading; invalid alias arguments cannot fall through to a PATH executable; failed Git ref queries propagate as errors. (#4271, #4499, #4563, #4550, #4562, thanks @Duang777)
Documentation
-
Claude desktop worktrees: clarifies that the desktop app skips the plugin’s worktree hooks, so its worktree sessions bypass Worktrunk. Docs (#4777, thanks @chatoo2412 for #4776)
-
Interactive browser demo: a Try it page runs Worktrunk in a browser workspace. (#4280, #4546, #4579, #4581, thanks @kooler)
-
Guides and examples: guides explain shortened list counts and the default base branch for Claude’s hook-created worktrees. Skill anchors and site icon links are repaired; the move-changes alias stops if stashing or restoring fails. (#4575, #4576, #4688, #4678, #4770, #4751, #4719, thanks @viwe-monai)
Internal
-
Temporary-index cleanup reclaims abandoned scratch indexes while owner locks protect active operations, including removal backups. (#4469, thanks @jonah-osmo)
-
Breaking Rust library changes: public types and function signatures changed; downstream crates need to update for 0.82.0.
Install worktrunk 0.82.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.82.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.82.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.82.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell installv0.81.0
2026年10月21日
Release Notes
Improved
-
Hooks can prompt: hooks that run serially in the foreground (
pre-*hooks,wt hook <type> --foreground) inherit wt's stdin, sogum confirm 'trust this worktree?' && mise trustworks as a hook. Concurrent and background hooks read EOF. (Breaking: hooks no longer receive their context as JSON on stdin; pass values as template arguments, or whole objects with the newtojsonfilter.wt step for-eachkeeps its JSON.) Docs (#3129, #4451, #4524, thanks @endigma for #3093) -
Experimental
wt switch --path: places one worktree outside theworktree-pathtemplate and keeps its branch name, as inwt switch --create feature/JIRA-1234 --path ../dark-mode. Commands reach it by branch or by path. Docs (#4317, thanks @christowiz for #1982) -
wt merge --branch: merges another worktree's branch without leaving the current worktree. Commit, squash, rebase, and hooks run in the source worktree, and cleanup removes it. Docs (#4360, thanks @liuyinchu) -
OpenCode 2 worktrees go through Worktrunk: after re-running
wt config plugins opencode install, worktrees OpenCode creates and removes usewt switch --createandwt remove, as the Claude Code plugin's do. OpenCode'sworktree.directorystops applying, and new branches start from the default branch. Like the Claude Code plugin, it opens an existing branch's worktree, which OpenCode's remove then removes. Docs (#4489, thanks @rzane for #4488) -
Faster bulk removal: removal hands files to one background deleter per repository, not one
rm -rfeach, and deletes read-only directories it used to leave in.git/wt/trash.wt step pruneno longer stalls when two worktrees share a directory name, as Codex worktrees do. (Breaking: prune runs pre-remove hooks concurrently; hooks writing shared state must coordinate.) (#4516, #4361, #4337) -
wt switch -returns to the worktree it left, including a detached worktree or the second checkout of a branch, andwt remove -targets the same worktree. Pre-switch hooks see the resolved destination, sowt switch origin/featurepassesbranch=feature. (Breaking: from a bare repository's directory, commands given no argument act on the worktree of the branch HEAD names.) (#4497, #4496, #4521) -
Template errors name the variable:
{{ brnch }}reportsundefined variable brnchand suggestsbranch. (Breaking: filters such assanitizereject an undefined input, so{{ upstream | sanitize }}needs a guard ordefaulton a branch with no upstream.) (#4350, #4440) -
Templates use MiniJinja 3 (Breaking): objects and lists render Python-style (
{'port': 3000}) instead of as JSON, so use| tojsonwhere JSON is needed;roundrounds half to even;titlecapitalizes fewer word boundaries (feat/x-ybecomesFeat/x-Y); division by zero errors. (#4442, #4524) -
CI status shows ⚠ for any failed forge call, where some failures, such as a Gitea 404, used to leave the cell blank. A forge CLI with no login for the host still leaves it blank, and
wt config show --fullnames the host it checked. (#4436, #4449) -
Removal explains itself:
--forcelists the changes it discards, and a refusal over untracked files suggestsgit stash -u. A multi-targetwt removecontinues past a target whose pre-remove hook or removal fails, and exits 1. A branch-only removal names the detached worktree left at the branch's path. (#4347, #4357, #3791, #4313, thanks @chachi for #3769) -
The picker can open without its preview:
[switch.picker] preview = falsehides it untilAlt-p. (#4428, thanks @emacampolo for #4072) -
Squash backups print a recovery command: squashing staged changes prints the
refs/wt-backup/<branch>ref and awt switch --create --base <sha>command that restores them in a new worktree, even afterwt mergeremoved the original. (#4347) -
Shell integration:
wt mergeandwt removesuggest restarting the shell when integration is installed but inactive. On Unix, the PowerShell profile comes from the installedpwsh, so a customXDG_CONFIG_HOMEworks. (Breaking: installing for Nushell requiresnu, and for PowerShell on Unix,pwsh.) (#4343, #4422, #4436) -
System config has one path per platform:
/Library/Application Support/worktrunk/config.tomlon macOS,%PROGRAMDATA%\worktrunk\config.tomlon Windows,/etc/xdg/worktrunk/config.tomlelsewhere, orWORKTRUNK_SYSTEM_CONFIG_PATH. (Breaking:$XDG_CONFIG_DIRSis ignored and macOS no longer falls back to/etc/xdg; a file there stops loading without a warning.) (#4169) -
expected_worktree_path_of_branch()template function: returns wherewt switch --createwould put a branch's worktree, even after the worktree at that path has moved to another branch. (#4502, thanks @BenJurewicz for #4480) -
Smaller improvements:
wt switch --createreports an invalid branch name in one line instead of Git's error; hook failures name the hook's source (pre-merge user:lint failed (exit code 7)); thewt listloading footer says how many rows fit;wt step for-eachlabels detached worktrees by path;install-statuslinekeepssettings.json's key order; the Codex plugin shows the Worktrunk icon. (#4349, #4352, #4333, #4498, #4420, #4327)
Fixed
-
Foreground hooks that change terminal settings: a hook that touched the terminal, such as turbo on a cache miss, was stopped by
SIGTTOUand wt hung. Hooks now run in the shell's job group. (Breaking: Nushell integration requires Nushell 0.113+; on Ctrl-C wt dies by the signal instead of exiting 130, so a calling script stops too.) (#4400, #3129, thanks @user753 for #4389 and @willparsons for the turbo report) -
Formatter pre-commit hooks during a squash: in
wt mergeandwt step squash, a hook's edits missed the squash commit, and the dirty worktree blocked removal. All commit paths now stage, run the hooks, and stage again. (Breaking:wt step commitandwt merge --no-squashstage first too, so index-reading hooks likepre-commit runcan block them.) (#4321, #4520) -
wt step copy-ignoredon Linux: copied files took the copy's time, so cargo rebuilt much of a copiedtarget/; they now keep the source's mtime, as they already did on macOS and Windows. A reflink rejected withEPERMnow falls back to a copy. (#4319, #4518, #4434, thanks @dmy-gh for #4248, @paul-hansen for the repro, and @HN05 for #4433) -
Directory patterns in
.worktreeincludeand[step.copy-ignored] exclude: a pattern such asconfig/skipped ignored files that sit beside tracked files inconfig/, sowt step copy-ignoredleft out included files and copied excluded ones. It now covers them, as.gitignoredoes. (#4406) -
wt liststatus symbols: JSONsymbolsstrings use the table's order (⊘_, was_⊘), and the flag for an off-template path or duplicate checkout is a dim⚐instead of⚑. (Breaking: consumers matching these strings need updating.) (#4335, #4334) -
wt switch:--createbranches from a remote-tracking default branch such as git-p4'sp4/masterinstead ofHEAD; switching by path, as the picker does, gives pre-switch hooks the destination's variables; the bare-repo warning names the configured path. (#4482, #4493, #4491, thanks @cazador481 for #4481 and @dlecan for #4492) -
Agent plugins:
claude --worktree NAMEopens the worktree of an existing branchNAMErather than failing, so a kept session can be reopened. A clean exit then runswt removeon it, which deletes its ignored files and, if integrated, the branch. The Codex plugin's Windows hooks parse under PowerShell. (#4487, #4241, thanks @edziegle for #4486 and @wstczyw for #4239) -
wt switchpicker: a per-projectpagerapplies to the diff preview; a selected branch-only row no longer draws light text on the light selection bar; an orphan branch's log tab shows its commits. (#4398, #4408, #4470, thanks @willparsons for reporting the contrast bug) -
wt step relocate: a swap moves the shell with its worktree; relocating the main worktree leaves a shell in a nested worktree where it is; branches whose sanitized names collide no longer relocate partway. (#4325, #4256, thanks @Duang777) -
Aliases:
--args=Xand--vars=Xreach{{ args }}instead of being dropped, and completion after an alias no longer offers--dry-runor--var. (#4391, #4329) -
Config errors: a malformed
approvals.tomlno longer aborts hooks, aliases, or commits run with--yes; one invalidWORKTRUNK_*override no longer discards the valid ones. (#4467, #4348) -
Windows: an Azure CLI installed through WinGet (
az.cmd) is found, and Git Bash is found through the firstgitonPATH, including custom installs where it resolves underGit\mingw64\bin. (Breaking: withoutgitonPATH, Git Bash is no longer found at its default install locations.) (#4402, #4411, #4452, thanks @wmmc88 for #4401 and @LeoWSY-hashblue for #4410) -
Forge fixes: Azure DevOps CI no longer shows a same-named branch's PR from another repository in the project, and
pr:Nsuggests adev.azure.comURL for SSH remotes; Gitea fork pushes keep the server's clone URL;tealogins in its default macOS and Windows locations are found;ghandglabprotocol settings apply per host. (#4326, #4364, #4495, #4420) -
Fixes for unusual setups: valueless git config keys such as
core.fsmonitorread as true; untracked files named like:xno longer breakwt list's diff; worktree paths containing newlines or non-UTF-8 bytes; the statusline's branch label with customworktree-pathtemplates; zshcompinitadvice names the right file; IPv6ssh://remotes get distinct approvals and[projects]settings (Breaking: re-save them). (#4314, #4320, #4453, #4495, #4421, #4526)
Documentation
-
wt config shell --helpis the shell setup reference, covering init, install, uninstall, and diagnostics. (#4344) -
Doc corrections: the
wt config state vars clearexample,wt listJSONnullcauses, every supported forge in CI help,--pathworktrees inwt list, the bare-repo navigation example, and Alt as Option on macOS. (#4363, #4359, #4439, #4328, #4483, #4412, thanks @wmcnamee-coreweave for #4474) -
Recipes: the bare repository layout sets
origin's fetch refspec; the aichat example passes--codeto drop a reasoning model's<think>block; the OpenCode command uses Claude Haiku 5.5;wt-tuijoins the custom subcommand examples. (#4323, #4332, #4432, #4386, thanks @gitNetw0rk for #4322, @FenjuFu, and @marcusjihansson) -
The
wt-switch-createskill reads the new repository's rootCLAUDE.mdandAGENTS.mdwhen it moves a session into another repository's worktree. (#4414)
Internal
-
Library API changes (Breaking library API):
Repository::project_identifierreturns aProjectId, which config accessors take in place of&str;Repository::require_worktreealso returns the branch;Repository::run_commandtakesAsRef<OsStr>arguments;UserConfig::expected_worktree_pathis new. (#4526, #4496, #4453, #4502) -
MSRV is Rust 1.98. (#4367)
-
A hidden
wt config plugins claude hooksubcommand handles every hook event the Claude Code plugin uses, toward listing the plugin in Anthropic's plugin directory. (#4304) -
Release signing and crates.io OIDC run in the tag-only
releaseenvironment. (#4415)
Install worktrunk 0.81.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.81.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.81.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.81.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell installv0.80.0
2026年09月28日
Release Notes
Improved
-
wt listand thewt switchpicker settle faster in repos with many worktrees: rows fill from the top down, and on macOS withcore.fsmonitor=trueno daemon start is forked for a worktree whose daemon is already running. On a 50-worktree repo the picker's per-row work starts at 47ms, down from 120ms. (#4286, #4290, #4288, #4284) -
CI status skips branches that were never pushed:
wt list --full, the picker, and the statusline no longer query the forge for a local branch no remote has, so a repo with 239 local branches made 25ghcalls instead of 249. A PR opened from a branch another clone pushed shows once you fetch. GitLab looks up its project ID once per command, not per row. (#4289, #4216) -
Leaner Codex commit generation: the recommended Codex command moves to
gpt-6-lunawith reasoning off and unneeded Codex features disabled, so each message sends fewer input tokens. Accepting the first-run Codex prompt now also creates~/.codex/worktrunk-commit-instructions.txt, which the command reads. Docs (#4261) -
Releases ship a signed packslip: each GitHub release includes
packslip.sigstore.json, a manifest of the archives' digests, platforms, completions, and agent skills, signed by the release workflow so installers such as mise can verify downloads before unpacking. (#4301, thanks @jdx)
Fixed
-
A squash whose commit fails keeps the branch: when a git commit hook or signing stopped the commit in
wt mergeorwt step squash, the branch was left at the merge base with its changes staged, recoverable from the reflog. Now the branch is untouched. (Breaking: git commit hooks run on a detachedHEADduring a squash.) (#4206, thanks @Bennyjitsu for finding it in #4193) -
wt step diffwhen localmainlagsorigin/main: for a branch built on the newerorigin/main, the diff included the upstream commits in between. It now uses the same base aswt merge. (#4281, thanks @starlightromero, whose #3519 reported the same case forwt merge) -
Submodules with an
ignoresetting: whensubmodule.<name>.ignoreordiff.ignoreSubmoduleshid uncommitted changes inside a submodule,wt removeandwt step pruneread the worktree as clean and removed it along with them; they now keep it. Withignore=all,wt step commitand squashes now commit a staged submodule pointer instead of leaving it staged. (#4252, #4192, #4206, #4303, thanks @Duang777) -
Worktrees whose
.gitwas deleted but whose directory remains (macOS$TMPDIRcleanup can do this):wt remove <branch>failed, andwt step pruneskipped or errored on them. Both now unregister the worktree and leave its files; one with staged changes or an operation in progress is kept bywt step prune, and refused bywt removewithout--force. (#4228, #4226, #4302) -
wt merge --no-squashwith a stage mode that stages nothing: with--stage=noneand only unstaged changes,--stage=trackedand only untracked files, or only dirty submodule contents, it stopped at "Nothing to commit"; it now merges the branch's commits. (#4251, thanks @Duang777) -
Nushell 0.116: the first
wttab completion in each session printed aPositional completer input deprecatedwarning. The completer now takes Nushell's new input and still works on older versions. (#4297) -
Hook-log JSON's
branchfield:wt config state logs --format=jsonput the sanitized log directory name (feature-x-x2d) there; it now holdsfeature/x, ornullwhen no local branch owns the directory. (Breaking: filters on the sanitized form need updating.) (#4279) -
wt config show --fulloutside a git repository: it printed only agit rev-parsefailure; it now shows the user config and diagnostics. (#4255) -
Fixes for unusual git setups:
--no-ffmerges are signed whencommit.gpgSignis set without a value or only for one worktree; aftergit worktree repair,--separate-git-dirrepos put worktrees beside the work tree andwt removeworks (fixes #4235); removing an orphan worktree before its first commit no longer errors; with a custom merge driver, leaving the picker during a conflict check no longer strands.merge_file_*files (fixes #4273). (#4206, #4236, #4233, #4274, thanks @zengzheqing and @brndnmtthws for reporting) -
Fixes for unusual names and values: branch and remote names starting with
-; non-UTF-8 file names inwt step copy-ignored,promote,push, andmerge; a bare~inCLAUDE_CONFIG_DIR, or WindowsHOMEdiffering fromUSERPROFILE; post-remove hooks after a pre-remove hook breaks the user config; multilinewt config state varsvalues, whichvars listand{{ vars.* }}truncated andwt config state clearfailed on. (#4253, #4267, #4277, #4257, #4259, #4262, #4247, #4276, #4272, thanks @Duang777 and @hiro-nikaitou)
Documentation
-
Help and recipe corrections:
wt step squash --stage=noneand thewt step pruneskip list now describe what they do, and the "Database per worktree" and "Monitor hook logs" tips use commandswtaccepts. (#4268, #4279) -
The worktrunk skill's sub-Agent example runs hooks: it dropped
--no-hooks, sopre-startprovisioning runs in agent-spawned worktrees, with guidance on when to add it back. (#4219, thanks @passitalong)
Internal
-
Library API changes (Breaking library API):
LocalBranchgainspush_remote;GitErrorgainsStaleWorktreeHoldsWorkand arepairable_atfield onWorktreeMissing;Repository::capture_refs_with_ahead_behindis removed;git::parse_porcelain_zandRepository::changed_filesnow use bytes. (#4228, #4259, #4289, #4290) -
Agent guidance moved to
AGENTS.md, shared by Claude Code and Codex, and trimmed from 2,763 lines to 382. (#4245, #4246, #4287)
Install worktrunk 0.80.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.80.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.80.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.80.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell installv0.79.0
2026年09月21日
Release Notes
Improved
-
wt switch --no-cd -x <program>runs the program in the worktree: it started in the invoking directory, so a program meant for the new worktree had to be handed{{ worktree_path }}.--no-cdnow governs only your shell —wt switch feature --no-cd -x code -- .opens the worktree in an editor and leaves your terminal put. (Breaking: a program that wanted the invoking directory needs an explicitcd.) Fixes #4042. (#4179, thanks @yajo for reporting) -
The picker's preview tabs show which have content: a tab's label is dim when that tab is empty for the selected row, and underlined when it's the active tab. Availability sat on the tab's number alone, so every inactive label read dim whatever the row held. (#4174)
-
Messages name the destination, and end with the command to run: without shell integration,
wt mergeandwt removeprintedCannot change directory — shell integration not installedand no path; the warning now names the worktree, aswt switchalready did. "Cannot determine default branch" had three wordings, and three recovery hints put their command first rather than last. (#4163, #4155, thanks @blrain3 for reporting) -
/wt-switch-createno longer stalls at Claude Code's path-entry dialog: Claude Code confirms every entry outside.claude/worktrees/, which is every Worktrunk worktree, so a background session waited for someone to attach. The plugin now approves entry into a worktree at itsworktree-pathlocation, and reads a bare name as the repo or the branch. (#4158, #4159) -
wt config update --outputaccepts the config being migrated: it refused that path when the migration droppedapproved-commands. Those approvals now move to approvals.toml first, exactly as the in-place update moves them. (#4204)
Fixed
-
wt mergeon a dirty worktree describes what it commits: the generated message covered the branch's earlier commits and said nothing about the work the merge had just staged into the same commit.wt step squash --dry-runnow previews what the run would commit, aswt step commit --dry-rundoes. (#4178) -
A config save no longer rewrites the rest of your config: declining a prompt, or setting the commit-generation command, rewrote the whole file, dropping values written at their default and re-spelling hook pipelines and dropping their comments. It also reloaded that file over the in-memory config, so
wt step commit --config-set 'commit.stage="none"'staged everything once it had asked about commit generation. (#4160, #4156, #4151) -
Diff display config no longer reaches Worktrunk's prompts or its integration check:
color.ui = alwaysanddiff.externalreached the commit, squash, and summary prompts. Two corner cases also madewt removeandwt step prunedelete an unmerged branch:diff.relativeset and a Worktrunk command run from a subdirectory the branch's changes sat entirely outside, orsubmodule.<name>.ignore = all(git config or.gitmodules) and a submodule bump as its only change. (#4146, #4147) -
Auto-staging names a wholly untracked directory once: since 0.78.0 the warning expanded each one into its files, so
wt step commit,wt step squash, andwt mergelisted 300 paths for a directory of 300 new files. The listing also stops at ten rows, with a hint counting the rest. (#4152, thanks @Duang777) -
Valid empty per-project sections stop warning:
[projects."host/org/repo".list]is accepted on load, yet every command reportedunknown field projects.host/org/repo.listfor it — as did the other six per-project sections. Fixes #4115. (#4123, thanks @zach-hammad-vs for reporting) -
An unstaged rename counts as a change: after
git add -N, git reports the rename in the worktree column (R), which Worktrunk read only in the index column. A worktree whose only change was such a rename showed clean inwt list, andwt merge's overlap check on the destination misparsed the old path. (#4190, #4191, thanks @Duang777) -
wt merge --no-ffandwt step push --no-ffsign their merge commit undercommit.gpgSign: they built it withcommit-tree, which ignores that setting.wt step rebaseandwt mergealso pass--no-update-refs, so a rebase rewrites only its own worktree's branch. (Breaking:rebase.updateRefsno longer moves other local branches stacked in the rebased range.) (#4146) -
wt step prune --min-ageguards branches with no reflog: they got no age guard at all, so in a bare repository — wherecore.logAllRefUpdatesdefaults off — a branch that had just arrived at an integrated commit was pruned on the next run. Age now comes from the mtime of the file holding the ref. (#4154) -
The picker preview renders the whole pane: a fenced code block with no closing fence dropped everything from the fence to the end of a PR description or comment, and the pane rendered one column wider than skim paints, so a wrapped line flush against the right edge lost its last character. (#4178, #4183)
-
wt config plugins pi installexpands~in$PI_CODING_AGENT_DIR: Pi expands it, soPI_CODING_AGENT_DIR="~/x"means a directory under home, where Worktrunk created a literal~directory under the current directory. (#4151) -
wt config createno longer replaces a dangling symlink at the config path: it wrote a regular file over the link, detaching whatever owns it. It now fails and names the link. (#4204)
Documentation
-
The picker demo shows the CI and summary columns filling in:
alt-pwidens the rows, the cells land behind them, then it pages a diff, a PR's comment thread, and the PR itself. The homepage omnibus demo opens on the picker. Docs (#4178) -
The docs got a sweep: help text drops internals, deprecated behavior, and edge cases the command reports itself when they happen —
wt step diff's "How it works", thewt hook --varparagraph, and thewt config state ci-statuspage among them. Config samples now name the file they belong in as the block's tab. (#4157, #4153, #4173, #4177)
Internal
-
Library API rework (Breaking library API):
cargo-semver-checksfails five lints —BranchDiffSpecswapsrevs/working_basefordiff_base,UserConfig::save_togives way to theConfigEditmutations,config::UnknownAnalysisis gone,Repository::prepare_difftakesfrom/toin place of a revision list, and four diff helpers onPreparedDiffandWorkingTreego with it. (#4146, #4147, #4160, #4156) -
The Nix flake's test sandbox gains
openssh, which the merge-signing test needs. (#4168)
Install worktrunk 0.79.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.79.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.79.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.79.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell installv0.78.0
2026年09月17日
Release Notes
Improved
-
Hook scripts read renamed context keys: the JSON piped to every hook drops
worktree,repo_root,main_worktree, andmain_worktree_pathin favour ofworktree_path,repo_path,repo, andprimary_worktree_path. Config templates migrate on load, so hooks written with the old names keep working; scripts reading the JSON,--executetemplates, and--varoverrides need updating. (Breaking.) (#4080) -
wt config plugins piinstalls for Pi; oh-my-pi moves towt config plugins omp:pi installwrote an oh-my-pi hook, which Pi never loads; Pi users re-run it to get a Pi extension. Existing oh-my-pi hooks keep working, listed as outdated untilwt config plugins omp install. (Breaking: scripts that runwt config plugins pifor oh-my-pi needomp.) Docs (#4135, thanks @ashebanow) -
Interactive prompts no longer open with a blank line:
wt config shell install,wt config plugins claude install, and the commit-message setup offer inwt mergebegan with one. (#4059) -
wt config showgives a singlewt config shell installhint: an outdated wrapper, a fish wrapper at the deprecatedconf.dpath, and missing fish completions each printed their own hint. The zshcompinitsnippet is now syntax-highlighted. (#4059) -
wt config update --output <path>confirms the write: it now prints✓ Wrote user config migration @ ~/migrated.tomlwhere it printed nothing.--output=-stays silent. (#4053)
Fixed
-
Removal no longer discards untracked files hidden by
status.showUntrackedFiles = no: under that setting, a worktree holding only untracked files looked clean, sowt remove,wt merge, andwt step pruneremoved it without--force. Safety checks now always count untracked files, and auto-staging warnings list every file they stage. (#4111, thanks @Duang777) -
wt removeandwt mergecheck the right worktree under an inheritedGIT_DIR: run from a!wtgit alias or a git hook, which passGIT_DIRdown,wt removecould delete a dirty worktree without--force, andwt mergecould refuse a clean merge. Both now check the worktree they act on. (#4082, thanks @Duang777) -
wt mergeno longer deletes a worktree locked withgit worktree lock: the merge completes and printsWorktree preserved (locked). Every Worktrunk removal refuses a locked worktree, even with--force; rungit worktree unlock <path>first. (#4073, thanks @Duang777) -
wt config updateno longer overwrites a config edited while its prompt is open: it wrote the pre-prompt snapshot over the newer file and reported success. It now fails with the path and leaves the newer file; re-running previews the current contents. (#4127, thanks @zach-hammad-vs for reporting) -
wt step pruneno longer deletes a branch created minutes ago from an older commit:--min-ageaged a branch without a worktree by its commit's date, so a new branch off a day-old commit was pruned on the next run. Age now comes from the branch's oldest reflog entry. (#4077) -
A comment or blank line above an inline config section no longer breaks the config: a save or migration that rewrote
commit = { … }as[commit]put that line inside the brackets.wt switch,wt merge,wt remove, and severalwt stepcommands then failed withFailed to load config;wt listwarned and ran without the config. Saves also dropped unrecognized keys from inline sections. (#4120, thanks @zach-hammad-vs for reporting) -
Config saves keep the trailing comment on a value they rewrite: a save such as answering the commit-generation offer dropped the comment after each value it rewrote, including one after an inline section's closing brace. (#4138)
-
Ignored project-config keys warn from every worktree: an unknown key in
.config/wt.toml, or one that belongs in user config such as[merge], warned only in the main worktree, sowt mergefrom a linked worktree ignored it silently. (#4145, thanks @ee-prog for reporting) -
wt mergeskipspost-commitwhen it removes that hook's worktree: before, the hook ran in the primary worktree when the removed one sat inside the repository, and otherwise didn't run. The merge now prints▲ Skipped post-commit; move work that must finish there topre-remove. (#4049) -
wt switchrecovers from a removed worktree in a bare repository:wt switchand the picker surfaced git's rawfatal: Unable to read current working directoryinstead, and the removed-directory message lackedwt switch ^. (#4067) -
wt config shell install fishputs the wrapper where fish reads it under a custom$XDG_CONFIG_HOME: the wrapper always went to~/.config/fish/functions/, so install reported success whilewt switchchanged no directory. On Windows, the fish completion moves from%APPDATA%\fish\completionsto the wrapper's directory. (#4107) -
wt config shell install zshhonours$ZDOTDIRonly when it is absolute: an empty or relative value resolved against the current directory, so install appended to a.zshrcunder the current directory and reported success while the file zsh reads went untouched. A non-absolute value now falls back to$HOME. (#4085) -
wt config shell installfor Nushell no longer deletes awt.nuunder the current directory: an empty or relative$XDG_CONFIG_HOMEresolved against it, so install removed anushell/vendor/autoload/wt.nubeneath it unread, as a stale wrapper. It now falls back to~/.config, which also fixes unreadtealogins that letwt switch pr:<n>treat a Gitea host as GitHub. (#4104) -
wt switch --createnames the branch a failed worktree add leaves behind:git worktree add -bwrites the branch ref before populating the worktree, so a failure in between left the branch with no worktree, and the next attempt reported a name collision. The error now says how to delete or reuse it. (#4109, thanks @technicalpickles for reporting) -
wt config shell installno longer tells an already-wrapped shell to restart: reinstalling from a shell with the wrapper loaded, such as after a version bump, printed↳ Restart shell to activate shell integration. (#4059) -
wt config shell installmigrates a deprecatedconf.dfish wrapper when~/.config/fish/functionsis missing: before, onlywt config shell install fishmigrated it.wt config shownow reports that wrapper even when fish isn't onPATH. (#4059) -
Plugin status and uninstall checks ask the agent CLIs:
wt config showcould list an installed Claude Code plugin or Gemini CLI extension as not installed, andwt config plugins claude|codex uninstallcould report success over a marketplace still configured. A repeat Claude uninstall now runs both removals instead of stopping atPlugin not installed. (#4048, #4054) -
wt config plugins opencode installno longer writes the plugin into the current directory: withOPENCODE_CONFIG_DIRset but empty, it wroteplugins/worktrunk.tsthere, typically inside a repository, reporting success though OpenCode never saw it. An empty value now counts as unset. (#4084) -
The OpenCode plugin clears its activity marker when OpenCode 1 disposes it: only explicit session deletion cleared it, so a finished session kept its
💬andwt listshowed it as active untilwt config state marker clearwas run by hand. (#4129, thanks @drewdas for reporting) -
wt config updatemigrates[ci] platforminto a[forge]section that only setshostname: that config, common with GitHub Enterprise and self-hosted GitLab, kept the deprecated key with no deprecation warning. (#4061) -
Deprecated keys in an inline
[projects]entry now migrate:"example.com/org/repo" = { merge = { no-ff = true } }skipped the migration the section form got, so the per-project setting was ignored. (#4122, thanks @zach-hammad-vs for reporting) -
A deprecated config section the migration can't rewrite now warns:
select = "not a table", or a[select]whose[switch.picker]destination is already set, was ignored without a message. It now reportsunknown field select (will be ignored). (#4121, thanks @zach-hammad-vs for reporting) -
wt config updateno longer changes what a template renders: it could rename{{ repo_root }}inside a quoted string, and after{% set %}rebound it. A template binding a retired name or its replacement stays unmigrated and unwarned: a hook reading that name fails, and a squash template can silently drop it. (#4124, thanks @zach-hammad-vs for reporting) -
Config migration previews ignore
diff.externaland report a failed diff:wt config showand thewt config updateprompt showed an external diff program's output in place of the patch, and nothing when the diff failed. A failure now printsCould not render the proposed diffwith git's error. (#4126, thanks @zach-hammad-vs for reporting) -
An alias that binds
dry_runcan take--dry-run <value>: that spelling failed with the retired-flag error even when the template referenced{{ dry_run }}, while--dry-run=<value>worked. A bare--dry-runstill errors; pass--dry-run=1. (#4058) -
wt <alias>outside a repository names the alias: it fell through to clap'sunrecognized subcommand, which suggested the name just typed. It now reports that aliases only run inside a git repository and quotes git's own error. (#3982, thanks @yzx9)
Documentation
-
Shell integration has its own page: Shell integration was previously skill-only. The site gains a footer, the
wt configandwt steppages stop repeating the global options under every subcommand, the generated--helpblocks drop their copy button, and three recipes are corrected — including the OpenCode-xform, wrong since 0.76.0. (#4000) -
wt hook --helpdescribespost-mergecorrectly: it said the hook runs in the destination worktree "with removal", a condition that never existed — it always runs there. (#4071, thanks @kyle641320 for reporting) -
Docs heading anchors are scoped to their subcommand:
/step/#min-age-guardis now/step/#wt-step-prune--min-age-guard, so headings repeated across subcommands no longer collide. Links to the old anchors land at the top of the page. (#4079) -
Docs copy buttons sit with their code: the button sat 40px below a block's top — on line two, or hanging below a one-line block — and a file-name tab sat inset. A block of several commands now gives each its own button, not one copying all, and trailing shell comments stay out of what's copied. (#4090, #4091, #4078)
-
Demos re-recorded with the site's palette: dark-theme demos showed a light Zellij bar and a light Claude Code theme. (#4069)
Internal
- The Nix flake uses
stdenv.hostPlatform.isDarwin, which stops the deprecation warning nixpkgs prints on every eval. (#4132, thanks @ashebanow)
Install worktrunk 0.78.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.78.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.78.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.78.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell installv0.77.0
2026年09月09日
Release Notes
Improved
-
wt listsizes and aligns its columns to the terminal width: one long branch name no longer sizes the Branch column for every row — it caps at 32 characters and elides, so a narrow terminal keeps its other columns instead of degenerating into a branch list.Remote⇅stops holding blank space open in a repo with no remote, and alignment now follows the value type.--format=jsonstill carries the whole name. (#3998) -
wt listnames what it hid and marks detached worktrees: the summary readshidden: Path, Commitinstead of counting columns, a detached worktree shows⊘rather than borrowing⚑, and a prunable row leaves its cells blank instead of showing loading dots that never resolve. (#3998) -
wt list --format=jsongains amarkerfield and stops reportingdetachedtwice: the branch marker set bywt config state markeris now readable without parsing it out ofsymbols, andstateno longer reports a detached worktree asbranch_worktree_mismatch— the siblingdetachedboolean carries it. (#3998) -
wt list --format=jsonnow defaults to schema 2: callers get the envelope with repository metadata and orthogonal per-item facts without configuring[list] json-schema.wt list statusline --format=jsonfollows the same key. Setjson-schema = 1to retain the original bare-array format. (Breaking.) (#4038) -
wt config showfails on a broken config: it exits 1 on an unreadable or invalid config, an invalid[list] columns, or an invalidapprovals.toml. Unknown keys and deprecations stay warnings and still exit 0. A newAPPROVALSsection counts project commands awaiting approval. (Breaking: it always exited 0 before.) (#3999) -
Config migration output names its destination:
wt config update --output <path>writes the migration artifact to that file instead of applying it in place, and--output=-writes it to stdout. Output mode includes project config when run from a linked worktree. (Breaking:--printwas removed.) (#4021) -
Pi joins the agent integrations:
wt config plugins pi installwrites an activity hook to~/.omp/agent/hooks/pre/worktrunk.ts, so Pi sessions show 🤖/💬 markers inwt listlike Claude Code, Codex, OpenCode, and Gemini.$PI_CONFIG_DIR,$PI_CODING_AGENT_DIR, and named$OMP_PROFILE/$PI_PROFILEprofiles are honored. Docs (#3594, thanks @adity982, and @ortonomy for the request) -
wt config plugins codex installinstalls the plugin too: it previously registered the marketplace and left you to run/pluginsin Codex yourself. Uninstall follows for both Codex and Claude Code, removing the plugin and then the marketplace, so the two commands are inverses. (Breaking: Codex uninstall previously left an installed plugin alone; Claude uninstall now also removes the marketplace.) (#4019) -
wt step copy-ignoredsays whether it reflinked or copied: the summary now reads(reflinked, no extra disk),(full copy), or a partial count, so the same29.5 GBline distinguishes a free copy from one that actually wrote the bytes.--format=jsongainsreflinkedandwritten. (#4025) -
wt config updateremoves keys its destination cannot hold: migrating[select]or[commit-generation]drops keys the new section has no field for, reporting each one. Otherwise the key landed at a path the user never typed and warned on every command, with no way to clear it. (#3994)
Fixed
-
A failed
wt switch pr:<n>against a fork no longer deletes a branch it didn't create: the rollback force-deleted the branch on any setup error, including the one case where the branch wasn't its own — apre-switchhook or a concurrent session claiming the name in the window after the forge answered. Branch and worktree are now created in onegit worktree add -b, which writes nothing when the name is taken. (#3984) -
Codex on Windows: the activity hooks no longer fail on every event: each hook led with a bare
bash, whichcmd.exeresolves to the WSL launcher rather than Git Bash, so every event raised aHook failedbanner. Hooks now runwt.shthrough a shim that finds Git Bash by path. (#4008, fixes #4007, thanks @McNultyyy for reporting and diagnosing) -
Templates leave
branchunset in a detached worktree: aliases and hooks rendered{{ branch }}as the literalHEAD, which git resolves, so an unguarded template ran against the wrong ref — the reported case ended ingit push origin --delete HEAD, which git refused.baseandtargetfollow. (Breaking: an unguarded{{ branch }}now errors.) (#4010, fixes #4009) -
The OpenCode plugin loads under OpenCode 2: OpenCode 2's loader dropped the old bare-function export silently, so activity markers stopped appearing. The plugin now exports one object carrying both the v2
setupand v1serverentry points, and spawnswtthroughnode:child_processrather than the Bun shell. Re-runwt config plugins opencode installto pick it up; the one file covers OpenCode 2 and OpenCode 1.16 or later. (#4018, thanks @pragmaticivan for the request) -
wt step commit --branchbuilds its prompt from the worktree being committed: prompt-building git plumbing ran in the invoking worktree, so with nothing staged there the generated message described none of the changes it committed.wt step relocate --commithad the same bug, and--dry-run/--show-promptnow preview the worktree--branchnames. (#3996) -
LLM commit messages keep diffs for quoted paths: a file whose name git quotes in the
diff --githeader — any non-ASCII name under the defaultcore.quotePath— had its whole diff section dropped from the prompt once the diff exceeded the 100 KB budget. (#4041) -
An unparsable user config is reported, not a panic:
wt config show --format=jsonand--full, pluswt step prune,relocate,eval, andfor-each, panicked on a debug build and printed a bare✗ Command failedon a release one. They now report✗ Failed to load configwith the parser's caret diagram. (#4002) -
wt switch --executenames the directory the program actually starts in: theExecuting (--execute) @ …header rendered the worktree the background hooks run in, not the program's own directory — which differs under--no-cdor a switch from a subdirectory. The path is omitted when the shell already stands there. (#4043, fixes #4042, thanks @yajo for reporting) -
wt config plugins claude|codex uninstallis safe to re-run: removing an already-absent marketplace reported a failure, and a Claude uninstall that removed the plugin and then failed left the marketplace with no way to clear it. Both now finish a half-done uninstall and succeed when there is nothing left to remove. (#4033, #4034) -
wt config state markerset and clear no-op outside a git repository: they exited 1 with a git error, so an agent plugin running outside a repository printed one every turn (the hook's|| truekept the session going). (#3981, thanks @mahirhir) -
wt listproduces output in a bare repo with no worktrees: it printed nothing at all and exited 0. It now reports○ No worktreeswith a hint,--brancheslists the branches, and--format jsonemits the envelope with an emptyitems. (#3992) -
wt listwarns when it can't parse the project config rather than ignoring it silently; the listing still succeeds. (#3993) -
Relayed command output no longer prints ahead of the delayed-stream progress line, and delayed-stream output routes through anstream so color is stripped consistently when redirected. (#4037, #3995)
-
A hook filter that matches nothing names the unconfigured source, rather than reporting no match without saying which source was empty. (#3997)
Documentation
-
wt hooksays thatpost-*hooks from the two sources run concurrently, so dependent commands belong in one source;wt mergerecords thatpost-commitcan't run when the merge removes the worktree it anchors on. (#4020, #4026) -
wt stephelp pages describe what the commands actually do:wt step prunesays it removes branches as well as worktrees,wt step copy-ignoreddocuments--from/--to,wt step commitdocuments--branch, and both it andsquashdocument their hooks and no-LLM fallback messages. (#3997) -
The FAQ lists the files Worktrunk writes outside its own config: OpenCode's plugin, Pi's hook, and the Claude Code
settings.jsonstatusline entry, alongside the existing inventory of what Worktrunk creates and deletes. The Claude and Codex plugin installs write nothing themselves. (#4036) -
wt step copy-ignoreddocuments its disk-space benefit per filesystem, and the bare-repoworktree-pathexample names the bare repo's own location. (#4022, #4006) -
Terminal examples on the docs site fit a desktop window rather than overflowing. (#4039)
v0.76.0
2026年09月02日
Release Notes
Improved
-
wt switch --executetakes a program, not a shell string:-xnames one program, with everything after--passed as literal argv. Worktrunk spawns it as a child rather than running it in your interactive shell, so shell functions and itscdno longer reach you.-x sh -- -c '…'recovers shell syntax, not functions. (Breaking: existing-xstrings, plusWORKTRUNK_DIRECTIVE_EXEC_FILEandWORKTRUNK_SHELL.) (#3977, closes #2860, fixes #3944, thanks @omgreenfield for testing the migration path) -
Worktrunk decides tracking for the branches it creates: a new branch gets an upstream only when its name matches the remote branch it starts from, whatever
branch.autoSetupMergesays:--create release --base origin/releasetracks,--create feature --base origin/releasedoes not. UnderautoSetupMerge = falsethis previously exited 128 after creating the worktree. (#3913, #3950, fixes #3937, thanks @mjakl for reporting and diagnosing) -
Retired config keys are no longer read:
commit.generation.template-fileandsquash-template-fileare gone — put the file's contents intemplateorsquash-template. There is no migration: the key stays, warns as unknown on every load, and the prompt reverts to the built-in default. Setting bothtemplateandtemplate-fileused to fail the load; it now loadstemplate.switch.picker.timeout-mslikewise warns rather than being stripped. (Breaking.) (#3949) -
Project aliases and hooks can use
wt switch --execute: their bodies previously refused it. Worktrunk now starts the program itself instead of handing shell text to your shell, and the command-approval gate remains the control on project-defined commands. (#3977) -
Established automation and LLM customization interfaces are now stable:
wt step eval,wt step for-each,wt step prune, LLM branch summaries,wt config state vars, andcommit.generation.template-appendare no longer marked experimental. (#3949) -
wt step prunestages removals concurrently again: only thegit worktree removeteardowns serialize, so dirty checks, fsmonitor shutdown, and the trash rename overlap. Theprune_e2e/livebenchmark median went from 377 ms to 222 ms. (#3954) -
wt config approvals addreads as a review rather than a warning: it opens with a cyanReview 1 command for repo:instead of a yellow▲ … needs approval to execute. The execution-time gate is unchanged. (#3953)
Fixed
-
The
wt switchpicker survives a preview longer than 65,535 lines: skim keeps the pane's line count in au16, so a larger diff abortedwtwith exit 101 seconds after it painted — on screen the picker looked like it closed by itself. Panes now cap at 60,000 lines and say so. (#3959, fixes #3958, thanks @sandertammesoo for reporting and diagnosing) -
The nushell wrapper propagates exit codes without a POSIX shell: it reported a failing
wtby spawningsh, so on Windows every failing command printed aCommand `sh` not foundtrace and exit 1 whatever the real code was. Nushell's wrapper is a static file, so rerunwt config shell installto pick this up. (#3945) -
The picker no longer shows one detached worktree's diff for another: previews were keyed by branch name, so every detached row shared the key
(detached). Rows now key by canonical identity, which also letswt remove feature ~/repo.featureplan that worktree once instead of failing on the second. (#3926) -
wt switch pr:<n>givespre-switchhooks the real branch:branchandtargetheld the literalpr:3933, andtarget_worktree_pathwas unset even when that branch had a worktree.pr_numberandpr_urlare now set for same-repo PRs, not only forks. (#3941, fixes #3934, thanks @robsonpeixoto for reporting) -
wt config shell installno longer replaces an rc file created while it was checking: the missing-file path refuses to clobber and fails with a rerun hint. A dangling rc symlink is preserved and rejected rather than overwritten. (#3929) -
wt switch --create X --base pr:<n>works when the PR branch has no local branch: the fetch writes only the remote-tracking ref, and git won't expand a bare name to one, so the command failed withNo branch, tag, or commit named …. The base is now named under its remote. (#3951) -
wt switch --createstreamsgit worktree addinstead of stalling: where a sandbox denied the timed wait's pipe orsigaction, the command waited out git's entire run and then reportedFailed to wait for commandfor work that had already succeeded. (#3881) -
Claude Code activity markers stay on the session's launch worktree: the plugin's marker hooks pass
-C "$CLAUDE_PROJECT_DIR", so acdmid-session no longer marks another repository. A session launched outside a repository gets no marker. (#3956)
Documentation
-
--executedocuments how to get a variable into a shell body: each position is substituted verbatim, so a variable spliced intosh -ctext is re-parsed by that shell and splits on spaces. The help now shows passing it as a separate argument and referencing it positionally. (#3977) -
The clone-local default-branch override is documented:
wt config state default-branch setwritesworktrunk.default-branchto the clone's local git config — machine-local, never committed, and shared by every linked worktree.setwarns when the branch isn't checked out locally, andwt listskips its comparisons until it is. (#3947, #3948, fixes #3946, thanks @danielo515 for the request) -
The docs site renders code with the CLI's own colors: terminal examples reproduce each snapshot's exact ANSI roles, while command references and the homepage command comparison get clap and shell syntax color from paired light/dark themes. File excerpts gain a path tab, and code wraps instead of scrolling on mobile. (#3936, #3938, #3939, #3942)
-
The
pre-startupstream example uses--base: it showedwt switch --create feature origin/feature, whichwt switchrejects. (#3955)
Internal
-
Library API rework (Breaking library API):
cargo-semver-checksfails ten lints —RemoteRefProviderand its provider structs give way toForgeKinddispatch, the--executerework retires the fish and PowerShellShellEscapeModeescapes andWORKTRUNK_SHELL_ENV_VAR,BranchRefswapsfull_ref/worktree_pathforid, and accessors includingBranch::unset_upstreamandProjectConfig::ci_platformare gone. (#3913, #3926, #3949, #3963, #3977) -
Hook pipelines and
wt listcollection lost two indirection layers: the background pipeline carriesPreparedStepdirectly, and 15 marker task types collapse into one exhaustive dispatch. The synthesized---forcesubmodule path keeps its dirty re-check and destructive command under one lock, so prune's narrower locking doesn't widen that window. (#3964, #3954)
Install worktrunk 0.76.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.76.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.76.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.76.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell installv0.75.0
2026年08月27日
Release Notes
Improved
-
The
wt switchpicker opens on one unified diff: local rows combine committed, staged, unstaged, and untracked changes. Tab skips empty subsidiary views, whileAlt-1throughAlt-8retain direct access. Docs (#3865) -
Git 2.43 is now the minimum supported version: older Git exits with an upgrade message before Git-dependent commands run;
wt config shellremains available so shell startup continues. (Breaking.) (#3895)
Fixed
-
wt listno longer grows.git/objectsduring advisory conflict checks: untracked content stays visible but is excluded from synthetic trees, and all probe-only objects use temporary storage. (#3906, fixes #3883, thanks @srobroek for reporting and the original fix) -
HEAD±counts untracked files without inflating moves:wt list, the picker, and statusline include untracked lines. Tracked deletions paired with untracked destinations count as renames, so pure moves are line-neutral and edited moves show only their edits.HEAD±now always detects renames, regardless ofdiff.renames. (#3925) -
Timed child processes no longer abort
wtin restricted sandboxes:wt switch --create, picker pagers, and other bounded commands survive denied signal-handler wakes. TERM→KILL cleanup also returns promptly once the process group is gone. (#3857, #3887, fixes #3856, thanks @tomascamargo for reporting) -
JSON list output ignores display-column gates:
[list] columnsno longer makeswt list --format jsoncontact a forge or generate summaries. CI requires--full; summaries also require[list] summary = trueand a configured generator. (Breaking: schema 1 loses config-drivenciandsummaryfields.) (#3812, thanks @emeren for the request) -
Long Windows paths compare consistently: paths beyond 260 characters could retain a
\\?\prefix and appear to be on another drive.copy-ignoredthen refused them, while switch, remove, merge, and relocate landed at the worktree root instead of the original subdirectory. (#3899, fixes #3898, thanks @Persedes for reporting and verifying the fix) -
Shell configuration rechecks before it writes: overlapping installs lock and reread rc files; Fish completion installs preserve files created after preview; uninstall applies only previewed rc removals and rejects changed Worktrunk-owned files. (#3853, #3924)
-
-vvprofiles exclude their own collector commands: command counts and cache summaries no longer include duplicate-looking work performed only to assemble the diagnostic report; raw traces still retain it. (#3900) -
Fenced HTML comments survive picker Markdown rendering: PR descriptions and comments now preserve fenced
<!-- … -->lines; fenced<!-- wt list … -->markers also no longer affect the following block. (#3908)
Documentation
-
Agent CLIs without a plugin can publish activity markers: the integration guide now specifies the session-start, turn-end, and session-end calls, working-directory requirement, error guard, and cleanup contract. Docs (#3848, thanks @AsafMah for requesting generic-agent guidance and @ortonomy for the related Pi use case)
-
Agent guidance explains worktree selection: commands that name a branch already select its worktree;
-Cchanges repository context and is needed only for commands without a worktree selector or callers outside the repository. (#3890) -
The
wt uprecipe safely updates dirty worktrees: it fetches all remotes, fast-forwards dirty branches without autostash, rebases clean branches, and continues past an ordinary refusal or a failed remote. Docs (#3882) -
The docs site has a new responsive design: rebuilt on Astro and Starlight while preserving public routes, anchors, and crawler URLs; generated reference pages remain synchronized. (#3866)
Internal
-
Library API rework (Breaking library API):
BranchDiffSpecgainedworking_base, while remote-URL, shell-path, branch-push, approval, temporary-index, and repository helpers were removed. (#3833, #3853, #3865, #3866, #3875) -
Codex loads repository maintainer skills:
.agents/skillsnow exposes the canonical.claude/skillstree; checkouts without symlink support keep the existing limitation. (#3903)
Install worktrunk 0.75.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.75.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.75.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.75.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell installv0.74.0
2026年08月15日
Release Notes
Improved
-
A JSON bool or null nested in a
varsvalue renders asTrue,False, orNone: minijinja 2.22 adopted Jinja2's spelling for all three, so{{ vars.<key>.<field> }}into an object set bywt config state vars setprints those words. A var whose whole value istruestays a string. (Breaking: the old spellings weretrue,false, andnone.) (#3795) -
wt config approvals add --yesrecords approvals without a terminal: the command refused every non-interactive run, so a container or CI job could not pre-approve a project it had just cloned.--yesnow lists what it trusts and writes it, and a save it cannot make fails the command rather than warning and exiting 0. (#3819) -
remote_reponames the repository as the remote spells it:repois the directory on disk, so a renamed clone reports the new name.{{ remote_repo }}takes it from the primary remote's URL, available everywhereowneris and unset when no remote parses. (#3745, thanks @canac)
Fixed
-
wt remove --forcedeleted a live worktree moved onto another's registered path: the ownership gate asked which repository the occupant belonged to, which a sibling worktree of this repo satisfies, so the directory went to trash with its uncommitted work. The directory and the registration must now name each other, asgit worktree removerequires. Also reacheswt merge,wt step prune, and picker removal, and refuses a bare repository's path that--forcepreviously deleted. (#3808) -
wt step copy-ignoredskips a source file that vanishes mid-copy: the walk collects leaves, then copies them in parallel, so a file removed in between — a concurrent build rewritingtarget/, say — aborted the batch, under--forceafter deleting the destination. The source is stat'd before anything is removed now. (#3744, fixes #3743, thanks @dataders for reporting and fixing) -
wt step promoterefuses to delete a source it did not fully copy: across filesystems the move copies then deletes, and an entry with no copy — a socket or FIFO, or a file a concurrent build rewrote mid-walk — was deleted anyway. The copy now reports what it skipped, and a non-zero count fails the move. (#3820) -
An
ssh://remote's host comes from the authority, not a later path segment: the search for the userinfo@covered the whole remainder, sossh://git@attacker.example/owner/repo@github.com/org/repo.gitresolved togithub.comand borrowed that repository's approvals while git dialed the attacker. Every URL form now splits the authority first, so@in a namespace parses instead of being rejected. (#3813) -
WORKTRUNK_*env vars and--config-setoutrank a[projects."…"]entry: layer and specificity resolved separately, so a project entry answered for the global key whichever layer set it —WORKTRUNK_WORKTREE_PATHcould not override a project'sworktree-path. Both invocation layers now apply at either scope, and the help text gained a precedence section. (#3790, fixes #3788, thanks @jeremy0dell for reporting) -
Shell completions register under the
--cmdname:wt config shell init zsh --cmd wotrenamed the wrapper, but clap emitted the registration underwt. Bash and zsh completed nothing and regenerated the script on every TAB, PowerShell registered the wrong command, and zsh'scompdefhanded worktrunk's completer to the otherwt. (#3817, fixes #3816, thanks @sbarre for reporting)
Documentation
- The picker's
Alt-xnever forces: the keybinding table readRemove selected worktree/branch, which sent a reader looking for a force-remove that isn't there. (#3811, raised in #3809, thanks @josh-burton)
Internal
- Library API rework (Breaking library API):
GitError::WorktreePathNotOursgained anoccupant_registered_atfield, andWorkingTree::ensure_belongs_to_repois nowensure_holds_this_worktree. (#3808)
Install worktrunk 0.74.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.74.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.74.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.74.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell installv0.73.0
2026年08月13日
Release Notes
Fixed
-
wt removerefuses a registered path that now holds a different repository: A clone made at a stale registration's path was removed whole, uncommitted work included — and wt routed the user there, since the dirty gate read the occupant's files as this worktree's and offered--forceas the cure. Removal now compares the directory's git dir against this repository's;--forcewaives uncommitted changes, not the check for whose directory it is. (#3785) -
The Nix flake names three systems, dropping Intel macOS: nixpkgs drops
x86_64-darwinin 26.11, so the flake would stop evaluating there onceflake.lockadvances past it. (Breaking:nix build,nix run, and the home-manager module no longer resolve on Intel macOS. Release binaries are unaffected and still ship for it.) (#3776) -
NO_COLORand a redirected stream reach every surface: Escapes still landed in progressivewt list,-vdiagnostics, clap's error tips, and parts of stderr — the deprecation warning, thewt config updatepreview, the[y/N]prompt — so a redirected log carried escapes on one line and not the next. Color now resolves in one place. (#3777, #3771) -
A trailing separator no longer hides the branch: Git's ref format forbids a name ending in
/, and shell completion produces exactly that spelling whenever adocsdirectory sits beside the branch, sowt switch docs/never had a candidate. Selectors are normalized before resolution now —wt remove, merge targets,--base, and thepre-switchhook'stargetalike. (#3785) -
A path holding no worktree is reported as a path:
wt remove ../repo.ghostansweredNo branch named …and pointed at a listing it could never appear in;wt switchandwt mergeoffered--create <path>, which git rejects; andwt config state marker set --branch <path>silently stored state keyed by a path. (#3773, thanks @judewang for reporting) -
A failed GitLab project lookup carries
glab's own verdict:wt switch mr:<n>on a fork MR answered a 401, a 404, and a network failure with the sameFailed to fetch project 456, swallowing the output every otherremote_reffailure path forwards. A non-project response body now says so too. (#3799) -
A deleted-and-recreated worktree directory is reported, not leaked as git's exit 128: An
rm -rffollowed by amkdirpasses thePath::exists()probe, sowt switch,wt merge,wt step push, andwt removewalked into a raw git failure. All four now name the missing worktree and thegit worktree prunethat clears it. (#3785)
Internal
-
Library API rework (Breaking library API):
cargo-semver-checksfails four lints —GitErrorgainedWorktreeNotFoundAtPathandWorktreePathNotOurs, shifting seven later discriminants, itsDetachedHeadvariant gained aworktreefield,ResolvedWorktreegainedNoWorktreeAtPath, andRepository::resolve_worktree_namewas removed. (#3785, #3773) -
Tests and benches spawn a pinned
wtbinary: a concurrentcargoremoves and recreatestarget/debug/wtas it uplifts, so spawns hit a one-offNotFound; every spawn now routes through a hardlinked pin. (#3784, #3792) -
The nix devShell and
task setup-webinstall what the test suite drives: both were missingnushell,pwsh, andjq, which--features shell-integration-testsshells out to. (#3768, #3776) -
Benchmark fixtures reduced to two provenance-based bases:
Generatedbuilds a repository locally andImportedcopies the pinnedrust-lang/rustcorpus, with worktree, branch, and remote-ref populations as parameters. (#3761)
Install worktrunk 0.73.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/max-sixty/worktrunk/releases/download/v0.73.0/worktrunk-installer.sh | sh && wt config shell installInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/max-sixty/worktrunk/releases/download/v0.73.0/worktrunk-installer.ps1 | iex"; git-wt config shell installInstall prebuilt binaries via Homebrew
brew install worktrunk && wt config shell installDownload worktrunk 0.73.0
| File | Platform | Checksum |
|---|---|---|
| worktrunk-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| worktrunk-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| worktrunk-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| worktrunk-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| worktrunk-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Install via Cargo
cargo install worktrunk && wt config shell installInstall via Winget (Windows)
winget install max-sixty.worktrunk && git-wt config shell installInstall via AUR (Arch Linux)
paru worktrunk-bin && wt config shell install