defer_task
Move selected tasks to the project backlog in one write. Specify tasks by exact text or index, add a shared reason or agent tag, and clear them from active work without editing PLAN.md directly.
Instructions
Move one or many tasks to the backlog in one write. For several, pass indexes or tasks. Shared reason/agent apply to every item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | One task (exact, else unique substring). One addressing mode. | |
| agent | No | Optional agent id tag written as [agent: id] on touched lines. | |
| index | No | One 1-based position. One addressing mode. | |
| tasks | No | Several task texts (exact, else unique substring). One write. One addressing mode. | |
| expect | No | Optional guard for a single task: current text must match or the edit is refused. Ignored/rejected with tasks/indexes. Agent tags are ignored in the comparison. | |
| reason | No | Optional why, appended to the backlog entry. | |
| indexes | No | Several 1-based positions. Prefer this after get_iteration. One write. One addressing mode. | |
| version | Yes | ||
| plan_path | No | Optional path to PLAN.md (relative to cwd or absolute). Default: walk up from cwd to nearest PLAN.md. |