Learn Claude Code
19 chapters across 4 stages, from the minimal loop to a multi-agent platform and external capability bus
- s01The Agent Loop
An agent is just a loop: send messages, execute tools, feed results back, repeat.
- s02Tool Use
Adding a tool means adding one handler. The loop never changes.
- s03TodoWrite
A visible plan keeps the agent on track when tasks get complex.
- s04Subagent
A subagent is mainly a context boundary, not a process trick.
- s05Skills
Discover cheaply, load deeply -- only when needed.
- s06Context Compact
Compaction isn't deleting history -- it's relocating detail so the agent can keep working.
- s07Permission System
Safety is a pipeline, not a boolean: deny, check mode, allow, then ask.
- s08Hook System
The loop owns control flow; hooks only observe, block, or annotate at named moments.
- s09Memory System
Memory gives direction; current observation gives truth.
- s10System Prompt
The model sees a constructed input pipeline, not one giant static string.
- s11Error Recovery
Most failures aren't true task failure -- they're signals to try a different path.
- s15Agent Teams
Teammates persist beyond one prompt, have identity, and coordinate through durable channels.
- s16Team Protocols
A protocol request is a structured message with an ID; the response must reference the same ID.
- s17Autonomous Agents
Autonomy is a bounded mechanism -- idle, scan, claim, resume -- not magic.
- s18Worktree Isolation
Tasks answer what; worktrees answer where. Keep them separate.
- s19MCP & Plugin
External capabilities join the same routing, permission, and result-append path as native tools.