RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

AGENTS.md vs CLAUDE.md vs Cursor rules vs GEMINI.md

Every comparison page on the web is a capability table someone wrote from the vendor docs in an afternoon. None of them can tell you how many real repositories ship each file, how long the median one runs, or how often two of them turn up in the same project. Those answers need a corpus, and RuleStack counts one every night.

Measured — counted from real repositories, nightlyAsserted — read from the vendor docs, dated
CompareAGENTS.mdCLAUDE.mdCursor rulesCopilot instructionsCline rulesGEMINI.md.cursorrulesWindsurf rulestwo to five
FormatAGENTS.md
2026-08-02
CLAUDE.md
2026-08-02
Cursor rules
2026-08-02
GEMINI.md
2026-08-01
Asserted — what the docs say it can express
FileAGENTS.mdCLAUDE.md.cursor/rules/*.mdcGEMINI.md
Statusopen-standardvendorvendorvendor
Cross-toolYesNoNoNo
Tools that read it
  • OpenAI Codex
  • Cursor
  • Amp
  • Aider
  • Zed
  • Google Jules
  • Gemini CLI
  • Factory
  • RooCode
  • opencode
  • Devin
  • Warp
  • goose
  • VS Code
  • GitHub Copilot coding agent
  • Windsurf
  • Junie (JetBrains)
  • Kilo Code
  • Augment Code
  • UiPath Autopilot
  • Semgrep
  • Phoenix
  • Ona
  • Claude Code
  • Cursor
  • Gemini CLI
  • Gemini Code Assist
FrontmatterNoNoYesNo
Glob targetingNoNoYesNo
Imports other filesNoYesYesYes
Nested / per-directoryYesYesYesYes
Multiple filesYesYesYesYes
User-level scopeNoYesNoYes
When it appliesAlways in scope; in a monorepo the nearest AGENTS.md to the edited file wins.Always in scope. Project file, plus nested files in subdirectories, plus a user-level file (~/.claude/CLAUDE.md) that applies across every project.Four modes set in frontmatter: Always Apply (every chat session), Apply Intelligently (the agent picks it by description), Apply to Specific Files (globs match the edited file), and Apply Manually (@-mentioned). Rules must carry the .mdc extension — a plain .md file in .cursor/rules is ignored.Hierarchical memory: a global ~/.gemini/GEMINI.md, then the project file, then nested files, concatenated from broadest to narrowest.
Size limitsNoneNoneNoneNone
Measured — counted from real repositories on 2026-08-03
Repositories carrying it39624817933
Share of indexed repos57.0%35.7%25.8%4.8%
Files indexed1,3667751,27946
Median length (words)9542,042272257
90th percentile length2,9552,9981,1711,704
Files naming commands42.9%34.1%29.3%52.2%
Files containing code36.5%34.5%58.0%45.6%
Median quality score52445260
Median repository stars8,6291122411,297

How often they turn up together

A capability table cannot answer this at all. Of the repositories carrying the first format, this is the share that also carry the second — counted, both directions, on 2026-08-03.

Cursor rules + GEMINI.md

2026-08-03

11

repositories carry both. That is 6.1% of everything with Cursor rules, and 33.3% of everything with GEMINI.md.

CLAUDE.md + GEMINI.md

2026-08-03

17

repositories carry both. That is 6.9% of everything with CLAUDE.md, and 51.5% of everything with GEMINI.md.

CLAUDE.md + Cursor rules

2026-08-03

55

repositories carry both. That is 22.2% of everything with CLAUDE.md, and 30.7% of everything with Cursor rules.

AGENTS.md + GEMINI.md

2026-08-03

23

repositories carry both. That is 5.8% of everything with AGENTS.md, and 69.7% of everything with GEMINI.md.

AGENTS.md + Cursor rules

2026-08-03

68

repositories carry both. That is 17.2% of everything with AGENTS.md, and 38.0% of everything with Cursor rules.

AGENTS.md + CLAUDE.md

2026-08-03

126

repositories carry both. That is 31.8% of everything with AGENTS.md, and 50.8% of everything with CLAUDE.md.

What each one is for

AGENTS.md

2026-08-02

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

Strengths

  • Read by more agents than any other format — one file covers most of a team's tooling
  • No schema to get wrong; a plain markdown file always parses
  • Nested files let a monorepo scope instructions per package

Weaknesses

  • No glob targeting — every rule is loaded for every file, spending context
  • No imports, so shared rules must be duplicated across packages
  • No frontmatter means no machine-readable metadata for tooling to act on
Full page Browse 1,366 files

CLAUDE.md

2026-08-02

Claude Code's memory file. Shaped like AGENTS.md but with two things it lacks: @path imports, so shared rules live in one place, and a user-scope layer that follows the developer across repos rather than shipping with the code.

Strengths

  • @path imports — shared conventions written once and pulled into each file
  • A user-scope file lets personal preferences live outside the team repo
  • Nested project files compose with the root file rather than replacing it

Weaknesses

  • Single-vendor: no other agent reads it, so multi-tool teams maintain two files
  • No glob targeting, same context cost as AGENTS.md — path-scoped rules exist, but in a separate .claude/rules/ file, not in CLAUDE.md itself
Full page Browse 775 files

Cursor rules

2026-08-02

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

Strengths

  • Glob-scoped activation — the only widely-used format that keeps unrelated rules out of context
  • Description-based activation lets the agent pull a rule in on demand
  • Many small files are easier to review in a PR than one growing document

Weaknesses

  • Cursor-only
  • Frontmatter is a schema, and a malformed .mdc silently stops applying
  • Fragmentation: rules spread over many files are easy to duplicate and contradict
Full page Browse 1,279 files

GEMINI.md

2026-08-01

Gemini CLI's memory file, structurally close to CLAUDE.md — @imports and a user-scope layer — which is why repos that carry both usually carry near-identical text in each.

Strengths

  • @path imports and a global user file, same composition model as CLAUDE.md
  • Explicit hierarchy from global to local

Weaknesses

  • Google-only
  • No glob targeting
Full page Browse 46 files
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack