Who it is forA developer or agent who must recall why something was built a certain way or how a bug was fixed weeks earlier in the same project.
The problemSearching raw session history is slow, and loading full transcripts costs a lot of tokens.
The outcomeThe agent finds the matching observations by ID, reviews a timeline around them, and loads full details only for the IDs it needs.
What you need first
- Node.js 20.0.0 or higher
- Claude Code with plugin support, or a supported agent host such as OpenCode or T3 Code
- A claude-mem sign-in or your own memory provider key, if you do not use the installer's local option
- Bun and uv, which the README says are auto-installed if missing
Steps
- Confirm the Claude Mem plugin is installed and that Claude Code was restarted
- Ask Claude a natural language question about past work in the project
- Call
searchwith a query and an optional type filter, for examplesearch(query="authentication bug", type="bugfix", limit=10) - Call
timelineon an interesting result to see what happened around it - Call
get_observationswith the chosen IDs in one batch, for exampleget_observations(ids=[123, 456])
Prompt for your agent
Using the claude-mem MCP tools, search memory for <topic> in the project at <project path>, then use timeline on the most relevant result and get_observations with the chosen IDs in one batch. Report a short list of decisions or fixes with their IDs. Verify that every ID you report came from the search results.
Caveat. The README describes token savings of about 10x from filtering before fetching, but the exact savings depend on your own results and are not guaranteed.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for thedotmack/claude-mem and "Find past decisions and bug fixes before you repeat them"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer