Who it is forA developer whose agent re-fixes the same bug the wrong way every few sessions.
The problemCausal context is the first thing lost when context is compacted.
The outcomeRecorded decision to outcome edges the agent can search.
What you need first
- Rust toolchain, or pip for the prebuilt package
- An MCP client such as Claude Code
Steps
- Install with
pip install causal-memory(or build withcargo build --release) - Run
./install.shfor the guided setup of the skill and MCP server - Restart your agent
- Have the agent call record_decision and later search_causal
Prompt for your agent
Install JingxuanC/causal-memory, record a decision and its outcome for <bug fix>, then query search_causal in a new session. Confirm the decision is returned.
Caveat. The README says it does not beat mem0 on plain fact recall; its strength is causal recall.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for JingxuanC/causal-memory and "Give your agent memory of why past decisions worked"
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