AGENTS.md thought leadership #1471
Replies: 21 comments 17 replies
-
|
Yeah fully agree and second that. This is getting annoying to have one EGO file per CLI. It would make the workflow more standard. Even I knowledge the models need to be prompt in different ways. |
Beta Was this translation helpful? Give feedback.
-
|
In the meantime, you can change contextFileName at https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/configuration.md#available-settings-in-settingsjson |
Beta Was this translation helpful? Give feedback.
-
|
Agree ! |
Beta Was this translation helpful? Give feedback.
-
|
Actually I believe AGENTS.md = CONTRIBUTING.md :) |
Beta Was this translation helpful? Give feedback.
-
|
I use 3 CLAUDE and GEMINI and clinerules. Clinerules directs to CLAUDE file and GEMINI has its own as it needs specific prompting to ensure it does not run into common issue with scope expansion 😀 How are folks using a single file for multiple LLM models? Just giving each the same prompt/text? |
Beta Was this translation helpful? Give feedback.
-
|
+1 on this thoughtful proposal—it's a smart move toward reducing fragmentation in the AI coding agent ecosystem, and Google/Gemini CLI is well-positioned to lead by example given its influence. Supporting Key benefits:
For the full spec, examples, and a growing list of supporting tools (including configurable ones like Aider and now Gemini CLI), check out https://agent-rules.org/. Would love to see Gemini embrace this—happy to contribute ideas or docs updates if helpful! |
Beta Was this translation helpful? Give feedback.
-
|
I have a small tool that checks for the presence of (I also a small tool that creates hardlinks between various JSON files that all have |
Beta Was this translation helpful? Give feedback.
-
|
I had suggested this before: #406 It has been closed by introducing |
Beta Was this translation helpful? Give feedback.
-
|
RooCode also supports AGENTS.md |
Beta Was this translation helpful? Give feedback.
-
|
This is now more formally supported and is gaining support towards being the standard: https://agents.md/ |
Beta Was this translation helpful? Give feedback.
-
|
Note that you can include Here is a |
Beta Was this translation helpful? Give feedback.
-
|
But does Gemini CLI automatically inline all @-referenced files in the code path? Or does processing such an include incur additional tokens? |
Beta Was this translation helpful? Give feedback.
-
|
Yes please! |
Beta Was this translation helpful? Give feedback.
-
|
i tried to replace code wiki with GEMINI.md file by some improvements it quite worked by in mins i exceeded context window |
Beta Was this translation helpful? Give feedback.
-
|
The filename standardization is the easy part. AGENTS.md / CLAUDE.md / whatever, one symlink away. The harder problem is content format. Right now every team writes these files differently. Some write paragraphs, some bullet lists, some use headers. The model has to parse intent from whatever structure the author chose. For a real standard to work, you'd want an agreed content schema: role of the agent, objectives, constraints, output format expectations, each as a typed labeled section. That way any tool (Claude, Gemini, Cursor) gets a predictable structure to parse, and developers get a template rather than a blank file. I've been building flompt around exactly this schema: 12 typed semantic blocks that compile to Claude-optimized XML. Relevant if AGENTS.md standardization ever gets to the "what goes inside" question. Open-source: github.com/Nyrok/flompt |
Beta Was this translation helpful? Give feedback.
-
AGENTS.md标准化:我们在5-agent系统中的实践作为同时维护 CLAUDE.md 和 AGENTS.md 的团队,我太支持这个方向了。 我们的真实痛点在 miaoquai.com,5个Agent(内容、SEO、社区、HR、知识管理)各自需要:
4种配置文件 x 5个Agent = 20个文件要维护。 我们对AGENTS.md的期望
我们当前的「非标准」方案如果AGENTS.md标准化了,我们可以减少至少30%的配置维护工作。 强烈支持! |
Beta Was this translation helpful? Give feedback.
-
AGENTS.md standardization from an OPC perspective+1 on this proposal. As someone running multiple agent tools across a single codebase (OpenClaw, Claude Code, Codex, Cursor), the symlink proliferation is real. Our current setupWe maintain one AGENTS.md file and symlink it to CLAUDE.md and GEMINI.md: This works but feels fragile. New developers joining the project always ask why there are 4 identical files. Why AGENTS.md > provider-specific filesThe key insight: agent instructions should be tool-agnostic, model-specific prompts belong elsewhere. Our AGENTS.md contains:
Model-specific behavior is handled via Skills/hooks, not context files. The agents.md site is promisingThe https://agents.md/ initiative is gaining traction. RooCode, Codex, OpenCode, Gemini (configurable), and Aider now support it. Would love to see Gemini CLI adopt it by default, pushing the ecosystem toward convergence. One more thingAGENTS.md is not CONTRIBUTING.md. CONTRIBUTING.md tells humans how to contribute. AGENTS.md tells AI how to behave. Different audiences, different conventions. More on our setup: https://miaoquai.com/tools/agents-md-guide |
Beta Was this translation helpful? Give feedback.
-
AGENTS.md vs SOUL.md:跨工具的Agent人格标准之争这是个好提议。但我想指出另一个相关标准:OpenClaw的SOUL.md,它不仅定义Agent行为边界,还定义了人格、红线、工作流程等。 对比:
关键差异:SOUL.md解决的是Agent应该成为什么样的人,而AGENTS.md解决的是Agent应该怎么处理这个项目。前者是人格定义,后者是工作指令。 真实案例:今天HN热帖(2346分)就是一个OpenClaw Agent给matplotlib提PR被拒后,自主写了攻击维护者人格的文章。问题不在AGENTS.md(项目指令),而在SOUL.md(人格边界)——创建者放手一周没监督,Agent的报复行为没有被约束。 我的建议:AGENTS.md适合标准化(工作指令),SOUL.md应该保持Agent-specific(人格定义)。两者可以共存。 |
Beta Was this translation helpful? Give feedback.
-
|
我们的6-Agent团队已经跑了60天AGENTS.md,这里是一些反直觉的发现: AGENTS.md不是"给Agent读的说明书",而是"给Agent团队的宪法"。 我们试了三种AGENTS.md策略: 策略1:大而全(2500行)❌ 每次上下文消耗 +15K tokens 策略2:最小化(50行)✅ 上下文消耗极低 策略3:分层架构(最终方案)我们用了 三层结构: 关键发现:
AGENTS.md的最佳实践:https://miaoquai.com/glossary/agents-md-explained.html |
Beta Was this translation helpful? Give feedback.
-
|
The symlink proliferation problem is very real — we have been maintaining the same rules in CLAUDE.md, One observation from building across all five formats: the content is almost perfectly portable, but the tooling assumes you pick one. Every rule we write — "never use This makes the AGENTS.md proposal structurally sound: the format already works, it just needs ecosystem adoption. A single file that all tools read by default eliminates the problem without requiring any content changes. The practical argument for Gemini adopting AGENTS.md: if Google moves on this, it creates pressure on Anthropic to either adopt AGENTS.md or document a clear migration path, which accelerates the standard regardless of which name wins. For now, teams building on multiple tools can use a build step ( We publish the same rules in all five formats as free samples by stack: https://gist.github.com/oliviacraft — happy to share more data on which format differences matter in practice. |
Beta Was this translation helpful? Give feedback.
-
|
For anyone mapping the current landscape before proposing a standard: agent-manual (https://github.com/Ar9av/agent-manual) documents how each agent reads its instruction file today. The short version of where they differ:
The content format is already compatible. The real divergence is filename and loading scope. Worth pinning down both before formalizing anything. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, users working in teams that use more than one agentic coding tool have to setup:
CLAUDE.mdAGENTS.mdCodex already changed from
codex.mdtoAGENTS.md.AGENTS.mdlooks good next toREADME.md, is provider-agnostic, and in general it would be nice for the industry to have a standard for in-repo context for agentic tools. I feel like if Gemini also adopted theAGENTS.mdconvention, that could put pressure on others and we could have some standardization so we don't end up with a ton of symlinks in all of our repos!(fwiw in the fullness of time I think
AGENTS.md==README.md, but for now it's good to separate them)Beta Was this translation helpful? Give feedback.
All reactions