Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Learn Claude Code Notes

The model is the agent. The code is the harness. Build great harnesses. The agent will do the rest.

模型是智能体,代码是 harness。构建优秀的 harness,智能体自会完成剩余工作。

关于本书

这是 learn-claude-code 项目的中文学习笔记。

原文档learn-claude-code/docs/zh/

核心思想

Agent = Model(模型即智能体)

Harness = Tools + Knowledge + Context + Permissions(工具 + 知识 + 上下文 + 权限)

Product = Agent + Harness(完整产品 = 智能体 + 环境)

学习路径

本书分为 4 个阶段,共 12 个 session:

阶段Sessions主题递进关系
Phase 1s01-s02The Loop - 基础循环与工具建立模型与世界的连接
Phase 2s03-s06Planning & Knowledge - 规划与知识管理让单 Agent 在有限上下文窗口内高效
Phase 3s07-s08Persistence - 持久化与并行为多 Agent 协作提供共享任务状态
Phase 4s09-s12Teams - 多 Agent 协作在共享状态上实现团队沟通与自组织

四阶段递进关系:

Phase 1: 循环基础
   ↓
Phase 2: 上下文管理 ──→ 单 Agent 能力完善
   ↓
Phase 3: 任务持久化 ──→ 为多 Agent 协作提供基础设施(任务图 + 并行执行)
   ↓
Phase 4: 多 Agent 协作 ──→ 基于共享状态的团队沟通、协议、自治

详细总结见:总结