goal-supervisor
Installation
SKILL.md
Goal Supervisor
When the claude process orchestrating a /goal dies, its subagents survive
but nothing drives the loop anymore. The state, however, lives on in the
session transcript — claude -p --resume <session-id> picks it back up with
full context. This skill launches supervise.sh (in the same
directory as this SKILL.md — resolve the absolute path from it) to exploit
that in a one_for_one supervision tree:
launchd/systemd/tmux (optional) ← keeps the supervisor alive
└── supervise.sh ← restart policy + backoff + stall detection
└── claude -p /goal ← worker, session pinned via --session-id
└── subagents ← survive on their own; the worker re-adopts state