
Repo Memory
io.github.yubinkim444由 GitHub 帳號 yubinkim444 發布v0.2.1更新於 Oct 24, 2026
Shared, git-tracked working memory for AI agents on the same codebase.
發布方自己的服務:Memory.fit
概覽
一個本機 MCP 伺服器,為助手在儲存庫的 .ai-memory/ 目錄中提供受 git 追蹤的共享記憶,讓事實、決策與注意事項得以留存。
- 可以做什麼
- 在任務開始時讀取儲存庫中既有的記憶,吸收先前的脈絡與慣例。附加經過驗證的事實,並附上檔案、行號範圍與所用工具等證據。依標籤或來源檔案列出並篩選事實。把非平凡的決策記錄為說明理由的 Markdown 檔案。加入關於踩坑經驗的一行注意事項。初始化記憶目錄,並可選擇性地向 CLAUDE.md 或 AGENTS.md 附加探索提示。
- 適用情境
- 當多個 AI 工作階段或工具在同一個程式碼庫上工作、反覆重新發現相同的慣例、檔案位置與過往決策時適用。也適合希望這些知識透過一般 git 提交被審閱與共享、而不依賴託管服務的團隊。
- 執行需求
- 以本機 Python 套件形式執行(Python 3.10 以上),可透過 uvx 或 pip 安裝,唯一相依套件是官方 mcp SDK。需要目標儲存庫路徑,透過 --repo 參數或 REPO_MEMORY_ROOT 環境變數提供,後者預設使用目前工作目錄。不需帳號、API 金鑰或網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Repo Memory,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
repo-memory
Shared, git-tracked working memory for AI agents that share a codebase. What one Claude / Cursor / Cline learns about your repo, the next one picks up automatically. No database. No SaaS. Just files in your repo.
[PyPI] [Python] [MCP] [License: MIT]
The problem
Every AI session that touches your repo starts from zero. It re-greps the same files. It re-discovers the same conventions. It re-asks the same questions you already answered three sessions ago. Multi-user / multi-tool makes it worse: your teammate's Cursor and your Claude Code learn the same codebase independently.
There is CLAUDE.md / .cursorrules for rules the human writes. But
there is nothing for facts an agent verified — "the auth middleware
lives at src/auth/middleware.py:42", "PR #387 chose httpx over requests
because of HTTP/2", "don't run migrations during peak hours".
repo-memory is that nothing. A .ai-memory/ directory you commit to
your repo. Every AI tool reads from it, writes to it. Git is the database.
Layout
Pure files. Sync over git. No daemon, no DB, no auth. Works offline.
Install
Python ≥3.10. Depends only on the official mcp SDK (for the MCP server).
Quick start
Then commit .ai-memory/ like any other file:
Anyone else (human or AI) who pulls the repo now sees those facts/decisions immediately.
LLM & AI Agent Readable Specification
For agents discovering this repo through search or MCP indexing.
Identity
- name:
repo-memory - purpose: read/write a structured, git-tracked memory store about the current codebase so multiple AI agents (and humans) don't re-learn it.
- transport: CLI (
repo-memory) and MCP stdio (repo-memory-mcp). - storage: plain files under
.ai-memory/in the repo. Sync = git.
When to call which tool
Recommended agent workflow
MCP server install
Add to your client config (Claude Desktop / Cursor / Cline):
Or set REPO_MEMORY_ROOT env var instead of --repo.
Exposes 5 tools: get_repo_memory, add_fact, list_facts,
add_decision, add_gotcha.
Why git, not a database
- Zero infra. No service to host, no account to create, no API key to rotate.
- Already authoritative. Git history is the single source of truth.
git blametells you which agent added which fact and when. - Works offline. Plane, train, conference WiFi — all fine.
- PR review. Suspicious or wrong facts get filtered through normal code review.
- Per-repo scope. A fact about repo A doesn't leak into repo B; the store is local to the repo.
Schema (for tooling authors)
facts.jsonl — one JSON object per line:
Append-only. Stale entries stay. Readers consult verified_at and
re-verify if they want.
Automatic discovery hint
repo-memory init also appends a short discoverability section to your
repo's CLAUDE.md (or AGENTS.md if you already have one) telling any
AI agent that enters the repo to check .ai-memory/ first and to record
new findings back into it. Idempotent — re-running won't duplicate.
Opt out with --no-claude-md.
The appended block is delimited by <!-- BEGIN: repo-memory --> and
<!-- END: repo-memory -->, so you can hand-edit other parts of your
CLAUDE.md freely.
CLI reference
All commands take --root PATH if your CWD isn't the repo root.
About the author
Built by yubinkim444, who also makes Kay's Records — an app for iOS and Android.
If this project saved you time, giving the app a try is the nicest way to say thanks.
License
MIT © yubinkim444
來源:README.md,提交 167f6bd
工具
0版本歷史
1- v0.2.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Memory 整合

Memory.fit
fit.memory官方發布者
託管式 Memory.fit 伺服器,讓 AI 讀取你的訓練、睡眠、恢復與飲食資料,並寫回每週計畫、每日目標和飲食計畫。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方發布者
pg.ddx.io: the PostgreSQL community's memory 的託管 MCP 服務,由 pg.ddx.io 發布;無需登入;Streamable HTTP;29 個工具。
var.gg Naming Memory
gg.var官方發布者
遠端 MCP 伺服器,可依領域概念推薦並檢索韓、日、中、越、英多語言的程式識別字名稱,並提供 ERD 結構查詢。

Counterparts
ai.counterparts
為 Claude Code 與 Claude Desktop 提供的本地優先長期記憶:助理自行寫下關於你與專案的筆記,並在之後的對話中回想起來。

LAHZE - Persian AI Memory Platform
由 GitHub 帳號 pedramgholizadeh 發布
以波斯語為先的地理記憶平臺:發現地點,起草併發布僅限波斯語的記憶。AI 翻譯