
CPersona
io.github.Cloto-dev由 GitHub 帳號 Cloto-dev 發布v2.5.3更新於 Oct 24, 2026
Persistent AI memory in one SQLite file: 3-layer hybrid search, confidence scoring, 29 tools.
概覽
讓助理把持久記憶存在單一的本機 SQLite 檔案中,並以向量、FTS5 與關鍵字混合檢索,提供 29 個工具。
- 可以做什麼
- CPersona 把事實、工作階段摘要與累積畫像存入一個本機 SQLite 檔案,並透過混合檢索取回:由嵌入伺服器驅動的向量層、FTS5 三元組檢索與關鍵字檢索,依排名或相對分數融合。工具包含 store、recall 與 reconstruct,後者會回傳記憶項目並附上所引用儲存列的原文片段。檢索依 agent_id、project_id 與 channel 隔離,多個助理或專案可共用同一個資料庫而不互相干擾。它不呼叫生成式模型,由助理自行摘要並提交文字。
- 適用情境
- 當助理需要跨工作階段記住專案決策、偏好或先前的討論,而且你希望這些記憶保存在自己擁有的檔案而非託管服務時,適合安裝。也適合需要可靠取回識別字、錯誤字串與精確名稱的程式開發工作階段。
- 執行需求
- 以 stdio 方式在本機執行,可透過 uvx 或 pip 從 cpersona 的 PyPI 套件啟動;一鍵方式需要 Python 3.11+ 與 uv。強烈建議為向量層執行嵌入伺服器,透過 CPERSONA_EMBEDDING_MODE 與 CPERSONA_EMBEDDING_URL 設定;沒有它時會退回詞法檢索,並回報檢索品質下降。CPERSONA_DB_PATH 指定 SQLite 檔案,CPERSONA_RECALL_MODE 選擇融合策略。啟動時會向 pypi.org 查詢是否有新版本,除非把 CPERSONA_UPDATE_CHECK 設為 false。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 CPersona,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
CPersona
Long-term memory for AI agents, in one SQLite file you own.
CPersona is an MCP server that lets Claude Code, Codex, Claude Desktop, Cursor, VS Code or any other MCP client remember what you decided, why, and what happened last time — across sessions.
[PyPI] [CI] [Python] [License: MIT]
Documentation · Getting Started · Tools · Discussions
[The CPersona dashboard's memory network: each point is a memory, lines join the most similar ones, grouped by agent]The built-in dashboard, showing a made-up store of 72 memories.
Why CPersona
Every new session with a coding agent starts from zero. CPersona gives the agent a memory it can write to as it works and read from before it acts.
- Yours, on your machine. Everything lives in a single SQLite file. No account, no cloud,
no external database;
sqlite3 .backupcopies it. - No language model inside. CPersona never calls a generative model to store or recall. Your agent writes the summary; CPersona keeps it and finds it again.
- Answers you can trace.
reconstruct, the recommended way to answer from memory, quotes the stored records behind each item, so you can see where an answer came from. - Search that catches what vectors miss. Vector search runs beside full-text and keyword search, so exact names, identifiers and error strings are found too, in Japanese and other scripts without spaces as well.
- See what it remembers.
cpersona dashboardopens a read-only page of the store: what was stored last, what is recalled most, every memory in full, and the network above. - Honest when it degrades. Without an embedding server it still runs on keyword search, and says so on every recall instead of quietly returning less.
Quick start
With Claude Code or Codex, install the agent plugin and let the agent do the rest:
Then say "Set up CPersona." The plugin carries the setup skill and the hooks that remind the
agent to recall before it acts and to store as it goes. (Claude Code 2.1.275 or later. In Codex:
codex plugin marketplace add Cloto-dev/cpersona, then codex plugin add cpersona@cpersona.)
By hand, in three steps:
Getting Started covers the other clients, Windows, containers, and the short policy block that makes every future session use the memory.
Upgrading an existing install? Read the When you upgrade section of the release notes and SUPPORT.md first.
A look inside
Memories are kept per agent, and project_id and channel let several agents and projects share
one database without mixing.
Benchmarks
On OmniMemEval's LongMemEval-S pipeline (500 questions,
answered by gpt-4.1-mini, judged by gpt-4o-mini), in this project's own run. Overall is the
share of questions judged correct; Context Tokens is the average sent to the answer model per question:
Pro mode is level with MemOS within sampling error, and on LoCoMo it answers 84.03%. Setups, the registered rules and every departure from a clean run are in the results.
Documentation
cloto-dev.github.io/CPersona is the full reference, also in Japanese:
Contributing
Bug fixes, tests and documentation can be sent as a pull request straight away. For changes to the database schema, the tool contracts or the tool list, open an issue first. CONTRIBUTING.md has the setup — no embedding server is needed to run the ~4,150 test functions — and the three checks CI runs.
Questions and ideas are welcome in Discussions. A sentence in the docs that confused you is worth reporting too: it is a defect of its own.
Support
- Bugs and requests: open an issue.
- Security: report privately, as SECURITY.md describes.
- Which version to run: SUPPORT.md.
- In Japanese: the docs have a language selector, and a book on Zenn covers the design and setup.
If CPersona has earned a place in your workflow, you can sponsor the work on GitHub. It buys no feature and no place in the issue queue; starring the repository, filing a clear issue or fixing a sentence in the docs helps too.
License
MIT — see LICENSE.
來源:README.md,提交 bc1d7f2
工具
0版本歷史
1- v2.5.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分

