Learn Claude Code
19 章節、4 個階段,從最小閉環一路搭到多 Agent 平臺與外部能力匯流排
- s01Agent 迴圈
An agent is just a loop: send messages, execute tools, feed results back, repeat.
- s02工具使用
Adding a tool means adding one handler. The loop never changes.
- s03待辦寫入
A visible plan keeps the agent on track when tasks get complex.
- s04子代理
A subagent is mainly a context boundary, not a process trick.
- s05技能系統
Discover cheaply, load deeply -- only when needed.
- s06上下文壓縮
Compaction isn't deleting history -- it's relocating detail so the agent can keep working.
- s07許可權系統
Safety is a pipeline, not a boolean: deny, check mode, allow, then ask.
- s08Hook 系統
The loop owns control flow; hooks only observe, block, or annotate at named moments.
- s09記憶系統
Memory gives direction; current observation gives truth.
- s10系統提示詞
The model sees a constructed input pipeline, not one giant static string.
- s11錯誤恢復
Most failures aren't true task failure -- they're signals to try a different path.
- s15Agent 團隊
Teammates persist beyond one prompt, have identity, and coordinate through durable channels.
- s16團隊協議
A protocol request is a structured message with an ID; the response must reference the same ID.
- s17自主代理
Autonomy is a bounded mechanism -- idle, scan, claim, resume -- not magic.
- s18Worktree 隔離
Tasks answer what; worktrees answer where. Keep them separate.
- s19MCP 與外掛
External capabilities join the same routing, permission, and result-append path as native tools.