# GitHub 上 AGENTS.md 文件激增 70 倍

Original title: The Exponential Rise of Agent Instruction Files

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

▲ 26 · by [reshabh](<https://news.ycombinator.com/user?id=reshabh>) · 💬 14
[original](<https://homes.cs.washington.edu/~reshabh/posts/exponential-rise-of-agent-instruction-files.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50688056>)

## Summary

从 2023 年使用 GitHub Copilot 辅助编码，到 2026 年让 Claude Code 等智能体独立完成任务，我亲历了开发模式的剧变。随着智能体能够自主运行数天甚至数周，开发者开始将项目规则写入 AGENTS.md 文件，以便智能体在无人监督时遵循。数据显示，GitHub 上的 AGENTS.md 文件数量在一年多时间内从 2 万激增至 140 万。然而，智能体并非总是严格遵守规则，有时会出现“故意违抗”的情况。为了解决这一问题，我们开发了 InstructGuard 工具，将指令文件中的规则转化为可执行的检查，确保智能体在异步运行时依然可靠。

## Key quote

> 当开发者不再审查每一步时，项目便开始将规则写在纯文本 Markdown 文件中，供智能体在启动前阅读。

## HN discussion (14 comments)

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

> \> 我发现，对于那些并非由智能体从头开始开发的项目，要让智能体遵循我设定的规则相当困难。
>
> 这也反映了我的经验。

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

> \> 智能体指令文件的采用率呈指数级增长。在短短一年多时间里，数量从约 2 万激增至 140 万。
>
> 这张图之后只有三个数据点，而在这两个间距最大的点之间强行画一条类指数曲线，这种做法很不幸。
>
> 顺便提一下，这里的大多数 AGENTS.md 文件很可能属于新仓库，因为该文章并未控制 GitHub 上的总仓库数量（甚至没有考虑增长率）。所以，哪怕我们现在每天创建的仓库数量和以前一样——虽然我知道事实并非如此——我们依然会预期看到这些文件数量呈线性增长。

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

> 有人能推荐一份适合本地 AI 使用的优质 AGENTS.md 吗？我手头有一份，但总需要不断修剪，因为我从未有过一份经过测试的开源模板作为起点，所以不知道我可能遗漏了什么。非常希望能看到一些经过实战检验的开源示例。

---

## Cite

- Page: https://zeli.app/zh/story/50688056
- Date: 2026-11-29
- Source: homes.cs.washington.edu (https://homes.cs.washington.edu/~reshabh/posts/exponential-rise-of-agent-instruction-files.html)
- Hacker News: https://news.ycombinator.com/item?id=50688056

## Other languages

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