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