Continuity system: autopilot + context-budget relay
Keeps a long AI task moving without James typing 'yes go ahead' at every step, and passes the work to a fresh AI before the old one gets confused.
how it works
Stop hook tails the transcript: blocks the stop with 'next: X' while todos remain (capped hops, reset by continuity_reset.py when James types), triggers /handoff past a soft token budget at a green boundary or a hard budget regardless; relay_spawn.sh starts a new claude in tmux seeded with /pickup; /autopilot toggles via autopilot.sh. Fails open.
Agent hook: A script that runs automatically at a moment in an AI session (before a command, when it stops) to steer or guard it.
The code for this one lives in a private repo. This page explains the idea so you can build your own.