
CogniCore
io.github.cognicore-dev由 GitHub 帳號 cognicore-dev 發布v0.10.3更新於 Nov 6, 2026
Memory, reflection and safety for AI agents. Hosted or local, no vector database.
發布方自己的服務:core.blue
概覽
託管式記憶伺服器,可儲存編碼代理的會話並在另一個代理中續接,附帶反思與提示注入防護。
- 可以做什麼
- 自動儲存會話並在之後續接,可在同一個代理或不同代理(Claude Code、Codex 及任何 MCP 用戶端)之間交接。
- 儲存經驗並依語意跨會話、跨程序檢索。
- 從反覆失敗中歸納教訓,並在下次嘗試前提示。
- 在提示注入與越獄內容送達代理前加以攔截。
- 重播過去的執行或從任一步驟分支,並匯出、匯入附簽章的記憶包。
- 適用情境
- 適合工作橫跨多個編碼代理會話,或在 Claude Code 與 Codex 之間切換時,希望目標、待辦事項、決策與具體數值自動延續、不必重新說明的場景。也適合需要提示注入防護或可檢視會話記憶的用途。
- 執行需求
- 遠端端點 mcp.cognicoree.tech,使用 streamable HTTP;需以 GitHub 帳號進行 OAuth 登入,每個帳號對應獨立的記憶資料庫。本機版本需 Python 3.10-3.12 與 cognicore-env 套件;選用擴充可提供語意記憶、LLM 代理、儀表板與 mem0 移轉。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 CogniCore,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.cognicore-dev%2Fcognicore-env/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"cognicore": {
"type": "http",
"url": "https://mcp.cognicoree.tech/mcp/stream"
}
}
}README
CogniCore
Memory that moves between your coding agents. Work in Claude Code, close it, open Codex, and it carries on with the same ticket, the same decisions and the same open follow-up. There's nothing to re-explain.
[PyPI] [Python] [License] [Downloads]
[Claude Code hands its work to Codex through CogniCore memory]
Restart Claude Code. In Codex, run /hooks once and trust the three CogniCore hooks. Using Claude Code only? Run /plugin install cognicore --marketplace cognicore-dev/cognicore-env inside it.
Why CogniCore
Measured on real Claude Code and Codex sessions against claude-mem 15.7.0. In each task, session 1 does part of a job, its transcript is moved out of reach, and a fresh session 2 must finish a deferred follow-up and answer 8 questions. Both systems got every follow-up right.
Method and full results: docs/transfer-audit.md. Rerun them yourself with scripts/bench_realworld.py.
How it works
- Automatic. When a session ends, hooks save it from the agent's own transcript. At the next start they inject that project's latest work. There's nothing to remember to call.
- A short, useful brief. It covers the goal, where things stand, open tasks, decisions with their reasons, and exact values like ticket IDs, versions and paths. It's sized to a token budget, and the agent can ask for more sections when it needs them.
- Any agent. Work saved in Claude Code resumes in Codex, and the other way round. Any MCP client can call
cognicore_save_sessionandcognicore_resume_session. - Local and private. Memory stays in
~/.cognicore/mcp(SQLite). CogniCore never reads tool output, file contents or the model's thinking, and it redacts secrets before saving. - Optional sync with claude.ai, Desktop and mobile. Run
cognicore loginonce. Claude Code and Codex sessions then reach your hosted account, and sessions from the CogniCore connector come back. Only the redacted handoff is sent, never the transcript. - Inspectable.
python -m cognicore.memory.vieweropens a read-only page listing every saved session.
Plugin details: plugins/cognicore/README.md · full-quality demo: MP4
The CogniCore library
Under the plugin is a Python library for persistent memory, reflection and safety in any agent. It has zero mandatory dependencies, and it needs no vector database, embedding server or other infrastructure.
An agent debugs an issue, finds the fix, and the session ends. The next run starts from zero: the same questions, the same dead ends, the same fixes that were already rejected. Conversation history records what was said, not what was tried, what failed and what worked. CogniCore keeps that experience.
[Watch the 56-second library demo]
Install
Python 3.10+. No mandatory dependencies. No API key is needed for memory, reflection or safety.
Quickstart
Give any function a memory of its own past runs:
The first run starts cold. From the second run onward, CogniCore supplies the relevant past context automatically — including the approaches that already failed.
See memory change the outcome
What you get
Memory
Safety
Replay and branching
Benchmarks
LongMemEval — STRICT R@5
LongMemEval is the hardest memory benchmark: the answer requires combining evidence from several separate past sessions, so no single retrieved chunk is sufficient on its own.
CogniCore's multi-hop adapter addresses exactly that. Instead of taking the top-N most similar chunks and stopping, it:
- extracts the key entities from the query,
- retrieves anchor chunks on the first hop,
- traverses session and time links to reach connected chunks the first hop missed, and
- selects the set of chunks that together cover the most entities — not the ones with the highest individual scores.
The gain is largest where token efficiency matters. At 20 chunks brute force catches up, and we report that rather than hiding it.
Known limitation: lexical (TF-IDF/BM25) retrieval misses when session vocabulary differs from
the query's. Semantic search is available behind the [memory] extra.
Integrations
MCP server
CogniCore ships an MCP server, so MCP clients get persistent memory with no code changes:
Hosted endpoint
A hosted instance is live — no install, no local process to manage:
Health check: https://mcp.cognicoree.tech/health returns {"status":"ok","version":"1.0","commit":"<sha>"},
where commit is the commit the server is running.
Add it as a custom connector in any MCP-compatible client (Claude, Claude Code, Cursor, Sarvam
Cowork) and sign in with GitHub. The server is its own OAuth 2.1 authorization server, and each
GitHub account gets its own memory database — see
docs/remote-mcp-server.md.
All 31 tools are listed in docs/mcp-tools.md, which states for each one
whether it reads your data, changes it, or calls a third-party service.
Claude plugin
plugins/cognicore is the local-first plugin. It saves and resumes sessions automatically through hooks, with memory kept in ~/.cognicore/mcp. cognicore install sets it up for both Claude Code and Codex. Inside Claude Code alone you can also run:
For the hosted, GitHub-sign-in variant, see plugins/cognicore-memory.
mem0
Transfer verified memories to and from mem0 with cryptographic integrity.
Export a sealed bundle (Ed25519-signed, deterministic canonical JSON):
Import it with fail-closed verification — there is no bypass:
Verified memories land in the trusted partition. Unverified or environment-incompatible records go into structural quarantine, where they are invisible to normal search. Promotion out of quarantine requires fresh verification evidence — never elapsed time, never repetition.
Design discussion: mem0ai/mem0#7376 · run-llama/llama_index#23122
CLI
If cognicore isn't on your PATH after install, run
python -c "from cognicore.cli import main; main()".
Optional extras
The base install has zero required dependencies. Add only what you need:
Troubleshooting
Repository layout
The module-by-module map is in CONTRIBUTING.md.
Links
- Website: https://www.cognicoree.tech
- PyPI: https://pypi.org/project/cognicore-env/
- Demo video: https://github.com/cognicore-dev/cognicore-env/releases/download/demo-video/cognicore-demo.mp4
- LinkedIn: https://www.linkedin.com/company/135163927/
- Issues: https://github.com/cognicore-dev/cognicore-env/issues
Requirements
Python 3.10, 3.11 or 3.12 · Windows, macOS or Linux · no mandatory dependencies.
License
Licensed under the Apache License 2.0. © cognicore-dev, built by Kaushal Trivedi, Durvesh Bhadgaonkar and Hassaan Tole.
來源:README.md,提交 6ddeca9
工具
0版本歷史
1- v0.10.3最新Oct 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Core 整合
core.blue
blue.core官方發布者
core.blue 的遠端 MCP 端點,提供每位客戶獨立的私有代理記憶「house」:可讀手冊、試用沙盒、查價格與建議,並申請 house。

Brevio Core
由 GitHub 帳號 Brevio-Ventures 發布
本機 MCP 伺服器,讓編碼代理掃描程式碼中反覆出現的代理式錯誤、解釋規則、列出規則,並把一次修正固化成守衛。

brain-core
由 GitHub 帳號 xy-claude 發布
本機 MCP 伺服器,為 Claude Code 代理提供跨工作階段的長期記憶,以 markdown 檔案加上本機 SQLite 與向量索引保存。

Scovant Core
由 GitHub 帳號 Scovant 發布
對網站進行被動式AI代理就緒掃描:robots、llms.txt、JSON-LD、MCP發現、安全性。AI 翻譯

ProofCore
由 GitHub 帳號 ProofCore-Protocol 發布
面向AI代理的TON區塊鏈零認證加密公證與證據層。AI 翻譯