Why not just use built-in OMP memory?
Oh My Pi's built-in memory is curated and compressed - a distilled view optimized for the agent's working context. That is extremely useful, but it is lossy: the original wording, the dead ends, and the precise moment a decision was made are discarded.
The Curation Gap
When agents compress logs into facts, they throw away the "why" and the verbatim command syntax. When you hit a bug that was solved weeks ago, you need to see the exact logs, code block changes, and CLI outputs - not just a summaries saying "fixed X issue."
Forensic Provenance
Every retrieved result from omp-episodic-memory links directly back to the source session JSONL, user prompt, and assistant code block that solved it. You can track decisions through time, compare options, and review changes on the fly.
Quick Start
From install to your first provenance-backed recall in three commands.
Index sessions
Crawl your local Oh My Pi transcripts and build the hybrid SQLite index. Runs fully offline.
$ omp-episodic index
Search hybrid
Query across keyword and vector space, fused with RRF. Every hit cites its source session.
$ omp-episodic search "sqlite-vec build"
Recall for task
Assemble a confidence-tiered evidence bundle for the task at hand - or abstain when unsure.
$ omp-episodic recall "fix arm64 build"
Core Features
Modern, production-grade capabilities for professional coding environments
Hybrid Retrieval
Fuses Sqlite FTS5 keyword matching and vector matching into a unified ranking system via Reciprocal Rank Fusion (RRF).
Reviewable Memory Inbox
Automatically extracts candidate decisions, gotchas, and runbooks into a staging inbox. You decide what enters the permanent DB.
Evidence Bundles
Retrieved items include confidence metrics and source verification. Correctly abstains instead of fabricating answers.
Temporal Project Graph
Maps relationships over time with automatic supersession rules and diff outputs to check updates since a specific date.
Pinned Context Blocks
Pin durable markdown instructions, rules, or system details to projects to ensure they are always present in the context.
Eval Harness Gates
Comprehensive gold-set tests verifying retrieval precision, abstention recall, and model latency thresholds on CI.
Interactive Memory Inbox
Try approving and rejecting derived candidate memories dynamically below
Pending Inbox Staging
3 items pendingChose sqlite-vec over pgvector because the project requires a zero-dependency local SQLite file.
Transformers.js model downloads are cached, but the first run will block vector searches. Pass mode: 'text' to bypass.
To regenerate the Gold Set index, run omp-episodic label-scaffold, review candidates, then run the bench command.
Approved Knowledge Base
0 items approvedNo approved memories yet
Approve a candidate on the left and it lands here - committed to the permanent index with full provenance.
CLI Command Center
Execute forensically precise search commands directly in the terminal
MCP Server Configuration
Register the server in your favorite agent harness to expose episodic memory tools
{
"mcpServers": {
"omp-episodic-memory": {
"command": "npx",
"args": ["-y", "-p", "omp-episodic-memory", "omp-episodic-mcp"]
}
}
}
Exposed Tools
Gold Set Benchmarks
OMP-MemBench metrics verified on every pull request push. Baseline results on synthetic fixtures:
Local Development
Episodic Memory utilizes Bun for rapid testing, typechecking, and package compiling.