docs/tools/memory.md
Gemini CLI persists durable facts, user preferences, and project details by editing Markdown memory files directly.
The agent routes memories to the appropriate Markdown file: shared project
instructions go in repository GEMINI.md files, private project notes go in the
per-project private memory folder, and cross-project personal preferences go in
the global ~/.gemini/GEMINI.md file.
write_file or replace.