An Engineering Reference for Agentic Development
Chapter 1: What Is Claude Code
- Beyond Chat: From Copilot to Agentic Coding
- The Claude Code Architecture
- Models, Tokens, and Capability Boundaries
- The Developer–Agent Relationship
- What Claude Code Is Not
Chapter 2: Installation and Environment Setup
- Prerequisites and System Requirements
- Installation Methods: Native, Package Managers, npm
- Authentication: OAuth, API Keys, and Cloud Providers
- Verifying Installation and Diagnostics
- Environment Considerations: Containers, WSL, Remote Systems
Chapter 3: CLI Usage and Core Commands
- Interactive Sessions and Terminal Integration
- Non-Interactive Mode: One-Shot Execution and Scripting
- Essential Flags: Model, Effort, Permission Mode, and Bare Mode
- System Prompts and Customization
- Continuation, History, and Session Management
Chapter 4: Configuration and Settings
- Settings Files and Precedence
- Permissions: Allow, Ask, Deny Rules
- Environment Variables and Process Configuration
- Model and Effort Configuration
- Debugging Configuration and Troubleshooting
Chapter 5: CLAUDE.md and Project Instructions
- CLAUDE.md Fundamentals and Scope
- Writing Effective Project Instructions
- Modular Rules and the .claude/rules Directory
- Auto Memory and Persistent Context
- Instructions Hierarchy and Conflict Resolution
Chapter 6: Tools and Capabilities
- The Tool Architecture and Permission Model
- Filesystem Tools: Read, Write, Edit, Glob, Grep
- Shell Tools: Bash, PowerShell, and Command Execution
- Web Tools: Search and Fetch
- Agent Tools and Specialized Capabilities
Chapter 7: Agents and Subagents
- Agent Spawning and the Task Tool
- Subagent Configuration and Isolation
- Parallel and Sequential Workflows
- Dynamic Workflows at Scale
- When Multi-Agent Overhead Is Worth It
Chapter 8: MCP and External Integrations
- Understanding Model Context Protocol
- Adding and Managing MCP Servers
- Common Integrations: GitHub, Databases, APIs
- Security and Credential Management for MCP
- Build Your Own MCP Server
Chapter 9: Skills, Plugins, and Custom Commands
- Skills: Structure and Invocation
- Custom Slash Commands
- Plugins and the Marketplace Ecosystem
- Skill Evaluation and Testing
Chapter 10: Context Engineering
- Context Windows and Token Economics
- Information Prioritization Strategies
- Repository Discovery and Codebase Indexing
- Persistent vs. Transient Context
- Stale Context and Its Dangers
Chapter 11: Prompt Design and Task Specification
- Writing Specifications Claude Code Can Execute
- Task Decomposition and Batching
- Constraints and Guardrails
- Verification Criteria and Acceptance Tests
- Avoiding Ambiguity and Scope Creep
Chapter 12: Implementation Workflows
- Feature Implementation from Requirements
- Iterative Development and Feedback Loops
- Refactoring with Confidence
- Debugging and Incident Investigation
- Handling Partial or Incorrect Implementations
Chapter 13: Testing and Quality Assurance
- Test-Driven Development with Claude Code
- Generating Tests: Unit, Integration, and E2E
- Test Quality and Coverage
- Static Analysis and Linting
- Performance and Security Testing
Chapter 14: Git Workflows and Code Review
- Branch Strategies and Claude Code
- Commits and Conventional Messages
- Pull Request Workflows
- AI-Assisted Code Review
- Maintaining Review Quality
Chapter 15: CI/CD and Automation
- Claude Code GitHub Actions Setup
- Automated PR Review and Response
- CI Integration Patterns
- Automation Safety and Rate Limits
- Self-Hosted Runners and On-Premise Options
Chapter 16: Security and Governance
- Permission Model and Least Privilege
- Sandboxing and Execution Isolation
- Secrets, Credentials, and API Keys
- Prompt Injection and Adversarial Attacks
- Supply Chain and Dependency Security
- Data Privacy and Compliance
- Security Summary Checklist
Chapter 17: Enterprise and Team Adoption
- Managed Settings and Policy Enforcement
- Team Conventions and Shared Instructions
- Onboarding and Training
- Collaboration Patterns
- Measuring Adoption and Effectiveness
Chapter 18: Advanced Engineering Patterns
- Working in Monorepos
- Polyglot and Mixed-Technology Codebases
- Legacy Code Modernization
- Large-Scale Architectural Refactoring
- Observability and Production Systems
Chapter 19: Case Studies and Workflows
- Building a REST API Service from Scratch
- Adding Authentication to an Existing Application
- Migrating a Legacy Module to Modern Architecture
- Investigating and Fixing a Production Incident
Chapter 20: Trade-offs, Limitations, and the Path Forward
- Where Claude Code Excels
- Where It Is Unreliable
- Tasks That Demand Human Judgment
- Cost, Complexity, and Long-Term Maintenance
- The Future of Agentic Development
- Honest Assessment
