update_task
Update task text in PLAN.md while preserving done status. Apply single or batch edits by task name or position.
Instructions
Rewrite task text, preserving done state. One task: text + index/task. Several: changes[{text, index|task, expect?}].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | One task (exact, else unique substring). One addressing mode. | |
| text | No | New text for a single task. | |
| 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. | |
| changes | No | Several rewrites in one write. Do not mix with the singular text + index/task shape. | |
| 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. |