|
1 | 1 | # Project 01: Baseline vs Minimal Harness |
2 | 2 |
|
3 | | -比较弱 harness(仅靠 prompt)和显式 harness(规则文件 + 验证机制)对 AI 编码代理任务完成率的影响。 |
| 3 | +Compare how a weak harness (prompt only) and an explicit harness (rule files plus verification mechanisms) affect the completion rate of AI coding-agent tasks. |
4 | 4 |
|
5 | | -## 目录说明 |
| 5 | +## Directory Guide |
6 | 6 |
|
7 | | -| 目录 | 含义 | |
| 7 | +| Directory | Meaning | |
8 | 8 | |------|------| |
9 | | -| `starter/` | **起点**——只有一个模糊的 `task-prompt.md`,没有 AGENTS.md、没有 feature_list.json。这是你给代理的"弱 harness"版本。 | |
10 | | -| `solution/` | **参考实现**——相同的应用代码,但配备了完整的 harness 文件(AGENTS.md、feature_list.json、init.sh、claude-progress.md)。这是"显式 harness"版本。 | |
| 9 | +| `starter/` | **Starting point**: only a vague `task-prompt.md`, with no AGENTS.md and no feature_list.json. This is the "weak harness" version you give to the agent. | |
| 10 | +| `solution/` | **Reference implementation**: the same application code, but with complete harness files (AGENTS.md, feature_list.json, init.sh, claude-progress.md). This is the "explicit harness" version. | |
11 | 11 |
|
12 | | -## 使用方法 |
| 12 | +## How to Use |
13 | 13 |
|
14 | 14 | ```sh |
15 | | -# 1. 用 starter(弱 harness)跑一次代理任务 |
| 15 | +# 1. Run the agent task once with starter (weak harness) |
16 | 16 | cd starter |
17 | 17 | npm install |
18 | | -# 把 task-prompt.md 的内容作为 prompt 给 Claude Code / Codex |
19 | | -# 让代理尝试完成:窗口启动、文档列表、问答面板、数据目录 |
| 18 | +# Give the contents of task-prompt.md as the prompt to Claude Code / Codex |
| 19 | +# Ask the agent to complete: window startup, document list, QA panel, data directory |
20 | 20 |
|
21 | | -# 2. 用 solution(显式 harness)跑一次 |
| 21 | +# 2. Run the same task with solution (explicit harness) |
22 | 22 | cd ../solution |
23 | 23 | npm install |
24 | | -# 让代理读取 AGENTS.md,按规则执行同样的任务 |
| 24 | +# Ask the agent to read AGENTS.md and follow the rules for the same task |
25 | 25 |
|
26 | | -# 3. 对比两次结果 |
27 | | -# - 任务是否完成? |
28 | | -# - 需要重试几次? |
29 | | -# - 代理是否提前声称"完成"? |
| 26 | +# 3. Compare the two results |
| 27 | +# - Was the task completed? |
| 28 | +# - How many retries were needed? |
| 29 | +# - Did the agent claim "done" too early? |
30 | 30 | ``` |
31 | 31 |
|
32 | | -## 本项目涉及的功能 |
| 32 | +## Features Covered |
33 | 33 |
|
34 | | -- Electron 窗口成功启动 |
35 | | -- UI 显示文档列表区域 |
36 | | -- UI 显示问答面板 |
37 | | -- 应用创建并使用本地数据目录 |
| 34 | +- Electron window starts successfully |
| 35 | +- UI shows the document-list area |
| 36 | +- UI shows the QA panel |
| 37 | +- App creates and uses a local data directory |
38 | 38 |
|
39 | | -## 对应课件 |
| 39 | +## Related Lectures |
40 | 40 |
|
41 | | -- [Lecture 01: 为什么强大的模型仍然会失败](../../docs/lectures/lecture-01-why-capable-agents-still-fail/index.md) |
42 | | -- [Lecture 02: Harness 到底是什么](../../docs/lectures/lecture-02-what-a-harness-actually-is/index.md) |
| 41 | +- [Lecture 01: Why Capable Agents Still Fail](../../docs/en/lectures/lecture-01-why-capable-agents-still-fail/index.md) |
| 42 | +- [Lecture 02: What a Harness Actually Is](../../docs/en/lectures/lecture-02-what-a-harness-actually-is/index.md) |
0 commit comments