watchdog
Reviews agent sessions and environments, ranks findings by severity, and applies approved fixes via dry-run with reversible quarantine.
Instructions
Session review + environment optimization. action='dig' analyzes a session, a window of sessions, or the machine environment and returns severity-ranked findings with evidence and proposals (digests for agent reasoning, persisted to the vault as watchdog notes). action='fix' applies approved repairs — dry-run by default; file reclamation is quarantined and reversible. action='status' lists past digs and pending findings.
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": {
"action": "<action>"
},
"name": "watchdog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | Restrict to a harness: opencode | claude-code | codex | |
| apply | No | action=fix: actually perform changes (default false = dry-run) | |
| count | No | Max sessions in window (default 20) | |
| scope | No | dig scope (default session) | |
| since | No | Window start for scope=window: 7d, 24h, or ISO date | |
| action | Yes | watchdog action | |
| confirm | No | Explicit user authorization for all_projects (default false) | |
| dismiss | No | action=fix: mark dismissed instead of applied | |
| persist | No | Persist the dig report to the vault (default true) | |
| project | No | Project slug (auto-detected when omitted) | |
| categories | No | Finding categories for action=fix; include 'leaked-tmp' to reclaim leaked .tmp files | |
| session_id | No | Session id, optionally tool:id (default: latest session in this project) | |
| finding_ids | No | Finding ids for action=fix | |
| report_path | No | action=fix: target a specific stored report path | |
| all_projects | No | Ignore the current project filter; review sessions across all projects | |
| workspace_path | No | Absolute thread workspace directory; must map to this project. Omit only when the server cwd is the thread workspace. | |
| include_prompts | No | Include private prompt text in digests only with user authorization (default false) |