Covers the Claude Code driver: mining the agent's stream for text, tool names, session id, usage and quota telemetry; invoking it with the right permissions, framing, model and extra tool servers; resuming a conversation and recovering when it no longer exists; and failing a turn that exited abnormally.

## Before writing SPEC.md files

Read https://raw.githubusercontent.com/brillout/sdd/refs/heads/main/sdd.md
