Learn Claude Code

学习路径

s01 到 s20:渐进式 Agent Harness 设计

层次图例

Tools & Execution
Planning & Control
Memory Management
Concurrency & Scheduling
Multi-Agent Platform
01
s01Minimal model/tool loop

The Agent LoopOne Loop Is All You Need

102 行代码1 个工具

The smallest useful agent is a loop that calls the model, runs tools, and feeds results back.

了解更多
02
s02Tool dispatch map

Tool UseAdd a Tool, Add Just One Line

135 行代码5 个工具

The loop stays stable while capabilities register into a dispatch table.

了解更多
03
s03Permission gate

PermissionCheck Permissions Before Execution

180 行代码5 个工具

Dangerous actions need a harness decision point before the shell runs.

了解更多
04
s04Lifecycle hooks

HooksHang on the Loop, Don't Write into It

232 行代码5 个工具

Cross-cutting behavior belongs around the loop, not tangled inside it.

了解更多
05
s05Todo manager

TodoWriteAn Agent Without a Plan Drifts Off Course

236 行代码6 个工具

Explicit plans keep long-running work visible and correctable.

了解更多
06
s06Isolated subtask context

SubagentBreak Large Tasks into Small Ones with Clean Context

304 行代码7 个工具

Subagents give each subtask a clean message history while preserving the main thread.

了解更多
07
s07On-demand skill loader

Skill LoadingLoad Only When Needed

335 行代码8 个工具

Inject specialized knowledge only when the task actually needs it.

了解更多
08
s08Context compaction

Context CompactContext Will Fill Up

414 行代码9 个工具

Compression keeps the conversation usable when the context window gets crowded.

了解更多
09
s09Durable memory layer

MemoryKeep a Layer That Doesn't Lose Details

528 行代码6 个工具

Some facts should survive summarization and future sessions.

了解更多
10
s10Runtime prompt assembly

System PromptAssembled at Runtime, Never Hardcoded

166 行代码3 个工具

The system prompt is a generated product of policy, tools, skills, and context.

了解更多
11
s11Retry strategy

Error RecoveryErrors Are the Start of a Retry

287 行代码3 个工具

A robust harness classifies failures and decides what kind of retry is worthwhile.

了解更多
12
s12Task board

Task SystemBreak Big Goals into Small Tasks

297 行代码8 个工具

A task graph turns vague goals into ordered, observable work.

了解更多
13
s13Background execution

Background TasksSlow Operations Go to the Background

379 行代码8 个工具

The agent can keep reasoning while slow work completes elsewhere.

了解更多
14
s14Scheduled task creation

Cron SchedulerProducing Work on a Schedule

645 行代码11 个工具

Recurring work should be created by the harness, not remembered by the model.

了解更多
15
s15Teammate mailboxes

Agent TeamsOne Agent Isn't Enough, Form a Team

745 行代码14 个工具

Persistent teammates let work continue in parallel without stuffing every thought into one context.

了解更多
16
s16Shared coordination protocols

Team ProtocolsTeammates Need Agreements

709 行代码15 个工具

Multi-agent systems need explicit message contracts, not vibes.

了解更多
17
s17Autonomous task claiming

Autonomous AgentsCheck the Board, Claim the Task

648 行代码15 个工具

Teammates become useful when they can discover and claim work themselves.

了解更多
18
s18Worktree lifecycle

Worktree IsolationSeparate Directories, No Conflicts

802 行代码18 个工具

Parallel agents need isolated filesystems as much as isolated conversations.

了解更多
19
s19MCP tool bridge

MCP ToolsExternal Tools, Standard Protocol

835 行代码23 个工具

External services can become agent tools through a standard discovery and call protocol.

了解更多
20
s20Integrated harness

Comprehensive AgentAll Mechanisms, One Loop

1708 行代码32 个工具

The final harness is still one loop, now surrounded by the systems that make it production-shaped.

了解更多

代码量增长

s01
102
s02
135
s03
180
s04
232
s05
236
s06
304
s07
335
s08
414
s09
528
s10
166
s11
287
s12
297
s13
379
s14
645
s15
745
s16
709
s17
648
s18
802
s19
835
s20
1708