Skip to main content
连接
编程智能体
Gemini CLI

Gemini CLI

Gemini-native extension backed by nmem: hooks, persistent startup context, routed recall, real session import before compression or exit, distillation, and handoff summaries.

从配置提示或连接指南开始,详细步骤请查看指南。

Agent shortcut

Ask your agent to set it up

Copy the setup prompt. Your agent will open this guide, use the recommended path, and verify the setup.

One-Minute Setup

  1. Open the Gemini CLI Extensions Gallery.
  2. Search for Nowledge Mem and install it.
  3. Restart Gemini CLI.
  4. Run nmem status once, then open a new Gemini session.

Listed In The Extensions Gallery

Nowledge Mem is live in the official Gemini Extensions Gallery. Open the listing above for the fastest install path, or use the full guide if you prefer GitHub or local linking.

What You Get

  • Context Bundle / Working Memory, routed recall, distillation, and handoff surfaces inside Gemini CLI
  • Bundled local MCP tools for retrieval and memory writes
  • Real thread save through nmem t save --from gemini-cli, including before compression and at session end
  • Older Gemini CLI sessions can be backfilled with nmem t sync --from gemini-cli --all-projects
  • Clean local and remote auth through nmem

Remote Mode

Command
nmem config client set url https://your-server
nmem config client set api-key your-key
nmem config mcp show --host gemini-cli

Paste the generated MCP block into Gemini settings when the MCP tools should use remote Mem.

Thread Save vs Handoff

Use save-thread for the real Gemini session import. The extension also saves before compression and when the session ends. Use save-handoff for a concise resumable summary.

Import Older Sessions

Command
nmem t sync --from gemini-cli --all-projects --limit 20
nmem t sync --from gemini-cli --all-projects --apply

更多编程智能体连接