All apps/Worktrunk

Worktrunk

worktrunk

A CLI for managing Git worktrees with shell integration and lifecycle hooks.

Runs as wt|macOS, Linux, Windows|worktrunk.dev

Command form

ai-draft · 4 tasks · 17 fields

Switch to or create a worktree, list worktrees, or remove one. Hooks, the interactive picker, PR/MR shortcuts and config subcommands are left to the command line.

Opens the form; the finished command lands at your prompt, unrun
otty gui worktrunk

wt switch

Switch or create a worktree

Go to the worktree for a branch, optionally creating the branch from a base.

Switch or create a worktreeExample values, fixed in this page — nothing here reaches a terminal
Basic
Branch*
string
TasksEach one presets the form for one job
Switch to a branch
branch
Create a branch and worktree
branchcreatebaseno_hooks
ParametersOnly these flags are editable in the form
Branch
Branch name or worktree path. Shortcuts: ^ (default branch), - (previous), @ (current).
string · positional 0
Create new branch
boolean
--create-c
Base branch
Branch to start the new branch from; defaults to the default branch.
string
--base-b
Run program after switch
string
--execute-x
Do not change directory
boolean
--no-cd
Skip hooks
boolean
--no-hooks
Remove stale path at target
boolean
--clobber

wt list

List worktrees

Show worktrees and their status.

List worktreesExample values, fixed in this page — nothing here reaches a terminal
Basic
Include branches without worktrees
--branches
Include remote branches
--remotes
Show CI status and summaries
--full
Output format
2 choicesenum
TasksEach one presets the form for one job
List worktrees
branchesremotesfullformat
ParametersOnly these flags are editable in the form
Output format
enum
--formattablejson
Include branches without worktrees
boolean
--branches
Include remote branches
boolean
--remotes
Show CI status and summaries
Also queries the forge over the network.
boolean
--full

wt remove

Remove a worktree

Remove worktrees and delete their branches when merged. Defaults to the current worktree.

Remove a worktreeExample values, fixed in this page — nothing here reaches a terminal
Basic
Branches or worktree paths
string
Keep the branch
--no-delete-branch
Wait for removal
--foreground
TasksEach one presets the form for one job
Remove worktrees
branchesno_delete_branchforeground
ParametersOnly these flags are editable in the form
Branches or worktree paths
Leave empty to remove the current worktree.
string · positional 0 · repeatable
Keep the branch
boolean
--no-delete-branch
Delete unmerged branches
boolean
--force-delete-D
Force removal of a dirty worktree
boolean
--force-f
Wait for removal
boolean
--foreground
Skip hooks
boolean
--no-hooks
SourcesEvery flag above is checked against these
help
Usage: wt switch [OPTIONS] [BRANCH] [-- <EXECUTE_ARGS>...] [BRANCH] Branch, worktree path, shortcut, or PR/MR URL -c, --create Create a new branch -b, --base <BASE> Base branch -x, --execute <EXECUTE> Program to run after switch --clobber Remove stale paths at target --no-cd Skip directory change…
help2026-10-27

worktrunk.dev

help
Usage: wt list [OPTIONS] --format <FORMAT> Output format [default: table] [possible values: table, json] --branches Include branches without worktrees --remotes Include remote branches --full Show CI status and LLM summaries
help2026-10-27

worktrunk.dev

help
Usage: wt remove [OPTIONS] [BRANCHES]... [BRANCHES]... Branch name or worktree path [default: current] --no-delete-branch Keep branch after removal -D, --force-delete Delete unmerged branches --foreground Run removal in foreground (block until complete) -f, --force Force worktree removal --no-hooks Skip hooks
help2026-10-27

worktrunk.dev

Before it fills your prompt, Otty checks the installed wt against its version. A form that does not match your version is not offered.