Skip to main content
ClaudeWave

Baron Munchausen — local memory for coding agents that outlives the chat, with a verdict on every answer. Public alpha.

ToolsRegistry oficial2 estrellas0 forksPythonApache-2.0Actualizado today
ClaudeWave Trust Score
79/100
Trusted
Passed
  • Open-source license (Apache-2.0)
  • Actively maintained (<30d)
  • Clear description
  • Documented (README)
Flags
  • !Install pipes a remote script into a shell (curl | sh)
Last scanned: 9/11/2026
Get started
Method: Clone
Terminal
git clone https://github.com/shinegang/baron
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Casos de uso

Resumen de Tools

# Baron Munchausen — local memory that outlives the chat

![Baron Munchausen in 40 seconds: clone, start on an empty graph, write one fact,
get it back in a new session, and watch the verdict engine call a made-up
sentence ungrounded and the recorded one grounded](docs/demo/baron-demo.gif)

<sub>Everything above is a real run against a clean clone. `rpc` is the two-line
`curl` wrapper defined in [`docs/demo/baron-demo.sh`](docs/demo/baron-demo.sh);
re-record the whole thing with `cd docs/demo && ./record.sh`.</sub>

> **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](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
[![Python](https://img.shields.io/badge/python-3.12-blue)](pyproject.toml)
[![Runtime dependencies](https://img.shields.io/badge/runtime%20deps-0-brightgreen)](requirements.txt)
[![MCP Registry](https://img.shields.io/badge/MCP%20Registry-io.github.shinegang%2Fbaron-blue)](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.shinegang/baron)

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](https://shinegang.click/pricing.html#savings)**
does that arithmetic with current list prices, and shows which figures are
measured and which are calculated.

## Install in two minutes

```bash
git clone https://github.com/shinegang/baron.git && cd baron

# 1. start the memory server — standard library only, nothing to install
bin/baron --host 127.0.0.1 --port 8765 --store blank

# 2. in a second terminal: it is up, the graph is empty, 30 tools are loaded
curl -s http://127.0.0.1:8765/health | jq '{product, version, nodes, tools}'

# 3. check the stdio bridge against the live server
python3.12 bridge/mnemos_bridge.py --selftest

# 4. register it with your MCP client (Claude Code shown; the rest are below)
bash integrations/baron_add.sh
```

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:

```bash
curl -sX POST 127.0.0.1:8765/rpc -H content-type:application/json -d '{
  "jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"memory_add",
  "arguments":{"items":[{"claim":"The release build is pinned to Python 3.12.",
  "source":"team decision","kind":"rule"}],"session_id":"demo"}}}'
```

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/](integrations/README-integrations.md)
already written:

| Client | How | File |
|---|---|---|
| **Claude Code** | `bash integrations/baron_add.sh` | [`baron_add.sh`](integrations/baron_add.sh) |
| **Codex** | `bash integrations/codex/register.sh` | [`codex/`](integrations/codex/README.md) |
| **Cursor** | copy into `~/.cursor/mcp.json` | [`baron_cursor_mcp.json`](integrations/baron_cursor_mcp.json) |
| **llama.cpp** | copy next to your server config | [`baron_llama_cpp_mcp_servers.json`](integrations/baron_llama_cpp_mcp_servers.json) |
| **LangChain** | a working call against the HTTP endpoint | [`langchain_example.py`](integrations/langchain_example.py) |
| **Claude Desktop** | copy into `claude_desktop_config.json` | [`baron_claude_desktop.json`](integrations/baron_claude_desktop.json) |
| **Anything else** | `python3.12 bridge/mnemos_bridge.py` for stdio, `http://127.0.0.1:8765` for JSON-RPC | — |

Claude Code can go further than registration: the `PreCompact` and
`SessionStart` hooks in [`tools/hooks/claude/`](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.

| | What it does | Measured |
|---|---|---|
| **1. Sessions do not break** | One `memory_checkpoint` returns the head of the thread, the last **3** sessions, every open loose end and the last **5** decisions. | [`docs/QUICKSTART.md`](docs/QUICKSTART.md) |
| **2. A verdict on every answer** | `grounded` / `partial` / `ungrounded`, each unsupported sentence named. Thresholds: **0.60** backed, **0.30** partial, **0.80** of sentences for `grounded`. | [`mnemos/grounding.py`](mnemos/grounding.py), `tests/test_grounding.py` |
| **3. The slice has a budget** | 30 real queries against an **11 342**-node graph: median prompt **1 070** tokens, max **1 166**, ceiling **1 200**, over budget **0** times; median **5** nodes in the slice. | `mnemos/slice.py`, `mnemos/context_engine.py` |
| **4. It is fast enough to be in the loop** | Same 30 queries, local: median **115 ms** to build the slice, p90 **221 ms**, max **394 ms**. | `mnemos/context_engine.py` |
| **5. Any model, any client** | **30** tools over MCP stdio and JSON-RPC on `127.0.0.1:8765`. Claude Code, Codex, Cursor, llama.cpp, LangChain and a `curl` one-liner are equal clients. | [`integrations/`](integrations/README-integrations.md) |
| **6. It checks itself, without a model** | The pulse walks the whole graph continuously: **3 300** nodes in **571.7 s** at **0.72 %** of one core; on a **3 455**-node graph its first circuit filed **52** incidents. | `mnemos/pulse.py` |
| **7. Memory can forget by rule** | `memory_retract` closes a fact's validity window and drops it out of search, the slice and grounding; nothing is deleted from disk and `undo=true` restores it. | `mnemos/store.py`, `tests/test_memory_retract.py` |
| **8. It survives context compaction** | Claude Code hooks re-inject a slice of the graph on `PreCompact` and `SessionStart`, so what the window drops the graph still holds. | [`tools/hooks/claude/`](tools/hooks/claude/) |

**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

| Step | Tool | What it does |
|---|---|---|
| 1 — **before** the answer | `memory_ground_prepare(query, session_id)` | Searches the graph, builds a prompt from the nodes it found, registers the pre-pass. Returns `graph_first`: if the answer is already in memory, take it and skip the model. |
| 2 — the answer | *(your model)* | Generates from that excerpt — or does not generate at all. |
| 3 — **after** the answer | `memory_ground(answer_text, session_id)` | Splits the answer into claims, checks each against the graph, returns the verdict plus `unsupported_claims`. |
| one call | `memory_checkpoint(query, session_id, agent)` | Steps 1 and search together, with the project thread. |
| write | `memory_add(items=[{claim, source}, …])` | Up to 50 facts per call, gated per item. |
| retract | `memory_retract(node_id, reason)` | The fact stopped being true. Reversible. |
| audit | `memory_ground_log` | Append-only journal of every pass. |

**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/GROU

Lo que la gente pregunta sobre baron

¿Qué es shinegang/baron?

+

shinegang/baron es tools para el ecosistema de Claude AI. Baron Munchausen — local memory for coding agents that outlives the chat, with a verdict on every answer. Public alpha. Tiene 2 estrellas en GitHub y su última actualización registrada es del 2026-09-10.

¿Cómo se instala baron?

+

Puedes instalar baron clonando el repositorio (https://github.com/shinegang/baron) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar shinegang/baron?

+

Nuestro agente de seguridad ha analizado shinegang/baron y le ha asignado un Trust Score de 79/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene shinegang/baron?

+

shinegang/baron es mantenido por shinegang. La última actividad registrada en GitHub es del 2026-09-10, con 0 issues abiertos.

¿Hay alternativas a baron?

+

Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.

Despliega baron en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: shinegang/baron
[![Featured on ClaudeWave](https://claudewave.com/api/badge/shinegang-baron)](https://claudewave.com/repo/shinegang-baron)
<a href="https://claudewave.com/repo/shinegang-baron"><img src="https://claudewave.com/api/badge/shinegang-baron" alt="Featured on ClaudeWave: shinegang/baron" width="320" height="64" /></a>

Más Tools

Alternativas a baron