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

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
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
👀 See Also

Madar: Local Context Compiler for Claude Code / Cursor — 78% Fewer Tokens on NestJS Repo
Madar is an open-source local context compiler for coding agents. On a NestJS + BullMQ repo (~800 files), it cut Claude Code input tokens by 78% and cost by 63% for an explanation task. Scoped graphs only.

Routing Claude API traffic to control costs after Max subscription change
Anthropic's Max subscription no longer covers third-party tool usage, forcing OpenClaw users to API billing. A routing proxy directs simple tasks to Claude Sonnet ($3/M input, $15/M output) and complex ones to Opus ($5/M input, $25/M output), cutting costs without quality loss.

Claude Code Plugin Analyzes Token Waste and Anomalies Locally
A developer built a Claude Code plugin that diagnoses token waste by detecting six anomaly types from local session data. The tool analyzed 8,392 sessions and found 1,015 anomalies, with ExcessiveToolUse being the most common.

Qhatu: Platform Turns GitHub Repos into Pay-Per-Use Micro SaaS with Claude
Qhatu is a platform that takes a GitHub repository and deploys it as a pay-per-use micro SaaS with a generated frontend and integrated payment processing. The system uses Anthropic APIs to analyze code, generate Dockerfiles, and create storefront UIs.