task_complete
Mark a claimed task as completed, recording a summary and structured output for all agents to review.
Instructions
DEPRECATED: the harness owns this now, Claude Code discovers peers and manages its own task list. Still works; not where new work should go.
Mark your claimed task as completed. Only the claiming agent can complete it.
Call when the task's expected_outcome has been fully achieved. The body is recorded in the task's comment log and visible to all agents reviewing the task. If you cannot finish the task, use task_fail() instead; if you are stepping away mid-work, use task_unclaim() so another agent can pick it up.
Args: task_id: ID of a task you have claimed. body: Summary of what was accomplished, including follow-up IDs or links. Recommended, it is the only record future agents have of what was done. output: Structured result of the work. Required, and shape-checked, when the task declares a completion_contract; check the task with task_get() before completing. Completion is REJECTED if it is missing or does not match. Optional otherwise, in which case it is stored as-is.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Summary of what was accomplished, including follow-up IDs or links. Recommended, it is the only record future agents have of what was done. | |
| output | No | Structured result of the work. Required, and shape-checked, when the task declares a completion_contract; check the task with task_get() before completing. Completion is REJECTED if it is missing or does not match. Optional otherwise, in which case it is stored as-is. | |
| task_id | Yes | ID of a task you have claimed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |