kill

Cancel a running operation. Only active operations (PENDING, ASSIGNED, EXECUTING) can be cancelled.

Examples

# Cancel a specific operation
contree kill 3f2a7b...

# Cancel all active operations
contree kill --all

Help output

$ contree kill --help usage: contree kill [-h] [-a] [uuid] Cancel a running operation. Sends a DELETE request to stop the specified operation. Use --all to cancel every active operation (PENDING, ASSIGNED, EXECUTING) in one go. positional arguments:   uuid        Operation UUID options:   -h, --help  show this help message and exit   -a, --all   Cancel all active operations for coding agents:   mutating command   use UUID to cancel one operation, or --all to cancel all active ones agent note:   Before using this command in an automated workflow, read:     contree agent

Behavior

The CLI sends a DELETE request to the API. The operation transitions to CANCELLED status. If the sandbox is already running, execution is interrupted.

--all finds and cancels every active operation in the project.

See also

  • ps – list operations to find UUIDs

  • run – Ctrl-C during contree run also cancels the operation