Skip to main content
Glama
EdonZo

Brain

by EdonZo

Brain

Brain is a persistent, outcome-grounded memory system I built for Claude Code. It gives an AI agent long-term memory that learns from what actually worked: every stored memory carries a Bayesian confidence that rises when a decision it informed proved correct and falls when it didn't. Brain runs as a local FastAPI service backed by per-project SQLite databases, and it exposes itself to Claude Code through an MCP server.

The core mechanism is a background consolidation cycle I called "sleep" — eight phases (replay, contradiction evaluation, pattern extraction, connection formation, homeostasis, promotion) that run on cron and mirror how the mammalian brain reorganizes memory overnight. This was built independently before equivalent features shipped in Claude Code — the commit history is public.

I used Brain to run the pre-registered cosmology study at github.com/EdonZo/ccc-hawking-points, where persistent memory across weeks of analysis sessions was load-bearing rather than convenient.

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    B
    maintenance
    Enterprise-grade MCP server for persistent, intelligent memory management across Claude Code sessions.
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Persistent memory MCP server for Claude Code that captures and recalls project context across sessions, eliminating the need to re-explain architecture and decisions daily.
    1,117 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A persistent memory MCP server for Claude Code that enables long-term recall across sessions via hybrid search, code intelligence, and tools for reading/writing memory.
    39 npm
    1
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server that provides persistent long-term memory for Claude Code, enabling storage, search, and retrieval of project knowledge across sessions.
    -