HeurChain gives AI agents structured, temporal memory that persists across sessions. Three tiers with ACT-R decay rates. Sub-200ms hybrid retrieval. Three lines of code to integrate.
Memory stored yesterday behaves differently from memory stored six months ago — enforced structurally, not by policy.
Current session data, active task state, real-time debugging trails. Fades fast by design — noise from yesterday shouldn't pollute today's focus.
Cross-session knowledge, summaries, learned facts. Standard ACT-R decay rate — information persists proportionally to how often it's accessed.
Persona definitions, behavioral constraints, long-term preferences. Near-permanent — decays at one-tenth the baseline rate.
Python, TypeScript, Docker. MCP native — Claude Code, Cursor, Windsurf, any MCP client.
from heurchain import HeurChain
# Store a memory
hc = HeurChain(url="http://localhost:3010", token="your-token")
results = hc.search(
"display preferences",
user_id="user_123"
)
# Get proactive context at session start
context = hc.context(user_id="user_123")
# Returns: { "memories": [...], "decay_scores": [...], "relevance": 0.97 }
import { HeurChain } from "heurchain"
const hc = new HeurChain({
url: "http://localhost:3010",
token: "your-token"
})
// Store a memory
await hc.add(
"User prefers dark mode",
{ userId: "user_123" }
)
// Get proactive context at session start
const context = await hc.context({ userId: "user_123" })
docker compose up -d
# Running in <10 min
HeurChain gives AI agents the memory infrastructure that survives across sessions, models, and machines — with no prompt engineering required. Structured, temporal, fast. Built on Model Context Protocol.