List
rm_worktree_listList all git worktrees across workspace repositories, showing each session's branch and path so you can track concurrent development lanes without disturbing in-flight work.
Instructions
List (rm_worktree). Manage git worktrees for concurrent multi-session development (CONCEPT:RM-WORKTREE).
Each session works a repo in its own worktree on its own branch under
<WORKTREE_ROOT>/<repo>/<branch> (shared .git, no re-clone),
leaving the canonical checkout on its default branch so a working-tree
reset never disturbs in-flight session work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base branch to fork from / sync against. | main |
| into | No | Target branch for 'merge', or the reset target for 'reset_branch'. | main |
| path | No | Workspace root override. | |
| repo | No | Repo basename (e.g. 'epistemic-graph') or absolute path. Omit for 'list'/'prune' across all repos. | |
| adopt | No | For 'add': move the canonical checkout's uncommitted WIP onto the new branch via a private ref (never the shared refs/stash stack). | |
| force | No | For 'remove': override git's own dirty-tree refusal once lane occupancy has already cleared (never bypasses occupancy itself, D-CDX-15). | |
| repos | No | For 'bulk_add': comma-separated repo basenames (default: every workspace repo). | |
| branch | No | Worktree branch name (each session uses a distinct branch). | |
| strategy | No | For 'sync': 'rebase' or 'merge'. | rebase |
| stale_days | No | For 'audit': an unmerged worktree quiet for longer than this many days is classified 'stale' (review) rather than 'active'. | |
| prune_merged | No | For 'audit': DESTRUCTIVE. After classifying, remove every 'merged' worktree (and delete its branch) plus prune 'dangling' admin pointers. Never touches 'active'/'stale' work or orphaned directories. | |
| delete_branch | No | For 'remove': also delete the branch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||