← LACAUSE LACAUSE
EN FR
MCP · RUST PERSONAL PROJECT

Sophon

Deterministic context compression for MCP agents: one Rust binary, no model at query time and reproducible measurements.

✦ Rust · MCP · Benchmarks

Agents spend tokens on things that don’t need a model: re-read files, verbose shell output, ever-growing conversation history. Sophon is an MCP server that compresses that traffic deterministically, with no embedding model, GPU or API key at query time. It sits in front of prompt caching, memory layers such as mem0, or Claude Code.

What it does

How it’s built

Rust workspace of 11 crates, compiled to a single 5.2 MB binary by default; tree-sitter and a BGE embedder are opt-in build features. Installs through npm (prebuilt binaries) or cargo.

Status

Open source · MIT — View the code ↗

✦