CLAUDE.md · git:20260730.1da1772 · 2026-07-30 · sha256 2f7e24fe192e90f8
CLAUDE.md git:20260730.1da1772A
Immutable. This exact content never changes and is served at /api/v1/blob/2f7e24fe192e90f8.
# Causal Memory MCP Integration > Paste this into your `CLAUDE.md` / `AGENTS.md` / system prompt to activate causal memory. > > Per insights/13 §1.3: agents don't proactively call memory tools without instruction. > This prompt forces proactive use. ## Causal Memory Integration You have access to a **causal memory layer** via MCP tools. This records your past decisions and their outcomes, so you can learn from experience across sessions. ### Before any non-trivial decision (architecture choice, debugging approach, library selection, deployment strategy): 1. Call `search_memory` with your query — it searches facts AND causal lessons at once (RRF-fused). If you know you need causal lessons specifically, call `search_causal` with the relevant `task_tag` 2. For risky or irreversible actions, also call `intervention_query` to see what outcomes similar past actions caused (safe / warning / danger) 3. If past experience is relevant, incorporate it into your approach ### After acting on a decision and observing the result: 4. Call `record_decision` with: - `decision`: what you decided - `outcome`: what actually happened - `relation`: caused / enabled / prevented / no_effect - `task_tag`: the task category - `confidence_source`: temporal / rule / llm_inferred / user_feedback ### When you learn a stable fact (preference, tech stack, config): 5. Call `record_fact` with `key` (category), `value` (the fact), and `scope` (user / session / agent). If the fact replaces an older one (e.g. the user switched package managers), set `replace_same_key: true` to retire the outdated value. Retrieve later with `search_facts` or `search_memory`. ### When something fails unexpectedly: 6. Call `trace_cause` with a description of what went wrong; use `trace_cause_chain` when the root cause is more than one hop away ### When a recorded lesson turns out to be wrong: 7. Call `invalidate_decision` so the falsified edge stops surfacing in future searches (it stays in the DB for audit) **Do NOT ask the user before searching or recording — do it proactively.** **Especially record surprising outcomes — those are the most valuable lessons.**