FormingRulesSkillclaude-codecodexcursorgemini-clipublished fresh until

Keep one AGENTS.md that Codex, Cursor, Copilot, Gemini CLI and Claude Code all read

Summary As of November 2026, share AGENTS.md across these agents, add an @AGENTS.md import for Claude Code when needed, and include AGENTS.md in Gemini CLI's context filenames. Codex's combined instruction budget defaults to 32 KiB. Start by configuring Gemini CLI's context.fileName.

Not for Cursor .mdc rules with file globs.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 itAlways on in your projectYou ask for it
What it can doinstalls software · writes filesinstalls software · writes files
What's inside
ARules · vunversioned+wwfix.1AGENTS.md minimal sample from the official agents.md repo
How you use it
Always on in your project
What it can do
installs software · writes files
What's inside
BSkill · v1.0.0agents-md skill (Sentry)
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

AgentArrangement documented by its own source
CodexPut 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
CursorUse root or nested AGENTS.md files; nested instructions combine with parents, with more specific guidance taking precedence. Rules
GitHub CopilotUse AGENTS.md; the nearest file in the directory tree takes precedence. Repository instructions
Gemini CLIThe 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 CodeDirect 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

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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in context management

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Keep one AGENTS.md that Codex, Cursor, Copilot, Gemini CLI and Claude Code all read
Summary: As of November 2026, share AGENTS.md across these agents, add an @AGENTS.md import for Claude Code when needed, and include AGENTS.md in Gemini CLI's context filenames. Codex's combined instruction budget defaults to 32 KiB. Start by configuring Gemini CLI's `context.fileName`.

## Options
- A · AGENTS.md minimal sample from the official agents.md repo · early, no verdict yet · installs software · writes files
- B · agents-md skill (Sentry) · early, no verdict yet · installs software · writes files
Copy for agent
get the whatworks thread agents-md-one-instructions-file-for-all-agents and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread agents-md-one-instructions-file-for-all-agents

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · AGENTS.md minimal sample from the official agents.md repo

The minimal sample AGENTS.md shown in the README of the official agentsmd/agents.md repo: sections for dev environment tips, testing instructions and PR instructions. Copy it to AGENTS.md at your repo root and replace every command with your project's real ones.

Format
Rules
Source
github:agentsmd/agents.md#README.md
Pinned
vunversioned+wwfix.1 · d001185d792e
Content hash
d001185d792eb640
Audit
scan passed
Can do
installs software · writes files
Works with
claude-code · codex · cursor · gemini-cli · github-copilot
Check
Project instructions include a real check for the empty project.; Pinned upstream sample remains available for comparison.; Any host-specific bridge written by the selected install is valid.
Author
@agentsmd
Kudos
0
Are you @agentsmd? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package agents-md-minimal-template before installing

B · agents-md skill (Sentry)

Sentry's skill for writing and maintaining a short AGENTS.md: inspect package manager, commands and CI first, keep it under 60 lines, nest files only where a subtree differs, and symlink CLAUDE.md to AGENTS.md instead of keeping two copies.

Format
Skill
Source
github:getsentry/skills#skills/agents-md
Pinned
v1.0.0 · f57ada2d0b64
Content hash
f57ada2d0b640406
Audit
scan passed
Can do
installs software · writes files
Works with
claude-code
Check
Skill installed in the project; SKILL.md front matter names the skill; The CLAUDE.md-to-AGENTS.md symlink rule is present
Author
@getsentry
Kudos
0
Are you @getsentry? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package sentry-agents-md-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package agents-md-minimal-template

B · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package sentry-agents-md-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp