← ClaudeAtlas

ilk-watchdoglisted

Auto-restart ilk-loop when it stops for whitelist-classified reasons (timeout-bound, max-iter-bound, api-flaky, interrupted) and BLOCK with a loud banner for blacklist reasons (stuck-no-progress, api-blocked, budget-exhausted, local-checks-stuck). Runs in a detached desktop window independent of the host agent and ilk itself, polls the ilk PID file every N minutes, and uses ilk-feedback's classification to decide whether to relaunch. Works across Cursor, Claude Code, and Codex. Use when the user says "watchdog ilk", "守着 ilk", "auto-resume ilk", "/ilk-watch", "babysit ilk", "monitor ilk", "restart ilk if it dies", "看着 ilk", "ilk 自动续跑", or wants ilk to keep running unattended overnight.
inluck-net/ilk-skills · ★ 0 · AI & Automation · score 66
Install: claude install-skill inluck-net/ilk-skills
# ilk-watchdog — auto-resume layer for ilk-loop A passive babysitter for a ilk-loop run. Detached desktop window, polls the launcher's PID file every few minutes, and when ilk stops: 1. Asks `loop_status.py` whether all sub-plans are shipped. 2. If not, asks `ilk-feedback`'s `collect.py` to classify the run. **The watchdog passes the sentinel's `run_id` via `--run-id`** so collect.py classifies the correct run (not the lexicographically newest one, which may be stale). If the run has no JSONL records, collect.py emits `no-evidence` instead of silently falling back. 3. If classification is whitelist → relaunches via `ilk-launcher`'s `launch.ps1` with the postmortem's recommended params. 4. If classification is blacklist → prints a loud BLOCKED banner and exits so the human is forced to triage. 5. If classification is terminal (`shipped-unverified`, `no-evidence`) → prints a yellow banner and exits cleanly without relaunching. Watchdog never modifies plans, never kills ilk, never edits SKILL.md. It only watches PID files, reads postmortems, and shells out to the launcher. ## Architecture `<skill-root>` below means the installed skills base directory — `~/.cursor/skills/` (Cursor), `~/.claude/skills/` (Claude Code), or `~/.codex/skills/` (Codex) — depending on the host agent. ``` <skill-root>/ilk-watchdog/ SKILL.md ← this file scripts/ watchdog.ps1 ← per-project polling loop; -Detach flag spawns its own desktop windo