Learn Claude Code

學習路徑

s01 到 s20:漸進式 Agent Harness 設計

層次圖例

Tools & Execution
Planning & Control
Memory Management
Concurrency & Scheduling
Multi-Agent Platform
Harness Practitioner (No-Code)
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

175 行程式碼5 個工具

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

瞭解更多
04
s04Lifecycle hooks

HooksHang on the Loop, Don't Write into It

228 行程式碼5 個工具

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

瞭解更多
05
s05Todo manager

TodoWriteAn Agent Without a Plan Drifts Off Course

235 行程式碼6 個工具

Explicit plans keep long-running work visible and correctable.

瞭解更多
06
s06Isolated subtask context

SubagentBreak Large Tasks into Small Ones with Clean Context

303 行程式碼7 個工具

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

瞭解更多
07
s07On-demand skill loader

Skill LoadingLoad Only When Needed

334 行程式碼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

165 行程式碼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

299 行程式碼8 個工具

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

瞭解更多
13
s13Background execution

Background TasksSlow Operations Go to the Background

381 行程式碼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

786 行程式碼14 個工具

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

瞭解更多
16
s16Shared coordination protocols

Team ProtocolsTeammates Need Agreements

711 行程式碼15 個工具

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

瞭解更多
17
s17Autonomous task claiming

Autonomous AgentsCheck the Board, Claim the Task

649 行程式碼15 個工具

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

瞭解更多
18
s18Worktree lifecycle

Worktree IsolationSeparate Directories, No Conflicts

810 行程式碼18 個工具

Parallel agents need isolated filesystems as much as isolated conversations.

瞭解更多
19
s19MCP tool bridge

MCP ToolsExternal Tools, Standard Protocol

837 行程式碼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.

瞭解更多
h01
h01Persistent work manual

CLAUDE.mdPut Your Work Rules in Writing

0 行程式碼0 個工具

AI doesn't disobey — it guesses when you leave blanks. A written manual removes the guessing.

瞭解更多
h02
h02Acceptance checklist

VerificationDon't Trust 'Done' — Verify It

0 行程式碼0 個工具

Fluent text is not the same as correct output. Define 'done' before the task starts.

瞭解更多
h03
h03Handoff journal

MemoryNew Chat, Same Context

0 行程式碼0 個工具

Memory lives in your files, not in AI's head. A three-part handoff note bridges any conversation gap.

瞭解更多
h04
h04Prompt-level guard

HooksWhen Rules Aren't Enough, Install a Gate

0 行程式碼0 個工具

CLAUDE.md is a guide. A hook is a guard. If 5% failure is unacceptable, enforce it.

瞭解更多
h05
h05Three-tier rule structure

Layered GovernanceToo Many Rules? Sort Them into Drawers

0 行程式碼0 個工具

AI ignores the second half of a 200-line rule file. Split into global / task / personal layers.

瞭解更多
h06
h06End-to-end harness

IntegrationAssemble a System That Actually Works at the Office

0 行程式碼0 個工具

Start with a minimum viable harness — manual, checklist, handoff note — and add pieces only when needed.

瞭解更多

程式碼量增長

s01
102
s02
135
s03
175
s04
228
s05
235
s06
303
s07
334
s08
414
s09
528
s10
165
s11
287
s12
299
s13
381
s14
645
s15
786
s16
711
s17
649
s18
810
s19
837
s20
1708
h01
0
h02
0
h03
0
h04
0
h05
0
h06
0