微信扫码
添加专属顾问
我要投稿
OpenAI推出AGENTS.md标准,为AI编码代理提供统一工作指南,让开发更高效智能。 核心内容: 1. AGENTS.md的定位与作用:专为AI代理设计的项目文档 2. 文档包含的关键信息:安装、测试、部署等自动化指令 3. 已采用该标准的知名AI开发工具列表
OpenAI发布了开源的Agent README格式: AGENTS.md
而且这就是它的域名,可以直接访问。
目前Codex, Amp, Google jules , Cursor, FactoryAI和RooCode都已比加入到这个这个统一标准中。
AGENTS.md 是一种专门为 AI 编码代理(coding agents)设计的开放格式文档,作用相当于项目的 “README for agents”,但它不是给人类贡献者看的,而是给 AI 看的,用来集中、明确地告诉 AI 代理如何在你的项目中工作。
AGENTS.md 是一个放在代码仓库根目录(或子项目目录)的 Markdown 文件,里面记录的是 AI 编码代理需要的上下文和指令,比如:
它的定位是补充 README.md:
README.md 给人类贡献者的快速上手、项目介绍,AGENTS.md则是给 AI 的详细工作说明,方便它自动构建、测试、修复
一个典型的AGENTS.md长这样
# Sample AGENTS.md file ## Dev environment tips - Use `pnpm dlx turbo run where <project_name>` to jump to a package instead of scanning with `ls`. - Run `pnpm install --filter <project_name>` to add the package to your workspace so Vite, ESLint, and TypeScript can see it. - Use `pnpm create vite@latest <project_name> -- --template react-ts` to spin up a new React + Vite package with TypeScript checks ready. - Check the name field inside each package's package.json to confirm the right name—skip the top-level one. ## Testing instructions - Find the CI plan in the .github/workflows folder. - Run `pnpm turbo run test --filter <project_name>` to run every check defined for that package. - From the package root you can just call `pnpm test`. The commit should pass all tests before you merge. - To focus on one step, add the Vitest pattern: `pnpm vitest run -t "<test name>"`. - Fix any test or type errors until the whole suite is green. - After moving files or changing imports, run `pnpm lint --filter <project_name>` to be sure ESLint and TypeScript rules still pass. - Add or update tests for the code you change, even if nobody asked. ## PR instructions - Title format: [<project_name>] <Title> - Always run `pnpm lint` and `pnpm test` before committing.
其实就是markdown文件,但是这个文件可以让让 AI 工作更精准。
通过结构化的描述,AI 在写代码、修 bug 时,不必从零推测项目的构建方式和规范,也避免 AI 去执行错误的命令或采用不符合规范的代码风格。
而且因为统一了编写 ,OpenAI Codex、Cursor、RooCode、Google Amp/Jules 等支持同一份 AGENTS.md,一处编写,处处可写,还可以做为团队开发的共享文档。
除此之外,一些大型的monorepo项目,可以不在同的子目录放不同的 AGENTS.md,让AI读取离编辑文件最近的那份,这样一个项目就可以有不同的参照标准了。
53AI,企业落地大模型首选服务商
产品:场景落地咨询+大模型应用平台+行业解决方案
承诺:免费POC验证,效果达标后再合作。零风险落地应用大模型,已交付160+中大型企业
2026-05-07
本地4B开源模型,把任何App当Skill用!告别token焦虑,私密性强~
2026-05-07
Browser Use 0.12 杀疯了!弃用 Playwright,token 用量减半
2026-05-07
本地部署这件事,终于被国产开源AI做明白了!
2026-05-07
多模型管理太麻烦?手把手教你本地搭建这个开源 AI 网关!
2026-05-06
Ollama 换引擎,苹果 M5 封神了
2026-05-06
DeepSeek V4 Pro桌面应用来了:1.6T参数,MIT协议开源
2026-05-04
开源!OpenClaw 桌面版 v0.4.0,对话、文件、模型与工具配置全面升级
2026-04-29
海外著名投资人的内部 AI 工具,才是真干货
2026-03-30
2026-04-03
2026-03-23
2026-04-09
2026-03-31
2026-02-14
2026-02-18
2026-03-03
2026-02-22
2026-04-01
2026-04-22
2026-04-21
2026-04-15
2026-04-09
2026-04-01
2026-03-17
2026-03-13
2026-03-02