Learn Claude Code

Learning Path

s01 to s11: Progressive Agent Design

Layer Legend

Tools & Execution
Planning & Coordination
Memory Management
Concurrency
Collaboration
01
s01Single-tool agent loop

The Agent LoopBash is All You Need

81 lines of code1 tools

The entire agent is a while loop + one tool

Learn More
02
s02Tool dispatch map

ToolsThe Loop Didn't Change

115 lines of code4 tools

Adding tools means adding handlers, the loop stays the same

Learn More
03
s03TodoManager + nag reminder

TodoWritePlan Before You Act

168 lines of code5 tools

Visible plans improve task completion and accountability

Learn More
04
s04Subagent spawn with isolated messages[]

SubagentsFresh Context via Task Tool

141 lines of code5 tools

Process isolation = context isolation

Learn More
05
s05SkillLoader + two-layer injection

SkillsSKILL.md + tool_result Injection

172 lines of code5 tools

Skills inject via tool_result, not system prompt

Learn More
06
s06micro-compact + auto-compact + archival

CompactStrategic Forgetting

195 lines of code5 tools

Forgetting old context enables infinite-length sessions

Learn More
07
s07TaskManager with file-based state + dependency graph

TasksPersistent CRUD with Dependencies

197 lines of code8 tools

File-based state survives context compression

Learn More
08
s08BackgroundManager + notification queue

Background TasksFire and Forget

188 lines of code6 tools

Non-blocking daemon threads + notification queue

Learn More
09
s09TeammateManager + file-based mailbox

Agent TeamsTeammates + Mailboxes

343 lines of code10 tools

Persistent teammates with async mailbox inboxes

Learn More
10
s10request_id correlation for two protocols

Team ProtocolsShutdown + Plan Approval

405 lines of code12 tools

Same request-response pattern, two applications

Learn More
11
s11Task board polling + timeout-based self-governance

Autonomous AgentsIdle Cycle + Auto-Claim

483 lines of code14 tools

Polling + timeout makes teammates self-organizing

Learn More

LOC Growth

s01
81
s02
115
s03
168
s04
141
s05
172
s06
195
s07
197
s08
188
s09
343
s10
405
s11
483