微信扫码
添加专属顾问
我要投稿
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+中大型企业
2025-08-22
微软炸裂新开源!POML:用“网页”思维重塑LLM提示词工程,告别手搓Prompt噩梦!
2025-08-22
腾讯开源的知识库、智能问答、微信对话机器人
2025-08-22
深度评测智能体平台Coze Studio:附部署教程
2025-08-22
DeepSeek-V3.1发布,拿下全球开源第一,确实可以封神了!(附一手实测)
2025-08-22
阿里AI编程 IDE Qoder 正式发布,BAT 终于凑齐了!
2025-08-21
QA Pairs生成开源项目:大模型应用评测实践
2025-08-21
AI 时代的新物种,重新定义 AI DataAgent|To B 十问
2025-08-21
超过Qwen,字节首次开源大模型Seed-OSS
2025-07-23
2025-06-17
2025-06-17
2025-08-20
2025-07-23
2025-08-05
2025-07-14
2025-08-20
2025-07-12
2025-07-29