Skip to content

Commit c491d17

Browse files
committed
Refine README screenshots and lecture 01 diagrams
1 parent fbc6d1f commit c491d17

5 files changed

Lines changed: 59 additions & 55 deletions

File tree

README-CN.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,17 @@ Learn Harness Engineering 是一门专注于 AI 编程智能体工程化落地
1515

1616
## 页面截图
1717

18-
### 中文
18+
中文首页
1919

20-
<p>
21-
<img src="./docs/public/screenshots/readme/zh-home.png" alt="中文首页预览" width="32%" />
22-
<img src="./docs/public/screenshots/readme/zh-lecture-01.png" alt="中文讲义预览" width="32%" />
23-
<img src="./docs/public/screenshots/readme/zh-resources.png" alt="中文资料库预览" width="32%" />
24-
</p>
20+
![中文首页预览](./docs/public/screenshots/readme/zh-home.png)
2521

26-
### English
22+
中文讲义页
2723

28-
<p>
29-
<img src="./docs/public/screenshots/readme/en-home.png" alt="English homepage preview" width="32%" />
30-
<img src="./docs/public/screenshots/readme/en-lecture-01.png" alt="English lecture preview" width="32%" />
31-
<img src="./docs/public/screenshots/readme/en-resources.png" alt="English resources preview" width="32%" />
32-
</p>
24+
![中文讲义预览](./docs/public/screenshots/readme/zh-lecture-01.png)
25+
26+
中文资料库
27+
28+
![中文资料库预览](./docs/public/screenshots/readme/zh-resources.png)
3329

3430
## PDF 构建与 Release 流水线
3531

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,17 @@ Learn Harness Engineering is a course dedicated to the engineering of AI coding
1515

1616
## Visual Preview
1717

18-
### English
18+
English home page
1919

20-
<p>
21-
<img src="./docs/public/screenshots/readme/en-home.png" alt="English homepage preview" width="32%" />
22-
<img src="./docs/public/screenshots/readme/en-lecture-01.png" alt="English lecture preview" width="32%" />
23-
<img src="./docs/public/screenshots/readme/en-resources.png" alt="English resources preview" width="32%" />
24-
</p>
20+
![English homepage preview](./docs/public/screenshots/readme/en-home.png)
2521

26-
### 中文
22+
English lecture page
2723

28-
<p>
29-
<img src="./docs/public/screenshots/readme/zh-home.png" alt="中文首页预览" width="32%" />
30-
<img src="./docs/public/screenshots/readme/zh-lecture-01.png" alt="中文讲义预览" width="32%" />
31-
<img src="./docs/public/screenshots/readme/zh-resources.png" alt="中文资料库预览" width="32%" />
32-
</p>
24+
![English lecture preview](./docs/public/screenshots/readme/en-lecture-01.png)
25+
26+
English resource library
27+
28+
![English resources preview](./docs/public/screenshots/readme/en-resources.png)
3329

3430
## PDF Coursebooks
3531

docs/.vitepress/theme/style.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -538,26 +538,25 @@
538538
margin: 20px 0;
539539
display: flex;
540540
justify-content: center;
541-
overflow-x: auto;
541+
overflow-x: visible;
542542
overflow-y: visible;
543-
-webkit-overflow-scrolling: touch;
544543
cursor: zoom-in;
545544
position: relative;
546545
}
547546

548547
.vp-doc .mermaid svg {
549548
display: block;
550-
width: clamp(780px, 100%, 1040px) !important;
551-
max-width: none !important;
552-
min-width: 780px;
549+
width: 100% !important;
550+
max-width: 100% !important;
551+
min-width: 0;
553552
height: auto !important;
554553
margin: 0 auto;
555554
}
556555

557556
.vp-doc .mermaid .label,
558557
.vp-doc .mermaid .nodeLabel,
559558
.vp-doc .mermaid .edgeLabel {
560-
font-size: 18px !important;
559+
font-size: 16px !important;
561560
}
562561

563562
.vp-doc .mermaid::after {
@@ -601,14 +600,15 @@ html:lang(zh-CN) .vp-doc .mermaid::after {
601600
}
602601

603602
.vp-doc .mermaid svg {
604-
width: clamp(640px, 100%, 920px) !important;
605-
min-width: 640px;
603+
width: 100% !important;
604+
max-width: 100% !important;
605+
min-width: 0;
606606
}
607607

608608
.vp-doc .mermaid .label,
609609
.vp-doc .mermaid .nodeLabel,
610610
.vp-doc .mermaid .edgeLabel {
611-
font-size: 16px !important;
611+
font-size: 14px !important;
612612
}
613613

614614
.vp-doc .mermaid::after {

docs/en/lectures/lecture-01-why-capable-agents-still-fail/index.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,26 @@ This isn't because the model isn't smart enough. It's because the working enviro
2424

2525
```mermaid
2626
flowchart TB
27-
Spec["Task not specific<br/>'add search' can mean many things"] --> Fail["Result:<br/>agent writes code<br/>but work is unreliable"]
28-
Context["Project rules missing<br/>agent cannot see them"] --> Fail
29-
Env["Environment broken<br/>deps or commands fail"] --> Fail
30-
Verify["No tests or check commands"] --> Fail
31-
State["No progress file<br/>next session starts blind"] --> Fail
32-
Fail --> Fix["Fix the broken layer,<br/>then rerun"]
27+
Start["Start the task"] --> Q1{"Is the task specific?"}
28+
Q1 -->|No| Bad["Result:<br/>lots of code<br/>still unstable"]
29+
Q1 -->|Yes| Q2{"Are the rules in the repo?"}
30+
Q2 -->|No| Bad
31+
Q2 -->|Yes| Q3{"Does the environment run?"}
32+
Q3 -->|No| Bad
33+
Q3 -->|Yes| Q4{"Are there check commands?"}
34+
Q4 -->|No| Bad
35+
Q4 -->|Yes| Q5{"Is progress recorded?"}
36+
Q5 -->|No| Bad
37+
Q5 -->|Yes| Good["More likely to finish cleanly"]
3338
```
3439

3540
```mermaid
36-
flowchart LR
37-
Same["Same prompt<br/>same model"] --> Bare["Bare run<br/>20 min / $9<br/>core features broken"]
38-
Same --> Full["Add planning, checks, and evaluation<br/>6 hr / $200<br/>playable app"]
39-
Bare --> Lesson["Only the harness changed"]
40-
Full --> Lesson
41+
flowchart TB
42+
Same["Same task<br/>same model"]
43+
Same --> Bare["Just one prompt<br/>20 min / $9"]
44+
Same --> Full["Rules and checks first<br/>6 hr / $200"]
45+
Bare --> Bad["Core features broken"]
46+
Full --> Good["Playable app"]
4147
```
4248

4349
## Why This Happens

docs/zh/lectures/lecture-01-why-capable-agents-still-fail/index.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,26 @@
2424

2525
```mermaid
2626
flowchart TB
27-
Spec["任务没写清楚<br/>比如“加搜索”含义很多"] --> Fail["结果:<br/>agent 写了很多代码<br/>但做事还是不稳定"]
28-
Context["项目规则没写进仓库<br/>agent 看不到"] --> Fail
29-
Env["环境没配好<br/>依赖或命令跑不起来"] --> Fail
30-
Verify["没有测试或检查命令"] --> Fail
31-
State["没有进度文件<br/>下一会话两眼一抹黑"] --> Fail
32-
Fail --> Fix["把出错那一层补上<br/>再重新跑"]
27+
Start["开始做任务"] --> Q1{"任务写清了吗?"}
28+
Q1 -->|否| Bad["结果:<br/>写了很多代码<br/>但还是不稳"]
29+
Q1 -->|是| Q2{"规则写进仓库了吗?"}
30+
Q2 -->|否| Bad
31+
Q2 -->|是| Q3{"环境跑得起来吗?"}
32+
Q3 -->|否| Bad
33+
Q3 -->|是| Q4{"有检查命令吗?"}
34+
Q4 -->|否| Bad
35+
Q4 -->|是| Q5{"有进度记录吗?"}
36+
Q5 -->|否| Bad
37+
Q5 -->|是| Good["更容易稳定完成"]
3338
```
3439

3540
```mermaid
36-
flowchart LR
37-
Same["同一个任务<br/>同一个模型"] --> Bare["裸跑<br/>20 分钟 / $9<br/>核心功能失效"]
38-
Same --> Full["加上规划、检查和评估<br/>6 小时 / $200<br/>应用可以正常使用"]
39-
Bare --> Lesson["变的只有 harness"]
40-
Full --> Lesson
41+
flowchart TB
42+
Same["同一个任务<br/>同一个模型"]
43+
Same --> Bare["只给一句话<br/>20 分钟 / $9"]
44+
Same --> Full["先定规则和检查<br/>6 小时 / $200"]
45+
Bare --> Bad["核心功能失效"]
46+
Full --> Good["应用可用"]
4147
```
4248

4349
## 为什么会这样

0 commit comments

Comments
 (0)