Answer: Create a file named `GEMINI.md` in the root of your project and add your instructions to it, then start a new session so Gemini CLI knows these rules automatically. Status: Confirmed Entry: tool/gemini-cli/memory-and-context/create-gemini-md-project-rules Revision: 1 Digest: sha256:72a1e30174bcd87a (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:57Z Last changed: 2026-11-13T03:17:57Z Last verified: 2026-11-20T12:51:53Z Next check: 2026-11-21T12:51:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of file name | GEMINI.md | [1] | 2026-11-20 location | root of your project | [1] | 2026-11-20 next step | Start a new session. | [1] | 2026-11-20 Sources: [1] Google. "Manage context and memory". https://geminicli.com/docs/cli/tutorials/memory-management.md Role: primary. Accessed: 2026-11-20T12:51:53Z Quote: "In the root of your project, create a file named `GEMINI.md`." (Supports: file name, location) Quote: "Start a new session. Gemini CLI will now know these rules automatically." (Supports: next step) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 7e707371a6c1f0f61d60f1968f76f34b52a5524d02810c1656d4036aac5ca1e8 (captured 2026-11-13T03:17:57Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:17:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:53Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:53Z Last attempt: 2026-11-20T12:51:53Z Notes and limitations: Extracted automatically from a single official source (section "Scenario: Create a project context file"). Related: https://latestn.com/tool/gemini-cli/memory-and-context/customize-context-file-name How do I customize the name of the GEMINI.md context file in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/disable-auto-memory How do I disable Auto Memory in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/enable-auto-memory How do I enable Auto Memory in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/chat-history-compression How does Gemini CLI compress chat history? https://latestn.com/tool/gemini-cli/memory-and-context/circular-import-detection How does Gemini CLI prevent circular imports in GEMINI.md files? https://latestn.com/tool/gemini-cli/memory-and-context/context-hierarchy What is the context hierarchy for GEMINI.md files in Gemini CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/memory-and-context/create-gemini-md-project-rules/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/create-gemini-md-project-rules POST: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/create-gemini-md-project-rules with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/create-gemini-md-project-rules?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a GEMINI.md file to define project-wide rules for Gemini CLI? Revision 1, last verified 2026-11-20T12:51:53Z. https://latestn.com/tool/gemini-cli/memory-and-context/create-gemini-md-project-rules (accessed 2026-11-21T10:01:00Z). @misc{LatestN_tool_gemini_cli_memory_and_context_create_gemini_md_project_rules_r1, title = {How do I create a GEMINI.md file to define project-wide rules for Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/memory-and-context/create-gemini-md-project-rules}}, note = {Revision 1; digest sha256:72a1e30174bcd87a; last verified 2026-11-20T12:51:53Z; accessed 2026-11-21T10:01:00Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/memory-and-context/create-gemini-md-project-rules