{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "jingxuanc-causal-memory--give-agent-memory-of-why-decisions-worked",
 "repo": "JingxuanC/causal-memory",
 "repo_url": "https://github.com/JingxuanC/causal-memory",
 "repo_slug": "jingxuanc-causal-memory",
 "title": "Give your agent memory of why past decisions worked",
 "page_title": "How to give your agent memory of why past decisions worked with Causal Memory",
 "summary": "Install the MCP server so the agent records decisions and their outcomes and recalls them later.",
 "who": "A developer whose agent re-fixes the same bug the wrong way every few sessions.",
 "problem": "Causal context is the first thing lost when context is compacted.",
 "outcome": "Recorded decision to outcome edges the agent can search.",
 "steps": [
  "Install with `pip install causal-memory` (or build with `cargo build --release`)",
  "Run `./install.sh` for the guided setup of the skill and MCP server",
  "Restart your agent",
  "Have the agent call record_decision and later search_causal"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README says it does not beat mem0 on plain fact recall; its strength is causal recall.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "Rust toolchain, or pip for the prebuilt package",
  "An MCP client such as Claude Code"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/jingxuanc-causal-memory/give-agent-memory-of-why-decisions-worked/",
 "md": "https://dedupedai.com/use-cases/jingxuanc-causal-memory/give-agent-memory-of-why-decisions-worked/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/jingxuanc-causal-memory--give-agent-memory-of-why-decisions-worked.json",
 "api_version": "v1"
}
