SuperAPI AI Directory

entroly

Local-first MCP server for explicit-budget context selection, content-addressed exact recovery, and auditable Context Receipts. Apache-2.0.

Open website

About this tool

Entroly is an open-source, local-first AI token efficiency and context assurance layer, primarily aimed at AI coding tools. It provides in-budget evidence selection, recoverable context compression, content-addressed evidence recovery, and auditable receipts.

Purpose: Entroly is used to reduce the context cost sent to AI without replacing the model or agent architecture, while ensuring that anything omitted can be recovered with byte-level precision and recording selection decisions. It is suitable for scenarios that need to control token consumption, preserve traceability, and recover unfinished work when switching between different coding agents.

Key capabilities:

  • In-budget evidence selection: select the most relevant evidence (files, snippets, etc.) within a given token budget, and record what is kept and what is omitted.
  • Recoverable compression: any omitted snippet can be recovered to its original bytes through a content-addressed handle, and can be verified via fingerprint.
  • Auditable receipts (Context Receipts): each selection decision generates a receipt explaining what was kept, what was omitted, and why, and noting residual risk.
  • Local-first: all operations run on the local machine, and verification and simulation can be performed without an API key.
  • Multiple integration methods: supports access via proxy, MCP, SDK, plugin, or agent wrapper.
  • Session rescue: when a long session approaches the provider's context limit, automatically compresses bulky tool output, keeps the prompt prefix byte-stable to preserve caching, and omitted content is recoverable.
  • Hallucination detection (WITNESS): runs locally without additional API calls, comparing AI answers against the given evidence.
  • Cross-agent shared memory: Claude, Codex, Cursor, Gemini, etc. can read and write the same compressed context store, supporting SimHash deduplication and agent provenance tracking.
  • Optionally route cheap work to cheap models (fail-closed).

How to use: Installation: The recommended Python package pip install -U entroly, and it can also be installed via npm, building from Rust source, Homebrew, or Docker. Quick start: run entroly go to register the MCP server and start the proxy and dashboard; or use entroly init(for Node users). For plugin users, after installing the Entroly plugin/extension for the corresponding host, submit a prompt, and then run entroly activation status --json to verify activation status. SDK users can directly from entroly import compress, compress_messages, optimize. Proxy users can run entroly proxy and point the API base URL to localhost:9377. Verification: run entroly verify-claims and entroly simulate to view real numbers locally for free, without an API key.

Use cases:

  • Context optimization for AI coding assistants (such as Claude Code, Cursor, Codex, GitHub Copilot, Aider, etc.).
  • Development workflows that need to control token costs while preserving recoverability.
  • Recovering unfinished work when switching across agents (entroly-work resume).
  • Integrating context selection and compression via SDK or proxy when building your own applications.

Limitations:

  • Compression is a tradeoff and does not improve accuracy on all tasks; for example, on SQuAD 2.0 accuracy dropped from 80% to 72%.
  • Some integrations (such as MCP-only) may be skipped by the agent unless the host has a verified lifecycle hook.
  • Provider-side savings only occur when requests pass through a path controlled by Entroly.
  • When the native engine is missing, query-condition selection is unavailable, and reduced data will be marked as not obtained.
  • Benchmark results come from specific experiments and do not constitute a general or production savings guarantee for user workloads.
  • Runtime package repair is off by default and must be explicitly enabled.

License: Apache-2.0.