Update loaded memory without restarting

sessions & context

// what it does

/memory manages the instructional context from GEMINI.md files at runtime. /memory show prints the combined text currently in effect, /memory add "..." appends a fact to your global GEMINI.md, and /memory refresh re-reads all context files after you edit them on disk. /memory list shows which files were discovered.

// shell

$ /memory show
$ /memory add "Always use TypeScript strict mode"
$ /memory refresh

// gotcha

/memory add writes to the global ~/.gemini/GEMINI.md, so a note meant for one project leaks into every project — edit the project's own .gemini/GEMINI.md by hand for repo-specific rules. Edits to GEMINI.md files are not picked up until you run /memory refresh.

// resources