Documentation v1.0

Agentic Coding
with Claude Code

Master context engineering, persistent memory, MCP integration, hooks, and spec-driven design. Build reliable agentic workflows that go beyond simple prompting.

27
Sections
4
Strategies
5
Hook Events
11
Chapters

Everything You Need

From first agent to production orchestration โ€” patterns that work at scale.

๐Ÿงฌ

Context Engineering

Master the discipline that defines how modern AI coding agents actually work โ€” beyond prompts.

๐Ÿ”Œ

MCP Integration

Extend Claude Code with browser automation, databases, and APIs through the Model Context Protocol.

๐Ÿง 

Persistent Memory

Three-tier memory hierarchy โ€” project, user, and dynamic imports โ€” that persists across sessions.

๐Ÿช

Hooks & Automation

Trigger automated actions at every stage of the workflow โ€” formatting, testing, context injection.

๐Ÿ“‹

Spec-Driven Design

Write specifications before code. Reference them during implementation for consistent results.

โšก

Custom Skills

Create reusable slash commands that encode your team's workflows into repeatable automations.

Architecture

Four Strategies, One Framework

Context engineering isn't just prompting. It's a systematic approach to managing what information reaches the LLM and when. Claude Code implements four complementary strategies.

  • โ–ธWrite โ€” persistent memory across sessions via CLAUDE.md
  • โ–ธSelect โ€” intelligent retrieval of relevant context
  • โ–ธCompress โ€” summarize and trim to reduce cost and latency
  • โ–ธIsolate โ€” sub-agents with scoped, independent context
Learn Strategies โ†’
Context Engineering Framework
Write
CLAUDE.md
/memory
Select
Auto-discovery
Tool-based retrieval
Compress
/compact
/clear
Isolate
Sub-agents
Scoped context
๐Ÿช Hook System
PreToolUse ยท PostToolUse ยท UserPromptSubmit ยท Stop
๐Ÿ”Œ MCP Servers
Playwright ยท APIs ยท Databases ยท Custom tools

Ready to Build?

Start with the quickstart guide and have your first agent running in 5 minutes.

Start Learning โ†’

Before you continue

We use analytics cookies to understand how the documentation is used and improve the experience. Privacy Policy.