Show HN: A-MEM – Memory for Claude Code that links and evolves on its own

8 pointsposted 7 hours ago
by AttentionBlock

4 Comments

bisonbear

6 hours ago

curious how this is different from claude-mem?

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

AttentionBlock

6 hours ago

great question

claude-mem uses a compaction approach. It records session activity, compresses it, and injects summaries into future sessions. Great for replaying what happened.

A-MEM builds a self-evolving knowledge graph. Memories aren’t compressed logs. They’re atomic insights that automatically link to related memories and update each other over time. Newer memories impact past memories.

For example: if Claude learns “auth uses JWT” in session 1, then learns “JWT tokens expire after 1 hour” in session 5, A-MEM links these memories and updates the context on both. The older memory now knows about expiration. With compaction, these stay as separate compressed logs that don’t talk to each other.

mastermindSDE

6 hours ago

Cool idea and implementation! Does this support other agents, like Gemini-cli or local agents like qwen-code?

AttentionBlock

6 hours ago

Thanks for the feedback

I am planning to extend for other agents. But now it should work with some caveats.

I have configured claude specific hooks, the hooks keeps reminding Claude Code to use the memory when needed.

Without them, the agents will keep forgetting to use it and you would need to keep nudging it