
Gitmem
io.github.gitmem-dev由 GitHub 帳號 gitmem-dev 發布v1.2.1更新於 Oct 24, 2026
Persistent institutional memory for AI coding agents. Memory that compounds.
概覽
GitMem 是本地執行的 MCP 伺服器,為 AI 程式助理提供跨工作階段的持久記憶,記錄錯誤、成功經驗、模式、決策與未完成工作。
- 可以做什麼
- 在助理行動前回想過去工作階段的相關經驗,遇到類似任務時自動浮現先前的教訓。把過程記錄為教訓(錯誤)、成功、模式、決策與未完成的執行緒,並為教訓附上反面理由。在工作階段結束時進行結構化回顧,讓脈絡延續到下一次。搜尋與管理已存記憶、追蹤未完成事項,並協調多個代理。透過命令列精靈完成伺服器與用戶端設定,並合併進既有設定檔。
- 適用情境
- 適合在同一專案長期使用 AI 程式助理、希望它不再重複已知錯誤,並持續記住架構決策與未完成工作的情況。適用於 Claude Code、Cursor、VS Code、Windsurf 或其他相容 MCP 的用戶端。
- 執行需求
- 透過 npm 套件 gitmem-mcp 以 stdio 在本機執行,需要 Node.js 與 npx。免費版將資料存放在本機 .gitmem/ 目錄,不需帳號。選用的 Pro 版自架於自己的 Supabase 專案,需要 SUPABASE_URL 與 SUPABASE_SERVICE_ROLE_KEY,以及啟用用的授權金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Gitmem,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
來源:README.md,提交 2e3dee2
工具
0版本歷史
1- v1.2.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分