process_cleanup
Dry-run inspect and plan cleanup of leftover subprocesses from AI coding agents. Real termination requires explicit confirm token and is only available with trusted config.
Instructions
Dry-run selected owned_current_session candidates. In v0.7.x public CLI/MCP, real termination remains non-operable because evidence inputs are not exposed; dry_run=false stays blocked by safety gates. Agents must not call dry_run=false autonomously.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Defaults to true. When true, kills nothing. A live confirm token is not returned unless real cleanup is enabled by trusted config or request_confirm_token=true is explicit. | |
| confirm_token | No | Token returned by a previous dry-run cleanup plan. | |
| request_confirm_token | No | Explicitly request a live confirm token during dry-run. Agents should leave this false unless a human asks for manual cleanup. | |
| scope | No | ||
| pids | No | ||
| min_age_minutes | No | ||
| signal | No | ||
| force | No | After SIGTERM, optionally escalate to SIGKILL if still alive. | |
| include_process_tree | No | Reserved; ignored unless tree-kill is enabled in config. | |
| include_command_line | No |