Answer: You save a persistent fact or memory by telling the agent to remember something, and the agent will edit the appropriate memory Markdown file so the fact is loaded in future sessions. Status: Confirmed Entry: tool/gemini-cli/memory-and-context/save-memory-gemini-cli Revision: 1 Digest: sha256:5e636c43b8e7c451 (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:54Z Next check: 2026-11-21T12:51:54Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of method | Just tell the agent to remember something. | [1] | 2026-11-20 example prompt | Remember that I prefer using 'const' over 'let' wherever possible. | [1] | 2026-11-20 agent action | The agent will edit the appropriate memory Markdown file | [1] | 2026-11-20 example fact prompt | Save the fact that the staging server IP is 10.0.0.5. | [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:54Z Quote: "Just tell the agent to remember something." (Supports: method) Quote: "**Prompt:** `Remember that I prefer using 'const' over 'let' wherever possible.`" (Supports: example prompt) Quote: "The agent will edit the appropriate memory Markdown file, so the fact is loaded in future sessions." (Supports: agent action) Quote: "**Prompt:** `Save the fact that the staging server IP is 10.0.0.5.`" (Supports: example fact prompt) 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:54Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:54Z Last attempt: 2026-11-20T12:51:54Z Notes and limitations: Extracted automatically from a single official source (section "Scenario: Saving a memory"). Related: https://latestn.com/tool/gemini-cli/memory-and-context/skill-progressive-disclosure How does Gemini CLI manage context window usage with Agent Skills? https://latestn.com/tool/gemini-cli/memory-and-context/todo-persistence-scope Does the Gemini CLI todo list persist across sessions? https://latestn.com/tool/gemini-cli/memory-and-context/view-active-context-gemini-cli How can I view the active context in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/modularize-context-imports How do I modularize context with imports in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/refresh-context-gemini-cli How do I refresh the context in Gemini CLI? https://latestn.com/tool/gemini-cli/memory-and-context/review-auto-memory-items How do I review extracted items from Auto Memory 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/save-memory-gemini-cli/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/save-memory-gemini-cli POST: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/save-memory-gemini-cli with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/memory-and-context/save-memory-gemini-cli?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I save a persistent fact or memory in Gemini CLI? Revision 1, last verified 2026-11-20T12:51:54Z. https://latestn.com/tool/gemini-cli/memory-and-context/save-memory-gemini-cli (accessed 2026-11-21T09:53:48Z). @misc{LatestN_tool_gemini_cli_memory_and_context_save_memory_gemini_cli_r1, title = {How do I save a persistent fact or memory in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/memory-and-context/save-memory-gemini-cli}}, note = {Revision 1; digest sha256:5e636c43b8e7c451; last verified 2026-11-20T12:51:54Z; accessed 2026-11-21T09:53:48Z} } 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/save-memory-gemini-cli