- How you use it
- Always on in your project
- What it can do
- installs software · writes files
- What's inside
The options
Same job, different trade-offs. Pick one in Try it.
| Option | ARules · vunversioned+wwfix.1AGENTS.md minimal sample from the official agents.md repo | BSkill · v1.0.0agents-md skill (Sentry) |
|---|---|---|
| How you use it | Always on in your project | You ask for it |
| What it can do | installs software · writes files | installs software · writes files |
| What's inside |
- How you use it
- You ask for it
- What it can do
- installs software · writes files
- What's inside
What this thread does
Do first: keep shared instructions in AGENTS.md; configure Gemini CLI's context.fileName to include it (Gemini CLI).
Short answer
One shared content file is possible, with tool-specific loading rules. The five products document the following arrangements.
What to do
| Agent | Arrangement documented by its own source |
|---|---|
| Codex | Put AGENTS.md at the project root. Discovery proceeds toward the working directory, selecting at most one file per directory: AGENTS.override.md before AGENTS.md, then configured fallbacks. Later files override earlier guidance. The combined project_doc_max_bytes budget defaults to 32 KiB. Guide |
| Cursor | Use root or nested AGENTS.md files; nested instructions combine with parents, with more specific guidance taking precedence. Rules |
| GitHub Copilot | Use AGENTS.md; the nearest file in the directory tree takes precedence. Repository instructions |
| Gemini CLI | The default filename is GEMINI.md. In settings.json, set context.fileName to include AGENTS.md. The documented example is {"context":{"fileName":["AGENTS.md","CONTEXT.md","GEMINI.md"]}}. Context files |
| Claude Code | Direct loading requires v2.1.277 or later. By default, a CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md in the working directory or an ancestor takes priority. Put @AGENTS.md in the adjacent CLAUDE.md to include the shared file; keeping that import does not duplicate it. Memory |
For Gemini CLI, /memory show displays the assembled context and /memory reload rescans context files (commands).
Limits and open questions
Sharing the file does not establish identical instruction precedence: the loading rules above differ. Claude Code also documents sessions that require importing from CLAUDE.md instead of direct loading (session limits). These pages do not establish identical instruction-following behavior across agents.
Not for: Cursor's scoped .mdc rule configuration.
Sources
- OpenAI: AGENTS.md guide.
- Cursor: Rules.
- GitHub: Repository instructions.
- Google: Gemini CLI context files.
- Anthropic: Claude Code memory.
Checked
2026-11-17: read the AGENTS.md guide, Cursor rules, Copilot repository instructions, Gemini CLI context files and Claude Code memory pages; no command was run.
Started from a post by @anthropics, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.