Skip to content

Refine system prompt instructions for save_memory tool #15678

@gundermanc

Description

@gundermanc

What happened?

I asked Gemini CLI to 'remember' something. It told me it would but didn't save the memory with save_memory tool until I pressed it.

With Gemini 2.5 PRO, I had to ask "Are you going to remember that" before it thought to save the memory.

Image

With Gemini 3 I had to tell it 3 times:

Image

What did you expect to happen?

I would expect Gemini CLI to proactively write memories anytime it's told to "remember" something. Right now it seems to interpret "remember" as a suggestion to adhere to specific guidance during this session. It should at the very least ask.

I think this can be improved by steering the model via prompting. See #15300

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
│                                                                                                     │
│ About Gemini CLI                                                                                    │
│                                                                                                     │
│ CLI Version                        0.22.4                                                           │
│ Git Commit                         e00bcf520                                                        │
│ Model                              auto-gemini-3                                                    │
│ Sandbox                            no sandbox                                                       │
│ OS                                 darwin                                                           │
│ Auth Method                        OAuth                                                            │
│ User Email                         gundermanc@google.com                                            │
│ IDE Client                         VS Code    

Login information

I logged in via a Google Account

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

area/agentIssues related to Core Agent, Tools, Memory, Sub-Agents, Hooks, Agent Qualitystatus/need-triageIssues that need to be triaged by the triage automation.workstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions