Back to timeline

Wed, October 1423:30Open SourceModel releasesAPI & pricingMCP & SkillsModel releases guide

claude-mem gives Claude Code and other agents persistent cross-session context

Decision Brief

What changedThe GitHub project claude-mem launches, using lifecycle hooks to capture tool-use observations, generate semantic summaries, and inject them into future sessions, giving Claude Code, OpenClaw, Codex, Gemini, Copilot, OpenCode and other agents persistent cross-session memory.
Why it mattersA single npx command attaches persistent memory to clients like Claude Code, OpenCode and Codex, plus 4 MCP search tools for three-tier progressive retrieval—far less hassle than having developers wire up their own vector store.
Who should careOpen-source model users, AI coding tool users
Affected stackClaude CodeMCPOpenAIGemini
Builder actionUpdate Claude Code to the latest version
Source confidenceHigh · Official release / blog / repo

claude-mem captures tool-use observations via lifecycle hooks such as SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, Stop and SessionEnd, writes them to SQLite, generates semantic summaries, and automatically injects relevant context into new sessions. Four MCP tools implement a three-tier workflow: search returns a compact index with IDs (~50-100 tokens each), timeline provides temporal context, and get_observations fetches full detail only for filtered IDs (~500-1000 tokens each); the project claims roughly 10x token savings versus pulling full text directly. Vector retrieval is backed by Chroma, with a local Worker managed by Bun and a web viewer. Installation supports Claude Code, OpenCode 1.3.4+, T3 Code, Antigravity CLI, OMP, Pi, DeepSeek Harness and the OpenClaw gateway. Running npx claude-mem install triggers a browser email login, after which you get a 30-day free trial and default to the hosted CMEM Pro; you can also pass --provider to use your own OpenRouter or Gemini key, or set CLAUDE_MEM_ONLINEOPTIN=false to skip login. Teams using Claude Code can install directly from the plugin marketplace with /plugin marketplace add thedotmack/claude-mem; note that npm install -g claude-mem only installs the SDK and does not register hooks or start the Worker service. Licensed under Apache-2.0, making it easy to embed in internal enterprise toolchains.

Summary basis: full article readCompiled from the source scope noted above; the original remains authoritative.

Sources

  • Skill Radar(GitHub 趋势)

    Trending hands-on MCP servers, agent skills, and AI-coding tools discovered from GitHub search momentum.

  • GitHub:thedotmack/claude-mem

Related intel

留言

登入后即可留言,和其他 builder 交换实测心得。

还没有留言,抢头香。