
Baron Munchausen
io.github.shinegang由 GitHub 帳號 shinegang 發布v0.6.1更新於 Oct 24, 2026
Local grounded memory for coding agents: MCP over stdio, stdlib only, a verdict per answer
概覽
供編碼代理使用的本機記憶伺服器,僅用標準函式庫,保存專案事實並對回答給出有據、部分有據或無據的判定。
- 可以做什麼
- 將事實寫入本機圖譜,每次最多 50 筆,並在事實不再成立時以可復原方式撤回,同時保留僅追加的稽核日誌。在回答前檢索圖譜並產生受預算限制的提示片段,若記憶中已有答案可回傳 graph_first 直接採用。在回答後逐句核對圖譜,回傳判定結果並列出沒有依據的句子。透過檢查點還原專案脈絡,回傳線索開頭、最近工作階段、未結事項與近期決定。同一套 30 個工具同時透過 MCP stdio 與本機回送位址上的 JSON-RPC 提供。
- 適用情境
- 適用於長時間編碼工作階段在關閉分頁、額度用盡或更換模型後遺失脈絡,且希望專案決定與事實保存在本機的情況。也適合希望回答先與已記錄事實核對、而非直接採信的情況。
- 執行需求
- 以本機程序在使用者機器上執行,僅支援桌面端。需要 Python 3.12,沒有第三方執行期相依套件。由於尚無 PyPI 或 npm 套件,需複製儲存庫或從檢出目錄執行 pip install 安裝。需要支援標準 mcpServers JSON 設定區塊的用戶端,或使用內附的 stdio 橋接。伺服器監聽 127.0.0.1:8765,圖譜存放在本機 JSON 檔案中。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Baron Munchausen,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Baron Munchausen — local memory that outlives the chat
Everything above is a real run against a clean clone. rpc is the two-line
curl wrapper defined in docs/demo/baron-demo.sh;
re-record the whole thing with cd docs/demo && ./record.sh.
Public alpha (0.6.1). The engine has run daily in the authors' own work for months; this repository is one day old. The code is Apache-2.0 and complete — the packaging, the docs and the install path are what "alpha" refers to. Report anything that breaks.
Your session ends. Your project doesn't. One call brings back where the
project stopped, what was decided and what comes next — after a closed tab, a
spent limit or a change of model. And every answer built on that memory comes
back with a verdict: grounded, partial or ungrounded, with the sentences
nothing backs named one by one.
[License] [Python] [Runtime dependencies] [MCP Registry]
A memory server in Python 3.12 with no third-party runtime dependency. MCP over
stdio for your client, JSON-RPC on 127.0.0.1:8765 for everything else. Nothing
here calls a model and nothing leaves your machine. A fresh install starts with
an empty graph: we ship the tools, never the data.
Why
Three numbers, each one measured, each one with what it does not say written next to it.
1. One context return: 7 146 tokens → 2 388. The 7 146 is a real compaction
summary out of a session transcript; the 2 388 is the slice a live
memory_ground_prepare returned for the same moment of the same project. Both
counted with tiktoken/cl100k_base on 2026-09-10. What it does not say: it
is one pair of instances, not a distribution — a second summary from the same
corpus came to 5 913 tokens, which would make the same slice a 60 % cut instead
of a 67 % one.
2. Claude Opus 5: −69.6 % input tokens, measured. Not arithmetic on the
figures above — this is what the models' own usage reports came back with on
live runs of the same tasks, 2026-09-10. Sonnet 5 came to −61.7 %, Haiku 4.5 to
−66.3 % on the same runs. What it does not say: these are the authors' graph
and the authors' tasks. Your ratio depends on how much of your context is
recoverable from a graph at all, and nobody has run this on a public benchmark
yet.
3. Thirty tools, zero runtime dependencies. curl -s 127.0.0.1:8765/health reports "tools": 30 on a fresh clone — the same 30 over
MCP stdio and over JSON-RPC, with requirements.txt empty of third-party
runtime packages. What it does not say: nothing about quality. It is a count.
What those percentages are worth in money depends on your model and your volume: the savings calculator on shinegang.click does that arithmetic with current list prices, and shows which figures are measured and which are calculated.
Install in two minutes
Step 2 prints {"product": "Baron Munchausen", "version": "0.6.1", "nodes": 0, "tools": 30}. Without jq, drop the pipe and read the raw JSON.
Write a fact and get a verdict without any client at all — this is the same JSON-RPC the demo above runs:
Installing the package (pip install .) puts the same server on PATH as
baron; python3.12 -m baron works from a checkout.
Clients
Any client that takes the standard mcpServers JSON block can use Baron. These
are the ones with a file in integrations/
already written:
Claude Code can go further than registration: the PreCompact and
SessionStart hooks in tools/hooks/claude/ re-inject a
slice of the graph when the context window is compacted, so what the window
drops the graph still holds.
What it does, with the number and where it is checked
Every number below was measured on 2026-09-10 on the authors' own graph and their own machine, and every one of them can be re-measured from this repository. Where a number does not exist yet, this page says so.
Numbers this project does not have. No LongMemEval or LoCoMo score: those harnesses have not been run here, and until they are, the honest word is "not measured". In fourteen days of live use the verdict distribution on the authors' own journal was 81 ungrounded, 41 partial, 20 grounded over 142 passes — that is a measurement of how often agents answered without consulting the graph first, not a quality score, and it is published because hiding it would be the kind of thing this tool exists to catch.
How grounding actually works
No pre-pass, no credit. Call memory_ground without a matching
memory_ground_prepare and the verdict is ungrounded (notes: no_pre_pass),
however many claims the text happens to support.
Full detail: docs/GROUNDING.md.
Your graph starts empty
blank never overwrites an existing file, and the graph you get really is
empty. When the two collide, the server refuses to start and tells you what to
do. Configuration: docs/CONFIGURATION.md.
Install from directories
Baron is published in the official MCP Registry as
io.github.shinegang/baron:
Registries that mirror the official index (Glama, and clients that read it directly) pick the entry up from there. This repository carries the metadata those directories read:
There is no package on PyPI or npm yet, so the registry entry points at the
source repository rather than at an installable artifact: install with the
git clone in Install in two minutes, or pip install . from the
checkout. When baron-munchausen lands on PyPI, a packages block goes into
server.json and the same directories will offer one-command installs.
Contributing
Issues and pull requests are welcome. Two house rules, and they are the rules the software enforces on itself:
- A claim comes with its source. A bug report with the command that reproduces it is worth ten without one.
- "I could not check" is a valid answer and a better one than a guess.
unknownis a status here, not a failure.
Run python3.12 -m pytest tests -q before opening a pull request.
License
Apache-2.0 — LICENSE.
來源:README.md,提交 2c42945
工具
0版本歷史
1- v0.6.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分