Claude handles triage and drafts inside a session. It stops when you close the window. This book keeps it running while you're away.
Seven chapters, each one a working part of one machine:
- the complete Claude Code hook lifecycle
- a PreCompact baton that survives the context window getting cut
- scheduled runners with real mutual exclusion and kill switches
- folder watchers that handle race conditions and loop guards
- a self-verifying pipeline whose hard gates stop bad output cold
- the fail-open engineering that makes all of it safe to leave running overnight
- a build-and-deploy step that closes the loop from source to shipped artifact
These patterns come from systems I actually run. The runner skeletons are the real files — private paths swapped for generic ones, nothing else touched. Hook wiring is shown exactly as written.
This is for
advanced users who are comfortable in the Claude Code CLI.