01Chapter 1: How an agent acts: the loop and its tool callsAssume you can run shell commands, read JSON, and write basic Python. You should also understand that an AI coding agent can call tools such as a shell, file editor, or test runner.2 min read
02Chapter 2: Scoping a hook with matchersAssume you know basic shell commands, JSON, and Python. Also assume the agent sends a tool-call event to the hook as JSON on standard input.1 min read
03Chapter 3: Failing closed when the hook breaksAssume you know basic Python, JSON, shell commands, and how an agent sends tool calls to hooks. This chapter focuses on safe failure, local testing, and the limits of hooks.1 min read