104,911 stars: Implementing a hippocampus in an AI coding agent that won't forget.

104,911 stars: Implementing a hippocampus in an AI coding agent that won't forget.

2 weeks ago
duguying
9 views
Source: GitHub

Automatically captures agent conversation observations, compresses them into semantic summaries, and injects them on demand for future conversations. A single command can be used with over ten tools including Claude Code, Codex, and Gemini, under the Apache 2.0 license.

Related tags

#GitHub#Trending#claude-mem#Agent记忆#AI编程

One of the most frustrating aspects of collaborating with AI coding assistants is when they forget everything you told them the day before, rather than making a coding error itself. This "goldfish memory" problem now has a solution: claude-mem, a cross-session persistent memory compression system built for Claude Code and currently supporting over ten Agent tools, which continues to grow at an impressive rate of 336 stars per day.

How it "Remembers" You

claude-mem works through a three-stage pipeline: automatically capturing and observing every tool used in an Agent session, compressing them into semantic summaries using AI, and then injecting the relevant context on demand during future sessions. Once a session ends, project knowledge is preserved.

The search functionality has two key features: first, progressive disclosure – returning memories in layers, each with its own token cost, to avoid overwhelming the context window; and second, a three-step mem-search capability that allows you to query project history using natural language. Privacy is also supported through tagging, allowing you to exclude sensitive content from storage.

One Command for Almost All Agents

The most impressive aspect of claude-mem is its coverage. Besides Claude Code (available on the plugin market via /plugin install claude-mem or npx claude-mem install), it also supports OpenClaw Gateway, Codex (powered by T3 Code), Gemini, Hermes, Copilot, OpenCode, Grok Bot, Antigravity CLI, Pi, and DeepSeek Harness. With a simple curl command, you can install the OpenClaw Gateway and even push observations in real-time to Telegram, Discord, or Slack.

The developers have also launched an integration pilot for Grok Bot: key observations such as decision, bugfix, and security_alert are now being written into the bot's monthly memory logs, allowing Grok Bot to "perceive" project progress even without host hooks.

Where Your Memory Lives – You Decide

When installing, you can choose your preferred memory provider: claude-mem observer (with a 30-day free trial before automatically reverting to your Anthropic subscription), your own OpenRouter or Gemini key, or a direct connection to your Anthropic subscription. CI and non-interactive environments can completely skip login. Developers also have a local My Work workspace – with real-time requests, progress tracking, manual intervention, and review queues. TeamBrain is an optional team-shared workspace that provides clear member ownership and allows each member to decide what to share.

A Helpful Tip

While claude-mem is available on npm, npm install -g claude-mem only installs the SDK library and does not register plugin hooks or start a worker service – be sure to use npx claude-mem install or the plugin market command. The project uses an Apache 2.0 license, requiring Node ≥ 20, with the current version being 15.7.0.

As "Agent memory" continues to be a popular topic this week, this project, which started as a Claude Code plugin and has grown into a cross-tool memory infrastructure, may be one of the closest solutions to a "standard answer."

Repository address: https://github.com/thedotmack/claude-mem

More News

Want to see more quality content?

Browse all news