causal-memory logo
causal-memory
★ 99
vs
dense-mem logo
dense-mem
★ 39

causal-memory vs dense-mem

causal-memory: Causal-memory is an agent memory system with a causal core, uniquely modeling both excitatory and inhibitory connections for robust long-term retention. It enables agents to understand not just what happened, but why it worked or failed, and anticipate outcomes, thereby preventing repeated mistakes.; dense-mem: Dense-Mem is a self-hosted, durable memory layer for AI agents designed to preserve evidence, detect conflicts, and prevent silent rewriting of facts. It provides typed claims, verification gates, server-side embeddings, and structured recall, enabling host LLMs to focus on conversation and judgment while Dense-Mem manages memory state.

01

TL;DR

causal-memory logo
causal-memoryMemory & Context · ★ 99

Preventing Repeated Mistakes: Agents can recall past `decision → outcome` causal edges, avoiding re-fixing the same bug or repeating past failed architectural choices.

dense-mem logo
dense-memMemory & Context · ★ 39

Providing durable and verifiable memory for AI agents in complex tasks.

02

Side-by-Side Comparison

Field
causal-memory logocausal-memory
dense-mem logodense-mem
Category
Memory & Context
Memory & Context
Stars
★ 99
★ 39
License
Apache-2.0
Apache-2.0
Install Command
git clone https://github.com/JingxuanC/causal-memory.git && cd causal-memory && cargo build --release
mkdir dense-mem-local && cd dense-mem-local && curl -fsSLo docker-compose.yml https://raw.githubusercontent.com/markhuangai/dense-mem/main/examples/docker-compose.base.yml && curl -fsSLo .env.example https://raw.githubusercontent.com/markhuangai/dense-mem/main/examples/.env.example && cp .env.example .env && docker compose up -d
Updated
1w ago
1d ago
Open Source
Yes
Yes
Tags
Agent Memory, Causal Reasoning, Long-term Memory
AI Memory, Knowledge Graph, Conflict Detection
03

Features

causal-memory logocausal-memory
01Causal Core with Excitatory and Inhibitory Connections: Models 'caused', 'enabled', and 'prevented' relationships using typed causal semantics and negative activation spread (GABA analogue).
02Immutable Consolidation & Q-value Dynamics: Employs hippocampus-style SWR (Sleep-Wake Replay) consolidation with LTP/LTD/GC, Q-value dynamics, and novelty-entropy triggers for robust memory evolution.
03Intervention & Counterfactual Query: Enables forward simulation to predict outcomes before action and contrastive analysis to compare outcomes of different alternatives.
04Compaction Survival: Stores causal information in an external SQLite database, making it immune to context window compaction and preserving critical 'why' knowledge.
05Unified Memory Graph: Integrates facts, temporal state, and decision-outcome causal edges into a single graph, accessible via RRF-fused retrieval (BM25 + semantic).
dense-mem logodense-mem
01First-class evidence provenance, tracing memories from source fragments to facts.
02Facts pass through typed claims, verification, and promotion gates.
03Explicit conflict detection where comparable conflicts return clarification tasks, preventing silent overwrites.
04Clear responsibility boundary: host LLM judges, Dense-Mem manages durable state, gates, and audit metadata.
05Self-hosted with operator control over storage, team isolation, API keys, and data egress boundaries.
04

Use Cases

causal-memory logocausal-memory
↳Preventing Repeated Mistakes: Agents can recall past `decision → outcome` causal edges, avoiding re-fixing the same bug or repeating past failed architectural choices.
↳Proactive Warning and Intervention: Before committing risky actions (e.g., `git push --no-verify`), the system can fire DANGER warnings based on recorded past negative outcomes.
↳Root Cause Analysis: Trace multi-hop backward causal chains to identify the ultimate root cause of failures or unexpected outcomes.
↳Informed Decision Making: Agents can perform counterfactual comparisons between alternative actions, leveraging known outcomes to choose the best path.
↳Cross-Task Lesson Transfer: Discover and apply meta-edges (e.g., `similar_to`, `repeated`) to transfer lessons and patterns across different tasks or sessions.
dense-mem logodense-mem
↳Providing durable and verifiable memory for AI agents in complex tasks.
↳Building enterprise AI systems that require strong data governance, auditability, and trusted knowledge.
↳Resolving conflicting information in AI knowledge bases through user clarification and structured processes.
↳Enhancing AI agent reliability and explainability by preserving evidence and preventing silent fact rewriting.
FAQ

FAQ

What is the difference between causal-memory and dense-mem?
Both causal-memory and dense-mem are in the Memory & Context category. causal-memory has 99 stars, while dense-mem has 39 stars.
Which is better, causal-memory or dense-mem?
The best choice depends on your use case. Choose causal-memory if Preventing Repeated Mistakes: Agents can recall past `decision → outcome` causal edges, avoiding re-fixing the same bug or repeating past failed architectural choices., and dense-mem if Providing durable and verifiable memory for AI agents in complex tasks..
Is causal-memory free or open source?
Yes, causal-memory is open source on GitHub (Apache-2.0).
Is dense-mem free or open source?
Yes, dense-mem is open source on GitHub (Apache-2.0).
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
→

Related