GEMINI.md
A context configuration file used by Gemini CLI, supporting three levels: global, project, and subfolder. It is used to persistently inject project information, coding standards, and personal preferences into the AI. Content from multiple levels is automatically merged and applied.
Core Facts
Timeline (last 90 days)
The advice for first-time users is: first get familiar with slash commands such as `/plan`, `/model`, and `/auth` on a small project; for complex tasks, insist on advancing in phases and continue only after validating each phase; establish GEMINI.md early to accumulate project conventions.
Claude Code uses CLAUDE.md and Cursor uses rules files, both of which belong to the same category of agent instruction files as GEMINI.md.
Gemini CLI reads GEMINI.md by default, but AGENTS.md can be added to the list via the context file name setting.
Claude Code uses its own name CLAUDE.md for the same concept as AGENTS.md, while Gemini CLI uses GEMINI.md.
Copilot CLI loads `AGENTS.md`, `.github/copilot-instructions.md`, `~/.copilot/copilot-instructions.md`, `CLAUDE.md`, and `GEMINI.md` all merged together at startup.
The author argues that the files responsible for instructions (AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules) keep changing, but the underlying facts do not change, so facts should be defined once and all instruction files should point back to the same source.
If a repository uses multiple AI coding tools at the same time, you can maintain one main instruction file and then point to it with symbolic links or brief forwarding files, avoiding inconsistencies in rules across multiple files.
AGENTS.md is promoted by teams such as OpenAI and positioned as a cross-tool universal agent instruction file; GEMINI.md is the project context file read by Gemini CLI; their format requirements are basically the same as those of CLAUDE.md: written in Markdown, placed in the repository root, and loaded automatically at startup.
GitHub Copilot CLI reads and merges AGENTS.md, CLAUDE.md and GEMINI.md in the repository, and the documentation does not define the precedence among them.
Gemini CLI automatically loads three levels of GEMINI.md files—global, project, and folder level—without requiring any additional configuration.
4 more timeline events
All Facts (18)
Gemini CLI uses TOML as the configuration format for custom commands, with command files stored in the project's .gemini/commands/ directory.
80%VerifiedGemini CLI defines project-level rules and preferences through a GEMINI.md configuration file
70%UnverifiedWhen GEMINI.md files exist at multiple levels simultaneously, their contents are merged and injected into the context.
90%UnverifiedGEMINI.md is a Markdown-format instruction file whose contents are automatically injected as context to the model at the start of every Gemini CLI session.
90%UnverifiedGemini CLI reads GEMINI.md by default, but AGENTS.md can be added to the list via the context file name setting.
60%UnverifiedGemini CLI automatically loads three levels of GEMINI.md files—global, project, and folder level—without requiring any additional configuration.
60%UnverifiedThe advice for first-time users is: first get familiar with slash commands such as `/plan`, `/model`, and `/auth` on a small project; for complex tasks, insist on advancing in phases and continue only after validating each phase; establish GEMINI.md early to accumulate project conventions.
50%UnverifiedClaude Code uses CLAUDE.md and Cursor uses rules files, both of which belong to the same category of agent instruction files as GEMINI.md.
50%UnverifiedClaude Code uses its own name CLAUDE.md for the same concept as AGENTS.md, while Gemini CLI uses GEMINI.md.
50%UnverifiedCopilot CLI loads `AGENTS.md`, `.github/copilot-instructions.md`, `~/.copilot/copilot-instructions.md`, `CLAUDE.md`, and `GEMINI.md` all merged together at startup.
50%UnverifiedThe author argues that the files responsible for instructions (AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules) keep changing, but the underlying facts do not change, so facts should be defined once and all instruction files should point back to the same source.
50%UnverifiedAGENTS.md is promoted by teams such as OpenAI and positioned as a cross-tool universal agent instruction file; GEMINI.md is the project context file read by Gemini CLI; their format requirements are basically the same as those of CLAUDE.md: written in Markdown, placed in the repository root, and loaded automatically at startup.
50%UnverifiedIf a repository uses multiple AI coding tools at the same time, you can maintain one main instruction file and then point to it with symbolic links or brief forwarding files, avoiding inconsistencies in rules across multiple files.
50%UnverifiedGitHub Copilot CLI reads and merges AGENTS.md, CLAUDE.md and GEMINI.md in the repository, and the documentation does not define the precedence among them.
50%UnverifiedThe contents of the three-tier GEMINI.md are injected into the context in the order global → project → subfolder, with content accumulating additively rather than overwriting each other.
50%UnverifiedGEMINI.md should document project-specific information (such as non-obvious build commands, naming conventions, and common pitfalls) rather than general knowledge the model already possesses.
50%UnverifiedThe global GEMINI.md file is typically located at ~/.gemini/GEMINI.md in the user's home directory, the project file is located at the root of the Git repository, and the subfolder file is located under any subdirectory.
50%UnverifiedThe /init command reads the project structure and generates a draft GEMINI.md within seconds.
50%