Claude-Mem for Gemini CLI

New Gemini session.
Bring the useful context.

Keep the decisions, discoveries and fixes from your coding work close to the next session. Capture supported activity through native hooks. Verify the saved context before you rely on it in a new session.

Claude-Mem mascot carrying a project note into the next session

Source reviewed November 17, 2026 · Gemini CLI integration

01

Keep the useful part of the session

Native Gemini CLI hooks send supported prompts and tool results to the Claude-Mem worker. The observer turns that activity into saved memory, and a new session can receive relevant project context. This is the Gemini CLI integration, not the Gemini model provider or Antigravity adapter.

02

Separate capture from recall

The Gemini installer adds capture hooks. It does not configure MCP tool access or replace an existing remote MCP connection. Use the status command to inspect capture, then verify any separate memory-tool connection you want to use.

03

Choose the provider that writes the notes

Automatic observations and summaries use your configured observer provider and may use its credits. Captured text and tool results go to that provider. Saved memories follow your existing sync settings; installing capture hooks does not select a different provider.

04

Verify what reached the next session

Use a small project and a harmless file with a distinctive fact. Confirm a saved observation, then start a new Gemini session in the same project and check its initial memory context. Memory should be checked against the current work, not assumed to be complete.

Start with one project

Install. Check a memory. Start again.

Install Claude-Mem and Bun first, configure the observer provider you want to use, then add and inspect the Gemini CLI capture hooks:

npx claude-mem gemini install
npx claude-mem gemini status

Restart Gemini CLI after setup. The installer preserves unrelated settings, hooks and MCP servers and backs up the settings file before its first change. This installs capture hooks only; MCP access remains separate.

  1. Open a disposable project and ask Gemini CLI to read a harmless file containing a distinctive fact.
  2. Check the Claude-Mem work viewer for a new observation from that task. Let pending processing finish and inspect any errors.
  3. Start a new Gemini session in the same project. Check that its initial memory context contains the saved observation, and compare it with the source file.

Before you connect

Is this the same as selecting Gemini as my model provider?

No. Native hooks capture work performed in Gemini CLI. The observer provider processes that work into memory. The Gemini model provider and Antigravity CLI each have separate setup paths.

What happens if the worker is unavailable?

Events missed while the worker is unavailable are not replayed automatically by this integration. Restore worker availability and verify new work before relying on the saved history.

Which environments have been tested?

The source guide documents Gemini CLI 0.44.1 on macOS with synthetic projects and local fake model endpoints. Those tests do not establish real Google model behavior or Windows/Linux execution. Check the current setup guide for later results.

Will repeated event deliveries always be deduplicated?

The tested Gemini CLI version does not supply a tool-call ID in AfterTool. The integration therefore cannot promise duplicate-event identification across externally repeated deliveries. It does not invent IDs from tool arguments.

Follow the source

Your next session has somewhere to start.

Verify local capture first. Add sync when you need your project memory in another place.