Jeden/Docs

CLI command

jeden worktree

Inspect or safely clear stale Git worktrees owned by Jeden's task runtime.

Exact invocation#

Shell
jeden worktree [list|clear] [--dry-run] [--json] [--cwd path]

Inputs and options#

  • No action defaults to list.
  • --dry-run previews clear; --json selects structured rows and --cwd selects 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.