Your AI coding assistant lives in a chat window. It should live in your shell.
Claude Code runs in the terminal, which means it obeys the rules every other command-line program it reads standard input, writes standard output, returns exit codes, and pipes into anything else on your machine. That single property is the difference between a tool you visit and a tool you build with.
This book takes you from installation to a repository that checks its own work. You'll write a project memory file that teaches Claude your conventions once instead of every session, hooks that run your formatter after every edit and refuse to touch your lockfile, a custom command that runs your tests and drafts your commit message, a git hook that blocks a bad push, and a CI workflow that reviews every pull request with a spend cap. Every chapter ends with something you actually run.
Written for developers who know git and a shell and nothing at all about AI agents.
What you'll
Install, authenticate, and diagnose Claude Code on macOS, Linux, and WindowsThe agentic loop, tool system, and context window — the model that makes everything else obviousPermission modes and rules that eliminate prompts without weakening safetyProject memory with CLAUDE.md and path-scoped rules filesNon-interactive piping, JSON output, schemas, and exit codesCustom skills and slash commands that package your repeatable workflowsHooks that enforce rules deterministically, not "usually"MCP servers for connecting your error tracker, database, and issue boardSubagents, git worktrees, and background sessions for parallel workComplete CI/CD pipelines for GitHub Actions and GitLab