CLI command
jeden worktree
Inspect or safely clear stale Git worktrees owned by Jeden's task runtime.
Exact invocation#
jeden worktree [list|clear] [--dry-run] [--json] [--cwd path]Inputs and options#
- No action defaults to
list. --dry-runpreviewsclear;--jsonselects structured rows and--cwdselects the repository.
Output and state effect#
Lists task-record-correlated managed worktrees, or removes only stale worktrees that pass canonical managed-root, checkout, and repository-top safety checks.
Refusals and boundaries#
- Unexpected arguments are refused with
usage: jeden worktree [list|clear] [--dry-run] [--json]. - Clear skips the current checkout, repository root, live/unknown work, and any path outside Jeden-managed workspace roots; it reports the reason instead of removing it.