Skip to content
← Projects

Engram: Cross-Session Memory MCP for AI Coding Agents

A Python MCP memory harness for carrying decisions, project facts, and preferences across AI coding sessions while detecting stale context.

Concept artwork

A Python MCP memory harness that carries decisions, project facts, and preferences across AI coding sessions while detecting stale or conflicting context.

Achievements

  • Reduced repeated context tokens by approximately 40% through cross-session state handoffs.
  • Consolidated raw sessions into durable short- and long-term memory with stale-memory cleanup and conflict detection.
  • Validated retrieval reliability with Recall@5, MRR, and traces for ranking regressions and injected context.

Metrics

  • ~40% fewer repeated context tokens
  • Recall@5 and MRR evaluation
Stack
Python, MCP, Event-Driven Architecture, Agent Memory, BM25, Evaluation
Date
Jan 2026 - Mar 2026
Status
Completed

↵ ask · esc close

Keyboard shortcuts

⌘ K / Ctrl K
Ask the portfolio AI
/
Ask the portfolio AI
g h
Go to Home
g p
Go to Projects
g r
Go to Resume
g a
Go to Ask
g m
Go to Music
t
Toggle light / dark
?
This sheet
h i
Say hi
Engram | Simon Xu