> ls book/
Harness Engineering
The engineering outside the model
Harness Engineering:模型之外的工程
The same model does far more inside a good harness. This book is about everything outside the model: the rules, checks and tooling that make a coding agent safe to trust with real work. Every example runs on VS Code Copilot, from an open-source harness.
How it works
Every example is real
All code comes from an open-source harness, pinned to a tag. No pseudo-code.
Seven layers, one map
Model, tools, runtime, context, control, flow, evidence. Each part builds on the one below.
Three languages
Every chapter in English, 繁體中文 and 简体中文. Switch on any page.
Contents · 46 chapters
Part 0 · Getting started
Part 1 · The brain and the hands
Part 2 · The runtime
Part 3 · Context
Part 4 · Control
Part 5 · Flow and decisions
- 5.1 Manage tasks, not chats管任務,不管對話
- 5.2 The agent writes the requirement, the person confirms it需求由 agent 寫,人確認
- 5.3 Two gates: where a person approves兩道門:人在哪裡批准
- 5.4 Let the agent check its own work讓 agent 能檢查自己的活
- 5.5 Make a pass count讓「通過」可信
- 5.6 Can a model check a model?模型能檢查模型嗎
- 5.7 Unattended: when it must stop無人值守:什麼時候必須停
- 5.8 Long work across sessions跨會話的長任務
- 5.9 Who decides: code, a cheap model, the main model, a person誰來判斷:程式、便宜模型、主模型、人
Part 6 · Evidence
Part 7 · People
Part 8 · Case study: a knowledge base from code
License
Text and figures CC BY 4.0. Code MIT.