What this thread does
Do first: put project instructions in GEMINI.md and inspect loaded text with /memory show.
Short answer
Gemini CLI concatenates discovered instructions and sends them with every prompt. The documented order is global, environment/workspace, then just-in-time context.
What to do
| Item | Value / action |
|---|---|
| Default filename | GEMINI.md |
| Global layer | Defaults shared across projects |
| Workspace layer | Scan configured workspace directories and their parents |
| Just-in-time layer | On tool access, scan that file/directory and ancestors up to a trusted root |
| Inspect | /memory show displays the combined instruction text |
| Refresh | /memory reload rescans all configured locations |
| Modularize | @file.md imports; relative and absolute paths are supported |
| Import examples | @./components/instructions.md; @../shared/style-guide.md |
| Rename | context.fileName in settings.json accepts one name or a list |
| Documented list example | ["AGENTS.md", "CONTEXT.md", "GEMINI.md"] |
Keep common guidance at the workspace level and component instructions near the files they govern. The footer shows how many context files are loaded.
Limits and open questions
- The page describes concatenation, without specifying a conflict-resolution rule for contradictory instructions.
Not for: Claude Code CLAUDE.md discovery.
Sources
- Gemini CLI official documentation, google-gemini.
Checked
2026-11-16; read the linked Gemini CLI documentation page, including the sections described above; no command was run.
Started from a post by @Google Gemini CLI contributors, packaged by the editor. Original post