GEMINI.md context files provide instructional context to the Gemini model so you do not repeat instructions in each prompt. Gemini CLI loads global, workspace and just-in-time files, concatenates them and sends them with every prompt.
Was es kann
Wo GEMINI.md läuft und was es ergänzt, laut Dokumentation
Loads global context from ~/.gemini/GEMINI.md
Searches workspace directories and parents for GEMINI.md
Loads just-in-time GEMINI.md files when a tool accesses a directory
Imports other files with @file.md syntax
/memory show and /memory reload inspect and refresh loaded context
File name configurable via context.fileName in settings.json
Wann Sie es einsetzen sollten
Gut geeignet
You want project coding style and instructions applied to every Gemini CLI prompt
You want component-specific instructions loaded only when relevant
You want one set of shared instructions via a custom file name such as AGENTS.md
Nicht geeignet für
Saving individual facts on demand: the docs point to the Memory tool
So installieren Sie GEMINI.md
Sie benötigen: Gemini CLI
Create GEMINI.md at the project root (or ~/.gemini/GEMINI.md for global)
Add general instructions and coding style as markdown
Optionally import files with @./components/instructions.md
Run /memory show to inspect the loaded context
Optionally set context.fileName in settings.json
Konfigurationsbeispiel (aus der offiziellen Dokumentation)
Quelloffener Terminal-KI-Agent von Google, der Gemini auf die Kommandozeile bringt; laut Website wurden Nutzer ohne Bezahltarif und Google-One-Nutzer zur Antigravity CLI umgezogen.