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

Auto-co: A 50-Line Bash Script That Turns Claude Code Into Autonomous AI Companies
Tools

Auto-co: A 50-Line Bash Script That Turns Claude Code Into Autonomous AI Companies

Auto-co is a 50-line bash script that wraps the Claude Code CLI in a loop, allowing it to run autonomously with 14 AI agents playing roles like CEO, engineer, and critic. It has built four products from scratch, including FormReply and Changelog.dev, at a total cost of $268 across 270+ cycles.

OpenClawRadar
Roost: A Single-Go-Binary Sidebar for Claude Code with Clickable Prompt History, File Tree, and Notifications
Tools

Roost: A Single-Go-Binary Sidebar for Claude Code with Clickable Prompt History, File Tree, and Notifications

Roost is a single Go binary that adds a web-based sidebar to Claude Code: xterm.js terminal backed by tmux, file tree that follows your cd, clickable prompt history from ~/.claude/projects/*.jsonl, and push notifications via Claude Code's Stop hook. Run over SSH as single-user-per-instance; no build step on the frontend.

OpenClawRadar
Agent Browser Shield: Free OpenClaw Extension Blocks Prompt Injection & Dark Patterns
Tools

Agent Browser Shield: Free OpenClaw Extension Blocks Prompt Injection & Dark Patterns

PixieBrix releases Agent Browser Shield, a free source-available browser extension for OpenClaw that blocks prompt injection, dark patterns, and context pollution while cutting token usage.

OpenClawRadar
Free AI Product Launch Playbook Repository for Claude Users
Tools

Free AI Product Launch Playbook Repository for Claude Users

A developer has released a free repository containing a structured AI product launch playbook designed to work with Claude. The repo organizes launch experience into practical stages including strategy, preparation, execution, and includes templates and tool references.

OpenClawRadar