> Harness EngineeringHarness EngineeringHarness Engineering The engineering outside the model模型之外的工程模型之外的工程

Harness EngineeringHarness EngineeringHarness Engineering

The engineering outside the model模型之外的工程模型之外的工程

★ Core chapters: read only these and you still get the main line of the book.核心章節:只讀這些,也能讀到全書的主線。核心章节:只读这几章,也能抓住全书的主线。

Part 0 · Getting started第 0 部 · 入門第 0 部分 · 入门

  1. 0.1 The gap is outside the model差距在模型外面差距在模型外面 ★
  2. 0.2 A minimal harness in 30 minutes30 分鐘搭一個最小 harness30 分钟搭一个最小 harness ★

Part 1 · The brain and the hands第 1 部 · 腦和手第 1 部分 · 大脑和双手

  1. 1.1 Choosing a model: cost per finished task選模型:算的是每次成功的成本选模型:看每次成功的成本 ★
  2. 1.2 Tool calling, and designing tools for an agentTool calling,和給 agent 設計工具Tool calling,以及怎么给 agent 设计工具 ★
  3. 1.3 MCP servers: a standard plug for toolsMCP server:插工具的標準接口MCP server:接工具的标准接口

Part 2 · The runtime第 2 部 · 運行時第 2 部分 · 运行时

  1. 2.1 The agent loopagent 循環,和你能插手的地方agent 循环,以及你能插手的地方 ★
  2. 2.2 HooksHooks:每次呼叫都會經過的執行點Hook:每次调用都会经过的执行点 ★
  3. 2.3 Use subagents sparingly慎用子 agent慎用子 agent ★
  4. 2.4 Custom agentsCustom agent:固定模型和工具的角色自定义 agent:固定模型和工具的角色

Part 3 · Context第 3 部 · 上下文第 3 部分 · 上下文

  1. 3.1 Context is a budget上下文是一份預算上下文是一份预算 ★
  2. 3.2 Long chats get worse長對話會變差长对话会变差
  3. 3.3 Instructions and skills指令與 skill:只載入需要的指令与 skill:只加载需要的 ★
  4. 3.4 Turn your way of working into skills把團隊的做法寫成 skill把团队的做法写成 skill
  5. 3.5 What an agent should rememberagent 該記住什麼agent 该记住什么

Part 4 · Control第 4 部 · 控制第 4 部分 · 控制

  1. 4.1 A rule in a prompt is a request提示裡的規則只是請求提示里的规则只是请求 ★
  2. 4.2 Asking is not a limit詢問不是限制询问不是限制 ★
  3. 4.3 Guard the files that hold the rules保護規則本身的檔案保护规则本身的文件
  4. 4.4 Build the enforcement layer like software把執行層當軟體來設計把执行层当软件来设计
  5. 4.5 Some things you never hand over有些東西根本不給有些东西根本不给
  6. 4.6 Text the agent reads can give it ordersagent 讀到的文字可能在指揮它agent 读到的文字可能在指挥它 ★

Part 5 · Flow and decisions第 5 部 · 流程與決策第 5 部分 · 流程与决策

  1. 5.1 Manage tasks, not chats管任務,不管對話管任务,不管对话 ★
  2. 5.2 The agent writes the requirement, the person confirms it需求由 agent 寫,人確認需求由 agent 写,人确认
  3. 5.3 Two gates: where a person approves兩道門:人在哪裡批准两道门:人在哪里审批 ★
  4. 5.4 Let the agent check its own work讓 agent 能檢查自己的活让 agent 能检查自己的活 ★
  5. 5.5 Make a pass count讓「通過」可信让“通过”可信
  6. 5.6 Can a model check a model?模型能檢查模型嗎模型能检查模型吗
  7. 5.7 Unattended: when it must stop無人值守:什麼時候必須停无人值守:什么时候必须停
  8. 5.8 Long work across sessions跨會話的長任務跨会话的长任务
  9. 5.9 Who decides: code, a cheap model, the main model, a person誰來判斷:程式、便宜模型、主模型、人谁来判断:代码、便宜模型、主模型、人

Part 6 · Evidence第 6 部 · 證據第 6 部分 · 证据

  1. 6.1 Record what happened, not what the agent said記下發生了什麼,不是 agent 說了什麼记下发生了什么,而不是 agent 说了什么 ★
  2. 6.2 A report a person can read in five minutes一份五分鐘讀得完的報告一份五分钟读得完的报告
  3. 6.3 Fixed tasks, scored by a script固定的任務,用腳本打分固定的任务,用脚本打分 ★
  4. 6.4 One run proves nothing一次運行證明不了什麼一次运行证明不了什么
  5. 6.5 When the model is upgraded, delete模型升級了,就要刪模型升级了,就要删

Part 7 · People第 7 部 · 人第 7 部分 · 人

  1. 7.1 People and teams: what stays with a person人與團隊:留給人的事人与团队:留给人的事
  2. 7.2 Ten things at once: parallel tasks同時管十件事:並行的是任務同时管十件事:并行的是任务
  3. 7.3 What I cut, and what the data says我砍掉了什麼,數據怎麼說我砍掉了什么,数据怎么说
  4. 7.4 Roll out and govern a harness落地與治理落地与治理

Part 8 · Case study: a knowledge base from code第 8 部 · 案例:從程式碼建知識庫第 8 部分 · 案例:从代码构建知识库

  1. 8.1 A knowledge base: an honest index of the code知識庫:程式碼的誠實索引知识库:代码的诚实索引
  2. 8.2 The toolkit: scripts that draw a map of the codeToolkit:用腳本畫出程式碼的地圖Toolkit:用脚本画出代码的地图
  3. 8.3 Is the map right? A blind audit地圖對不對:盲抽查地图对不对:盲抽查
  4. 8.4 Learning a domain in batches分批學一個領域分批学一个领域
  5. 8.5 Keeping the knowledge base true讓知識庫一直是對的让知识库一直是对的

Appendices附錄附录

  1. A Extension points cheat sheet擴充點速查表扩展点速查表
  2. B Troubleshooting排錯排错
  3. C Patterns you can copy可以照抄的模式可以照抄的模式