rt worktree
rt › worktree
Worktree lifecycle (provision/dispose/list) + worktree-wide operations
Usage
rt worktree
Subcommands
| Command | Description |
|---|---|
provision | Claim a worktree for a ticket or branch (from the on-deck pool, or freshly created) |
hook | Claude Code worktree hook: install, remove, or inspect the WorktreeCreate/WorktreeRemove wiring |
create | Create a fresh worktree (optionally straight into the on-deck pool) |
dispose | Dispose a worktree (no target + TTY → picker) |
restore | Restore a disposed worktree from its retained trash entry (no target + TTY → picker) |
ready-approve | Approve a repo's team-authored ready shell before it runs (no repo + TTY → picker) |
list | List worktrees |
freshen | Freshen worktrees (no arg + TTY → picker over freshenable trees) |
await-ready | Wait for a claimed tree's background ready steps to settle (no tree + TTY → picker) |
adopt | One-shot migration: adopt an unmanaged repo's worktrees into the registry |
each | Run a command in each worktree (--all |