← All projects

MemoRank — Long-Horizon Agent Memory

Agent Memory Research

MemoRank — Long-Horizon Agent Memory is a Agent Memory Research project by Vaibhav Bansal built with Python, MCP, OpenAI Agents SDK, Anthropic SDK, BM25, Dense Retrieval, Cross-encoder Reranking, SQLite, A/B Testing.

Repository overview

Long-horizon memory for security-investigation agents. No model training anywhere: retrieval (BM25 + dense), a pretrained cross-encoder, and entity-aware heuristics decide which records an agent sees. Served over MCP to OpenAI Agents SDK and Anthropic SDK agents. Includes an evaluation harness for LongMemEval and LoCoMo, a synthetic security-investigation set, CI gates, and a pre-registered online A/B.

Project features

  • memorank
  • Results at a glance
  • Architecture
  • Use as a library
  • Problem
  • Memory schema (fixed)
  • Baselines

Documented architecture and workflow

flowchart LR A[Agent Anthropic SDK / OpenAI Agents SDK] -- MCP -- M[Memory server store memory, recall, rerank] A -- MCP -- L[Alert server live 2-day window] M -- P[dense + BM25 candidates cross-encoder score entity-scoped recency, entity chaining] F[Feature flag sticky hash, 50/50] -. picks variant .- M A -- T[(Session log SQLite)]

Technology

Python · MCP · OpenAI Agents SDK · Anthropic SDK · BM25 · Dense Retrieval · Cross-encoder Reranking · SQLite · A/B Testing

Repository snapshot

Python · 0 stars · 0 forks · updated 2026-11-03T06:52:00Z

Project links