ddflow_recover
Recover from interrupted sessions by inspecting expired leases, orphaned worktrees, and stuck items. Reports contents without deleting, enabling safe cleanup decisions at session start.
Instructions
Find work left behind by a crashed agent: expired leases, orphaned worktrees, items stuck running. Reports what each worktree contains and never deletes anything. Run this at the start of any session that follows an interruption.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | Restrict to one item. | |
| apply | No | Act on the advice: release the leases and remove the worktrees this reports as holding nothing. It only ever touches a tree MEASURED as having no uncommitted and no unmerged work — one that could not be measured is never removed, because 'could not tell' is not 'empty'. |