agent_task_upsert
Creates or updates one checklist item in a session's task tree, enabling tracking of agent work and verification that each step was completed.
Instructions
Create or update one checklist item in a session's task tree. Omit task_id to create; pass task_id to update. verify_cmd names HOW the item is proven done (the agent must run it before ticking). Use parent_task_id for subtasks. This productizes the vibe goal-file checklist. Trigger: call at the START of a tracked piece of work to record a checklist item (session-scoped — for a task meant to persist across sessions use goal_add on the board instead). Only call when the work is actually being tracked; ignore unrelated casual chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Task title (required when creating) | |
| status | No | Task status | |
| task_id | No | Existing task id to update (omit to create) | |
| context_id | No | Optional id of the durable context this task produced | |
| session_id | Yes | Session that owns this task | |
| verify_cmd | No | Command/observation that proves this task done | |
| order_index | No | Ordering within the session | |
| goal_node_id | No | Optional goal-graph node this task rolls up to (links session work to the project goal) | |
| parent_task_id | No | Parent task id for a subtask |