Give the project persistent instructions with GEMINI.md

sessions & context

// what it does

GEMINI.md files hold standing instructions — coding style, conventions, architecture notes — that load automatically every session. They merge in order of precedence: global ~/.gemini/GEMINI.md, then any GEMINI.md walking up from the workspace to the repo root, then files in subdirectories. Run /init to have the CLI generate a starter GEMINI.md for the current project, and import other files inside it with @path/to/file.md.

// shell

$ /init
$ /memory show

// gotcha

Deeper files override shallower ones, so a subdirectory GEMINI.md can quietly countermand your global rules — use /memory show to see the exact merged context. Rename the context file via context.fileName in settings.json (it also accepts an array like ["AGENTS.md", "GEMINI.md"]).

// resources