discard_worktree
Safely discard an abandoned git worktree by removing it and its branch, then archiving the status as discarded. Ideal for rejected or abandoned subgoals.
Instructions
v1.0.0: Discard an isolated git worktree safely. Removes the worktree (git worktree remove --force), deletes its branch, and archives status as 'discarded'. Use when a subgoal is rejected or abandoned. All paths pass guardWorkspacePath + sensitiveGuard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Main workspace repository path inside workspaceRoot. | |
| worktree_id | Yes | Worktree ID (wt_...) to discard. |