Mcp Sophon
Description
Deterministic context compressor for MCP agents. Slots in front of prompt caching, mem0, Letta, or Claude Code. Single Rust binary, zero ML at query time.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Sophon
**Deterministic context compression for MCP agents.** One Rust binary. Zero ML at query time. Reproducible benchmarks, real-data measurements.
[](https://www.npmjs.com/package/mcp-sophon) [](https://www.npmjs.com/package/mcp-sophon) [](https://github.com/lacausecrypto/mcp-sophon/releases) [](https://github.com/lacausecrypto/mcp-sophon/actions/workflows/ci.yml) [](./LICENSE) [](https://www.rust-lang.org) [](https://modelcontextprotocol.io) [](./BENCHMARK.md)
Sophon is a deterministic context layer for agents speaking the Model Context Protocol. It compresses prompts, conversation memory, code digests, file deltas, and shell output — without an embedding model at query time, without a GPU, and without API keys.
**Single 5.2 MB Rust binary.** MCP-native. `cl100k_base`-accurate. Default build pulls no Python, no ML weights, no network.
What it does, in 30 seconds
| Tool | What it solves |
|---|---|
compress_prompt |
Long structured prompt → keep only sections relevant to the query |
compress_history |
Growing conversation → summary + facts + recent window + optional retrieval |
compress_output |
Shell stdout/stderr → 21 domain-aware filters (git, cargo, docker, kubectl, JSON, …) |
read_file_delta / write_file_delta |
Re-reads + edits → diffs only, never the whole file |
encode_fragments |
Repeated boilerplate → single token refe |
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI