# 图解 Agent Harnesses：从 TinyAgent 到 OpenClaw

Original title: A Visual Guide to Agent Harnesses

> Hacker News story 50702171 · language: zh · submitted 2026-11-30
> Web version: https://zeli.app/zh/story/50702171
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 156 · by [mariuz](<https://news.ycombinator.com/user?id=mariuz>) · 💬 22
[original](<https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses>) · [HN discussion](<https://news.ycombinator.com/item?id=50702171>)

## Summary

并非所有 Agent 框架生而平等。即使放入完全相同的 LLM，Pi、OpenCode、Hermes 和 OpenClaw 也会表现出截然不同的行为。我深入源码，通过 30 多张定制图表，从教育级的 TinyAgent 出发，层层拆解这些框架的底层逻辑。文章详细对比了它们在代码规模、记忆压缩机制、手术刀式代码编辑以及运行时干预能力上的差异，揭示了 Agent Harness 如何将无状态的模型转化为能感知环境、执行复杂任务的智能体。

## Key quote

> 如果我们把完全相同的 LLM 放入这四个不同的开源 Agent 框架中，我们会得到四个完全不同的智能体。

## HN discussion (22 comments)

### [PaulKeeble](<https://news.ycombinator.com/item?id=50706049>)

> Pi 的核心超能力在于它赋予了 Agent 编辑 harness 的能力。harness 会随着用户添加技能和工具而提供相应的功能，用户可以从 Pi 外部手动添加，在 Pi 内部操作，或者让 Agent 自行构建，随后 Agent 会查阅指南来完成操作。它自带零技能，但具备调用现有技能的能力，而这一点在图中似乎缺失了。
>
> harness 的选择实际上会对 LLM 的性能产生巨大影响。这不仅关乎系统提示词中消耗的上下文，提示词和工具本身也会显著改变任务的成本和成功概率。Pi 对于任何单一模型来说基本都不是首选，但因为它极其精简，通常能稳居前三。

### [abdullahkhalids](<https://news.ycombinator.com/item?id=50708956>)

> 当大家想要使用 subagents（子代理）和选择性记忆时，更倾向于哪种 harness？也就是说，存在一个定期写入的记忆库，但每个 subagent 仅获取与其被分配的具体窄任务相关的记忆内容。

### [lvl256](<https://news.ycombinator.com/item?id=50706921>)

> 我只要一个合规的 harness，别让我被订阅服务封号就行。

---

## Cite

- Page: https://zeli.app/zh/story/50702171
- Date: 2026-11-30
- Source: newsletter.maartengrootendorst.com (https://newsletter.maartengrootendorst.com/p/a-visual-guide-to-agent-harnesses)
- Hacker News: https://news.ycombinator.com/item?id=50702171

## Other languages

- en: https://zeli.app/story/50702171 · markdown: https://zeli.app/story/50702171.md
- ja: https://zeli.app/ja/story/50702171 · markdown: https://zeli.app/ja/story/50702171.md
- ko: https://zeli.app/ko/story/50702171 · markdown: https://zeli.app/ko/story/50702171.md
- de: https://zeli.app/de/story/50702171 · markdown: https://zeli.app/de/story/50702171.md
- es: https://zeli.app/es/story/50702171 · markdown: https://zeli.app/es/story/50702171.md
- ru: https://zeli.app/ru/story/50702171 · markdown: https://zeli.app/ru/story/50702171.md
