agy_cleanup
Removes a task's worktree and record while preserving its agy/<task_id> branch by default; set delete_branch to true only after merging or cherry-picking the work.
Instructions
Remove a task's worktree and its record. The agy/<task_id> branch is kept unless delete_branch is true, so merge or cherry-pick it first if you want to keep the work.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>"
},
"name": "agy_cleanup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | task_id returned by agy_task. | |
| delete_branch | No | Also delete the agy/<task_id> branch. Defaults to false. |