Skip to content
Agent Friendly Code

Gemini CLI vs Claude Code: which do top repos set up for?

Claude Code averages higher: 63.5 for Gemini CLI and 71.9 for Claude Code, across 402 repos. Gemini CLI scores higher on 4, Claude Code on 396, and 2 tie.

Scores measure how well each repo is set up for an agent: instruction files, tests, CI and the other checks, weighted by what each agent's docs say it uses, not which agent writes better code.

Which files does each one read?

Reads from the repo
Gemini CLI: GEMINI.md.agents/skills/
Claude Code: CLAUDE.md.claude/CLAUDE.md.claude/rules/CLAUDE.local.mdAGENTS.md.claude/AGENTS.md
Reads AGENTS.md
Gemini CLI: Only when configured to
Claude Code: Only when there is no CLAUDE.md
Reads CLAUDE.md
Gemini CLI: No
Claude Code: Yes
From its docs
Gemini CLI: Reads GEMINI.md from the global file, the workspace and its parent directories, and one per subdirectory once a tool reaches it. AGENTS.md loads once listed in the context.fileName setting.
Claude Code: Reads AGENTS.md only when no CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md is found (v2.1.277 and later). A CLAUDE.md that imports @AGENTS.md loads both, as does a setting.
Repos with its own file
Gemini CLI: GEMINI.md: 6 of 402 (1%)
Claude Code: CLAUDE.md only: 18 of 402 (4%)

AGENTS.md and CLAUDE.md mean the file at the repo root; a repo with both counts under AGENTS.md, and empty files don't count. Every agent's files.

Which checks does each weigh more?

Share of each agent's score that a check carries, where Gemini CLI and Claude Code differ most
CheckGemini CLIClaude Code
GEMINI.md11%0%
AGENTS.md / CLAUDE.md8%13%
Skills (.agents/skills)4%0%
Reproducible dev env8%12%
Test suite10%13%
Type configuration10%8%

Each figure is the check's share of the agent's total weight, from the docs linked below. A check few repos pass, such as an agent's own file, lowers that agent's scores wherever it carries weight. The methodology lists every weight.

Which repos are set up better for Gemini CLI than Claude Code?

Which repos are set up better for Claude Code than Gemini CLI?

Which one leads in each language?

Average Gemini CLI and Claude Code scores of the repos in each language; the higher is in bold
LanguageReposGemini CLIClaude Code
TypeScript8367.677.0
Python5666.975.6
Rust4567.574.9
Go4067.676.7
Java2858.866.9
C++2155.564.0
JavaScript1569.679.2

What if I use both?

  1. Write the shared instructions once, in AGENTS.md at the repo root. What to put in it.
  2. Gemini CLI: list AGENTS.md in the context.fileName setting, or keep a GEMINI.md.
  3. Claude Code: import @AGENTS.md in a CLAUDE.md; without that, a CLAUDE.md hides AGENTS.md from it.

AGENTS.md vs CLAUDE.md · Which files each agent reads · Make a repo agent-ready

From the docs: geminicli.com/gemini-md (new tab) · geminicli.com/skills (new tab) · code.claude.com/memory (new tab) · code.claude.com/skills (new tab)

Boards: best set up for Gemini CLI · best set up for Claude Code

More comparisons: Claude Code vs Cursor · Claude Code vs Codex · Cursor vs Codex · Aider vs Claude Code · OpenHands vs Claude Code · Pi vs Claude Code · Kimi Code CLI vs Claude Code · Devin vs Claude Code · Codex vs Gemini CLI