Decision memory
Retrieval
Decisions stored with context, reasons, stakes and confidence — retrieved by meaning or by exact wording.
Cognition Engines gives AI agents a durable memory of their decisions — what they decided, why, and whether it worked. Agents consult precedent before acting, guardrails block known mistakes before they run, and calibration tracking shows whether the agent is genuinely improving or merely confident.
The problem
An agent that reasons well for one session and starts from zero in the next isn't accumulating judgement — it's re-deriving it, at cost, with a fresh chance of getting it wrong. The reasoning that mattered lives in a transcript nobody queries, and the outcome that would have graded it is never written down at all.
The gap isn't recall of facts. It's recall of judgement: the choice that was made, the alternatives that were rejected, the confidence attached to it, and what actually happened next.
What gets stored per decision
The loop
get_session_contextSession start
Agent profile, prior decisions, active guardrails, calibration.
pre_actionDecision point
Precedent, guardrails, calibration and patterns in one call.
record_thoughtDuring work
Reasoning attaches to the open decision in real time.
update_decisionOn completion
Finalises the record once the work has settled.
review_outcomeLater
Logs what happened — the entry that makes calibration possible.
Capabilities
Retrieval
Decisions stored with context, reasons, stakes and confidence — retrieved by meaning or by exact wording.
Pre-execution policy
Declarative policies evaluated before an action runs, not after it fails.
Brier scoring
Brier-scored confidence per category. Not “sounds sure” — has earned the right to be sure.
Chain-of-thought capture
The reasoning chain captured live and attached to the decision, not reconstructed from logs.
Typed relationships
Typed links between decisions that depend on, supersede or contradict each other.
Audit export
Evidence mapped to control frameworks and exported as a verifiable bundle.
Integration
Cognition Engines speaks MCP and JSON-RPC over HTTP. Anything that can make a request can use it — Claude Code, Claude Desktop, an agent framework, or raw curl. Storage is WAL-mode SQLite with FTS5; vector search runs on 2 pluggable backends behind a single abstraction.
Quick start →{
"mcpServers": {
"decisions": {
"command": "npx",
"args": [
"mcp-remote@latest",
"http://YOUR_HOST:8100/mcp",
"--allow-http",
"--header",
"Authorization: Bearer YOUR_CSTP_TOKEN"
]
}
}
}Self-hosted, Apache 2.0, no vendor account required. Clone it, run the demo stack, and point your agent at it.