MCP Sophon — AI skill for Claude Code
Deterministic context compressor for MCP agents.
How to install MCP Sophon
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open lacausecrypto/mcp-sophon and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What MCP Sophon does
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.
Alternatives in AI
- Sentrux — Real-time architectural sensor that helps AI agents close the feedback loop, enabling recursive self-improveme 2.9k ★
- Agenvoy — Self-hosted AI agent harness in a single Go binary — writes, sandbox-tests and repairs its own tools, and lets 474 ★
- Octocode — Structural code intelligence for AI agents — semantic search, knowledge graphs, and a built-in MCP server in o 464 ★
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
Apohara Agentguard
Anti-bypass command-safety hook, local seccomp+Landlock sandbox, and deterministic prompt-injection firewall f
Rusty Gitclaw
A universal git-native AI agent framework — written in Rust. Single binary. Zero dependencies. 383 models. Bla
Konnect
AI-assisted PCB design for KiCAD 10. Native KiCAD plugin — a single Rust binary exposing 171 schematic, layout
Xint Rs
X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. Single Rust binary, 2.5MB, <5ms startu
Cage Bro
A sandboxed execution environment for AI agents. Single Rust binary with browser, shell, code execution, file
Mempalace Rust
The highest-scoring AI memory system ever benchmarked. Now in Rust with rich features — single-binary port fro
Related Agents
Loom Daemon
Loom Daemon operator - Tier 2 daemon-mode surface that observes the running Rust loom-daemon binary via MCP to
Flutter GraphQL
Use this agent when integrating GraphQL APIs with Flutter apps. Specializes in graphql_flutter, query/mutation
Pss Agent Profiler
Analyzes agent definitions and generates .agent.toml profiles. Uses Rust binary for candidate scoring + post-f