Learn Claude Code

学习路径

s01 到 s12:渐进式 Agent 设计

层次图例

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

The Agent LoopBash is All You Need

84 行代码1 个工具

“The minimal agent kernel is a while loop + one tool”

了解更多
02
s02Tool dispatch map

ToolsThe Loop Didn't Change

115 行代码4 个工具

“Adding tools means adding handlers, not rewriting the loop”

了解更多
03
s03TodoManager + nag reminder

TodoWritePlan Before You Act

173 行代码5 个工具

“Visible plans improve task completion and accountability”

了解更多
04
s04Subagent spawn with isolated messages[]

SubagentsProcess Isolation = Context Isolation

146 行代码5 个工具

“Process isolation gives context isolation for free”

了解更多
05
s05SkillLoader + two-layer injection

SkillsSKILL.md + tool_result Injection

177 行代码5 个工具

“Skills inject via tool_result, not system prompt”

了解更多
06
s06micro-compact + auto-compact + archival

CompactStrategic Forgetting

200 行代码5 个工具

“Forgetting old context enables infinite-length sessions”

了解更多
07
s07TaskManager with file-based state + dependency graph

TasksPersistent CRUD with Dependencies

202 行代码8 个工具

“File-based state survives context compression”

了解更多
08
s08BackgroundManager + notification queue

Background TasksFire and Forget

193 行代码6 个工具

“Non-blocking daemon threads + notification queue”

了解更多
09
s09TeammateManager + file-based mailbox

Agent TeamsTeammates + Mailboxes

343 行代码10 个工具

“Persistent teammates with async mailbox inboxes”

了解更多
10
s10request_id correlation for two protocols

Team ProtocolsShutdown + Plan Approval

414 行代码12 个工具

“Same request-response pattern, two applications”

了解更多
11
s11Task board polling + timeout-based self-governance

Autonomous AgentsIdle Cycle + Auto-Claim

494 行代码14 个工具

“Polling + timeout makes teammates self-organizing”

了解更多
12
s12Composable worktree lifecycle + event stream over a shared task board

Worktree + Task IsolationIsolate by Directory

689 行代码16 个工具

“Task board coordinates ownership, worktrees isolate execution, and events make lifecycle auditable”

了解更多

代码量增长

s01
84
s02
115
s03
173
s04
146
s05
177
s06
200
s07
202
s08
193
s09
343
s10
414
s11
494
s12
689