Learn Claude Code

学習パス

s01からs20へ:段階的エージェント 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