Skip to content

AI memory & evaluation

Memory that persists. Evals that prove it works.

Agents need to remember the right things across sessions, and teams need evidence that each change made things better. We build both in from the first sprint.

Architecture

Shared memory and evaluation architecture Memory Evals Sources Code, routes, schema,tickets, docs, designs Incremental indexer Re-indexes asthings change Store Postgres, Apache AGE,pgvector, Redis MCP server Project-scopedkeys Assistants Claude, Cursor,Gemini, Codex Memory workers Extract, resolve, promote, expire A change Prompt, model orretrieval tweak Score Golden dataset, rubrics,LLM judge and human check CI gate Ship only ifscores hold Release
Architecture: AI memory & evaluation.

Memory

  • Session and long-term memory

    User preferences, past decisions and episodic recall.

  • Shared context layers

    Docs, standards and schemas kept in sync for every assistant.

  • Knowledge graphs and vectors

    Entities and relationships alongside semantic search.

Evals

  • Golden datasets and rubrics

    Agreed test cases that define what a good answer is.

  • LLM judges and human review

    Automated scoring, checked against people where it counts.

  • Regression gates in CI

    Prompt and model changes ship only when scores hold.

Technical depth

Memory architecture
ContextBrain indexes code, routes, database schema, tickets, docs and design files incrementally. Dedicated workers extract, resolve, promote and expire memories, so every session and teammate recalls the same context.
Storage
Postgres with Apache AGE (Cypher graph queries) and pgvector for semantic search, Redis for queues. 84 tables across 85 migrations, with API keys scoped to a single project.
Quality gates
216k lines of code covered by 93 tests and 30 Playwright specs, with a pre-push test gate and role-based access tested across 6 roles.
Honest evaluation
An internal audit found a security issue in the graph-query path and it was fixed before release. A later benchmark showed the first MCP integration cost slightly more than not using MCP, and that number was reported as measured.
Experimental method
The dissertation evaluates by controlled forward addition (M1 to M6) and then leave-one-out ablations, replicated on two seeds, and it eliminated three mechanistic hypotheses rather than keep an unsupported explanation.

Stack

Memory

  • Mem0
  • Zep
  • Letta
  • LangGraph memory
  • Qdrant
  • pgvector
  • Neo4j

Evals

  • promptfoo
  • Ragas
  • DeepEval
  • LangSmith
  • Langfuse
  • OpenAI Evals

Built in-house: Context Brain keeps every AI coding assistant on a project working from the same docs, standards and API schemas.