kilo_task_cancel
Stops a running background coding task immediately by sending SIGTERM, escalating to SIGKILL if needed. Use when a delegation is stuck, looping, off-spec, or wasting cost.
Instructions
STOP a running background kilo_implement task: this is the direct intervention lever, for when kilo_task_progress (or kilo_workspace_status) shows a delegation going wrong — off-spec changes, a stuck/looping process, burning cost with no progress — and you don't want to wait for the timeout.
Sends SIGTERM to the tracked process (and attempts an HTTP abort if
connected to a running kilo serve instance), escalating to SIGKILL after a
couple seconds if it hasn't exited. This is a hard stop — Kilo does not get
a chance to write its Final Report. Any partial file changes it already
made are left as-is; review with kilo_workspace_status and decide whether to
keep, revert, or continue them with a fresh kilo_implement call using
continue_session_id.
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": "kilo_task_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why you're cancelling — recorded on the task so kilo_task_result explains what happened. | |
| task_id | Yes | The task_id returned by kilo_implement when launched with background=true (the default). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |