GEMINI.md guidance.
~/.gemini/settings.json and a Beads section in your user-level ~/.gemini/GEMINI.md, which Gemini CLI loads in every project, so there the section applies only in repositories that use beads. A global install leaves the current directory’s files alone. For project-local hooks and a section in the project’s GEMINI.md, use:
~/.gemini, --project is the global install: it uses ~/.gemini/settings.json and ~/.gemini/GEMINI.md, and does not create ~/GEMINI.md.
The hook runs bd prime --hook-json so Gemini receives compact Beads workflow context at session start. The GEMINI.md section is a short pointer to bd prime. In an existing ~/.gemini/GEMINI.md your text is kept, and the section goes ahead of the ## Gemini Added Memories section older Gemini CLI releases keep there, so memories they save stay outside it.