The power user's guide to shipping production software with Claude Code. Twelve chapters of operator-side discipline. PDF + EPUB + free updates. $39.
One Thursday in April, I asked Claude Code to merge a 6,000-line PR -- the cleanup of an old service path. Branch protection refused: required checks hadn't finished. The agent's response was to retry with --admin. The merge went through, into main, during a release window, with zero CI reports. I caught it forty minutes later.
From the agent's frame, the task succeeded -- the user asked, the merge happened. From the project's frame, an agent bypassed a 6,000-line safety policy unsupervised. Closing that gap is what this book is about.
The fix isn't a smarter prompt. It's a discipline overlay -- the rules, settings, hooks, skills, memory, and permissions that encode the failure modes you've actually hit. Twelve chapters of what shipping daily with Claude Code at Yaw Labs taught us we needed to write down.
PDF + EPUB. Free updates as the surface area moves. Secure checkout. Read Chapter 1 free.
Each of these is a thing Claude Code has actually done in production -- not a hypothetical, not a "what if." The book gives you the rule, hook, or settings change that catches the next one before it costs you forty minutes.
gh pr merge returns "policy prohibits"; the agent retries with --admin instead of stopping. The exact incident from Chapter 1's opener -- and the rule + hook that prevent the next one. Chapters 2, 3./loop waiting "five minutes" between checks. The cache-window arithmetic that makes 300 seconds the worst possible delay -- and what to use instead. Chapter 7.settings.json, permission allowlists, hooks. The runtime config most users never open until it costs them./loop dynamic mode, /schedule, the prompt-cache cliff and why "300s" is the worst delay.You ship code for a living. You have used Claude Code (or Cursor, or Cline) enough that "tool call" and "subagent" and "permission prompt" are words you use without thinking. You are somewhere between mid and senior on the IC ladder, or you are a tech lead deciding how your team should adopt the tool.
You do not need to be told what a CLAUDE.md is. You need to be told why your CLAUDE.md grew to 600 lines, why nobody on your team is reading it, and what to do about that.
Not for: vendor-neutral tool surveys, prompt-engineering tips, or first-workflow tutorials. The Anthropic docs do those better.
YawLabs/claude-code-in-production-companion repo - rule files, skill templates, hook scripts, annotated settings.json examples, and worked solutions for every chapter's Try-this section.Claude Code in Production is Volume II of the Yaw Labs Production Series - the operator's perspective on running an agent. Volume I, MCP in Production, is the protocol-and-server perspective on the tools your agent calls. Volume III, Semantic Search in Production, is the substrate the agent reaches into when it needs to find something. Volume IV, A2A in Production, is what happens when one agent becomes a fleet.
No. The discipline -- rule layering, hook-as-policy, scope, capacity arithmetic, the seven hazards -- ports across model generations. Specific model and effort references (Opus 4.7, xhigh as the coding default) are pinned to the writing date and called out as such; when the recommended tier moves, the chapter gets a revision and you get the update.
No. CLAUDE.md is one chapter of twelve. The rest is the harness (settings.json, hooks, permissions), subagents and parallelism, memory persistence, capacity and throttle recovery, scope discipline, the seven hazards, and what survives the move from solo to a team. If you only wanted CLAUDE.md tips, the Anthropic docs and a weekend would do it.
The book is tool-agnostic on tier. Examples mostly assume the Claude Code CLI, but the disciplines (rule layering, scope, capacity arithmetic, the seven hazards) apply equally to Cursor, Cline, or any other agentic harness you operate. Where a chapter relies on a Claude-Code-specific surface (skills, slash commands, the per-PTY config dir), it's flagged at the point of use.
You enter your GitHub username at checkout. The order webhook fires an invite to that user, adding you as a collaborator to the private companion repo. You should see an email from GitHub with the accept-invitation link within a few minutes. If you don't get the invite within an hour, email contact@yaw.sh with the order ID and the GitHub username you want invited.
Buy Claude Code in Production
Twelve chapters. PDF + EPUB. Free updates. $39 one-time, secure checkout.
Companion volumes: MCP in Production, Semantic Search in Production, and A2A in Production. Yaw Mode ships an opinionated overlay using many of the patterns the book teaches.