Mastering Claude Code
- The Complete Guide to Agentic Software Development in 2026
- Table of Contents
Introduction: The Engineer Who No Longer Types
- What This Book Will Teach You
- Who This Book Is For
- How to Use This Book
- The Evidence Base
- A Note on What This Book Does Not Cover
- The Central Thesis
- The Landscape in 2026
Chapter 1: The Agentic Revolution in Software Development
- From Autocomplete to Agents: A Five-Year Evolution
- What Makes Claude Code Different: Terminal-First Agentic Architecture
- Boris Cherny’s Workflow: How the Creator Actually Uses Claude Code
- The Division of Labor: Human as Orchestrator, Agent as Builder
- The Landscape of AI Coding Agents in 2026
- Why Now? Market Adoption and the Shift to Agentic Workflows
- Critical Analysis: Trade-offs and Limitations of Agentic Tools
Chapter 2: Anatomy of Claude Code
- The Agentic Loop: Gather, Act, Verify
- Models Behind the Scenes: Sonnet, Opus, Fable, and Model Selection
- Token Management Math: Understanding Your Spend
- Built-in Tools: File Operations, Search, Execution, Web, Code Intelligence
- The .claude Directory: Configuration, CLAUDE.md, and Memory
- Context Windows: How They Fill, Auto-compaction, and Token Management
Chapter 3: Getting Started and Setting Up
- Installation Across Platforms: macOS, Linux, Windows, WSL, Homebrew, WinGet
- Authentication and Account Setup
- Your First Session: Walkthrough from Zero to Code
- Permission Modes: Default, Auto-accept, Plan, and Auto Mode
- IDE Integrations: VS Code, JetBrains, Remote Control, Web Interface
Chapter 4: Prompt Engineering for Claude Code
- The Art of the Claude Prompt: Specificity, Context, and Verification
- CLAUDE.md as a Persistent Instruction Layer
- Few-shot Examples, XML Structuring, and Role Assignment
- The “Interview Me” Pattern: Letting Claude Ask Questions Before Coding
- Prompt Chaining and State Management Across Sessions
- Common Failure Patterns and How to Avoid Them
- Adversarial Testing: Stress-Testing Claude Code’s Output
Chapter 5: Real-world Development Workflows
- Building a Full-stack Application from Scratch (Hands-on Project)
- Refactoring Legacy Codebases: Stripe’s Scala-to-Java Migration Case Study
- Refactoring Legacy Codebases: Stripe’s Scala-to-Java Migration Case Study
- Debugging Complex Bugs: A Step-by-step Walkthrough
- Code Migration at Scale: Wiz’s Python-to-Go Migration
- Onboarding to an Unfamiliar Codebase
Chapter 6: Testing, Verification, and Quality Assurance
- Giving Claude Something to Verify Against
- Test Generation and Self-healing Tests
- Outcomes: Automated Rubric Grading
- The Writer/Reviewer Pattern with Parallel Sessions
- Code Review Skills and Adversarial Review Strategies
- CI/CD Integration: GitHub Actions, GitLab CI, and Automated PRs
Chapter 7: Automation and Scaling
- Headless Mode: Non-interactive Claude Code for Scripts and Pipelines
- Fan-out Patterns: Processing Thousands of Files in Parallel
- Claude Code Routines: Scheduled Tasks and Event-driven Workflows
- Pre-commit Hooks, Linting, and Automated Code Quality Gates
- Cost Management and Token Budgeting at Scale
Chapter 8: Advanced Agentic Patterns
- Subagents: Delegating Investigation and Verification
- Skills: Creating Reusable Domain Knowledge and Workflows
- MCP Servers: Connecting to External Systems (GitHub, Databases, Jira)
- Hooks: Automated Policy Enforcement Across Sessions
- Multi-agent Orchestration: Lead Agents, Specialist Sub-agents, Shared File Systems
- Claude Managed Agents and the “Dreaming” Feature
Chapter 9: Deployment and Production Readiness
- Deploying Claude Code-built Applications to Cloud Platforms
- Environment Configuration and Secret Management
- Monitoring and Observability: OpenTelemetry, Usage Analytics, Token Tracking
- Performance Optimization: Prompt Caching, Model Selection, Context Efficiency
- From Prototype to Production: A Case Study with Rakuten
Chapter 10: Team Collaboration and Enterprise Deployment
- Claude Code at Scale: Stripe’s 1,370-engineer Deployment
- Managed Settings, Enterprise Security, and Compliance
- Shared CLAUDE.md, Skill Libraries, and Plugin Distribution
- Role-based Access, SSO, and Governance Policies
- Integrating Claude Code into Existing Team Workflows
Chapter 11: Security Deep Dive
- Documented Vulnerabilities: CVE-2025-59536 and CVE-2026-21852
- Prompt Injection and Malicious File Content
- Secrets Exposure in Context Loading
- The —dangerously-skip-permissions Flag: When and How to Use It Safely
- Sandboxing: Docker, Dev Containers, and VM Isolation
- Enterprise Security Architecture: MDM, LLM Gateways, Agent Monitoring
Chapter 12: The Future of Agentic Coding
- Anthropic’s Roadmap: Dreaming, Outcomes, Multi-agent Orchestration
- The Research on Expertise: Why Domain Knowledge Beats Coding Background
- Eight Trends Shaping Agentic Coding in 2026 and Beyond
- The Changing Role of Software Engineers
- What This Means for the Future of Work and Knowledge Economy
Chapter 13: Conclusion: Becoming an Agentic Engineer
- Synthesizing the Journey from Novice to Master
- The New Mental Models of Software Development
- Building Your Claude Code Practice: A Personal Action Plan
- Looking Forward: Where the Next Five Years Take Us