
Gitmem
io.github.gitmem-devPublished by GitHub account gitmem-devv1.2.1Updated Oct 24, 2026
Persistent institutional memory for AI coding agents. Memory that compounds.
Overview
GitMem is a local MCP server that gives AI coding agents persistent memory of past sessions — mistakes, wins, patterns, decisions and unfinished work.
- What you can do
- Recall relevant lessons from earlier sessions before the agent acts, and surface scars automatically when similar work comes up again. Record what happened as scars (mistakes), wins, patterns, decisions and open threads, with counter-arguments attached to scars. Run a closing reflection at the end of a session so context carries into the next one. Search and manage stored memory, track unfinished threads, and coordinate multiple agents. Set up the server and client config through a CLI wizard that merges into existing config files.
- When to use it
- Use it when you work with an AI coding agent on the same project across many sessions and want it to stop repeating known mistakes and to keep architectural decisions and unfinished work in view. Best suited to solo or team coding work in Claude Code, Cursor, VS Code, Windsurf or another MCP client.
- Requirements
- Runs locally over stdio via the npm package gitmem-mcp, so Node.js and npx are needed. The free tier stores data locally in a .gitmem/ directory and needs no account. The optional Pro tier is self-hosted on your own Supabase project and requires SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY, plus a license key for activation.
Installation
In SourceWeft
- Open Gitmem in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
[GitMem — Institutional memory for AI coding agents]
[npm version] [npm downloads] [MIT License] [Build] [Node.js >= 18]
Documentation · npm · Getting Started · Tool Reference
GitMem is an MCP server that gives your AI coding agent persistent learning memory across agent sessions. It remembers mistakes (scars), successes (wins), and decisions — so your agent learns from experience instead of starting from scratch every time.
What's MCP? Model Context Protocol is how AI coding tools connect to external capabilities. GitMem is an MCP server — install it once and your agent gains persistent memory.
Works with Claude Code, Cursor, VS Code (Copilot), Windsurf, and any MCP-compatible client.
Quick Start
One command. The wizard auto-detects your IDE and sets up everything:
.gitmem/directory with starter scars- MCP server config (
.mcp.json,.vscode/mcp.json,.cursor/mcp.json, etc.) - Instructions file (
CLAUDE.md,.cursorrules,.windsurfrules,.github/copilot-instructions.md) - Lifecycle hooks (where supported)
.gitignoreupdated
Already have existing config? The wizard merges without destroying anything. Re-running is safe.
How It Works
- Recall — Before acting, the agent checks memory for relevant lessons from past sessions
- Work — The agent does the task, applying past lessons automatically
- Learn — Mistakes become scars, successes become wins, strategies become patterns
- Close — Session reflection persists context for next time
Every scar includes counter-arguments — reasons why someone might reasonably ignore it. This prevents memory from becoming a pile of rigid rules.
What Gets Remembered
Key Features
- Automatic Recall — Scars surface before the agent takes similar actions
- Session Continuity — Context, threads, and rapport carry across sessions
- Closing Ceremony — Structured reflection captures what broke, what worked, and what to do differently
- 20+ MCP Tools — Full toolkit for memory management, search, threads, and multi-agent coordination
- Zero Config —
npx gitmem-mcp initand you're running - Non-Destructive — Merges with your existing
.mcp.json,CLAUDE.md, and hooks
Supported Clients
The wizard auto-detects your IDE. Use --client to override.
Manual MCP configuration
Add this to your MCP client's config file:
CLI Commands
Pro Tier
Self-hosted on your own Supabase. You bring the infrastructure, gitmem sets it up.
Quick start
The activate command creates all tables, views, RPC functions, and indexes automatically. No manual SQL needed.
See docs/pro-setup-guide.md for the full guide.
The free tier gives you everything for solo projects. Pro makes recall smarter and memory portable.
GitMem + MEMORY.md
Your AI agent likely has its own memory file (MEMORY.md, .cursorrules, etc.). Here's how they work together:
Tip: Include .gitmem/agent-briefing.md in your MEMORY.md for a lightweight bridge between the two systems.
Privacy & Data
- Local-first — All data stored in
.gitmem/on your machine by default - No telemetry — GitMem does not collect usage data or phone home
- Cloud opt-in — Pro tier Supabase backend requires explicit configuration via environment variables
- Your data — Sessions, scars, and decisions belong to you. Delete
.gitmem/to remove everything
Development
See CONTRIBUTING.md for full development setup.
License
MIT — see LICENSE.
Source: README.md at commit 2e3dee2
Tools
0Version history
1- v1.2.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts