watchdog
Destructive
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…
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.
Input Schema
TableJSON 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 | |
| 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 |