repo-mem: Open-Source MCP Server Adds Persistent Team Memory to Claude Code

✍️ OpenClawRadar📅 Published: March 15, 2026🔗 Source
repo-mem: Open-Source MCP Server Adds Persistent Team Memory to Claude Code
Ad

What repo-mem does

repo-mem is an MCP server that adds persistent, shared memory to Claude Code sessions. It addresses the problem of session isolation in team environments where one developer's debugging insights disappear after their session ends, leaving other team members starting blind when working on related code.

Technical implementation

The solution stores observations in per-user SQLite databases inside the Git repository itself. It uses FTS5 for full-text search across all team members' databases. Claude Code hooks automatically capture commits, deploys, and test runs. A session start hook injects recent team activity (approximately 200 tokens).

Architecture details

  • MCP server with 8 tools (search, save, get, timeline, etc.)
  • 3 Claude Code hooks (PostToolUse, Stop, SessionStart)
  • SQLite + FTS5 for search (no vector database, no external services)
  • Per-user database files committed to Git (typically < 1MB each)
  • Token-efficient design: index returns ~50 tokens per result, with full details loaded on demand
Ad

Setup and scale

Setup is done with npx repo-mem init. The creators report running it with 4,000+ observations on a monorepo. The MCP server is approximately 900 lines of JavaScript, and the hooks are about 170 lines each. The hooks contain no AI calls—they use purely rule-based extraction.

The project is MIT licensed and available on GitHub at https://github.com/timosieber/repo-mem. The Reddit discussion explores how this approach compares to vector-based memory systems.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also

Relvy improves Claude's root cause analysis accuracy by 12 percentage points on OpenRCA benchmark
Tools

Relvy improves Claude's root cause analysis accuracy by 12 percentage points on OpenRCA benchmark

Relvy, a tool that automates runbooks, has demonstrated a 12 percentage point improvement in Claude's accuracy on the OpenRCA benchmark for root cause analysis. The results were shared via a Hacker News post with 11 points.

OpenClawRadar
Silent Tool Failures in Coding Agents: A Hidden Efficiency Drain
Tools

Silent Tool Failures in Coding Agents: A Hidden Efficiency Drain

Coding agents often encounter tool failures that go unnoticed because they fall back to alternative strategies, wasting tokens and reducing quality. The open-source tool Vibeyard detects these failures and suggests fixes.

OpenClawRadar
Brunnfeld Agentic World: Multi-Agent Medieval Economy Simulation Without Behavioral Prompts
Tools

Brunnfeld Agentic World: Multi-Agent Medieval Economy Simulation Without Behavioral Prompts

A TypeScript simulation where 20 LLM agents autonomously trade in a medieval village economy with no behavioral instructions, goals, or trading strategies. Agents receive ~200 token perceptions each tick and interact through a deterministic engine handling physics, recipes, and market mechanics.

OpenClawRadar
Statespace: Build Interactive Web Apps for OpenClaw Agents with Markdown
Tools

Statespace: Build Interactive Web Apps for OpenClaw Agents with Markdown

Statespace is a free, open-source framework for building and sharing AI-friendly web apps that OpenClaw agents can navigate and interact with using pure Markdown. It allows you to define tools, components, and instructions in Markdown files that agents access over HTTP.

OpenClawRadar