claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// MCP Servers

entroly

Cut your Claude / OpenAI / Gemini bill 70–95% on AI coding. Local proxy that compresses context, keeps provider caches hot, and verifies LLM output ($0 hallu…

// MCP Servers[ cli ][ api ][ desktop ][ claude ]#claude#ai#ai-agents#ai-hallucination#anthropic#chatgpt#claude-code#context-compression#mcp-serversApache-2.0$open-sourceupdated 11 days ago
Actively maintained
100/100
last commit 3 days ago
last release 3 days ago
releases 30
open issues 0
// install
{
  "mcpServers": {
    "entroly": {
      "command": "npx",
      "args": ["-y", "https://github.com/juyterman1000/entroly"]
    }
  }
}

中文日本語한국어PortuguêsEspañolDeutschFrançaisРусскийहिन्दीTürkçe

Entroly

Cut your Claude / OpenAI / Gemini bill 70–95% on AI coding.
Compress context, keep provider caches hot, and verify every answer with a $0 hallucination guard.

Drop-in for Cursor, Claude Code, Codex, Aider + 34 more and custom providers — 30s, no code changes.

Auditable context control plane · every answer gets a receipt: what was used, what was omitted, why, and the risks that remain · local-first · Rust + WASM · reversible · savings measured on real workloads

pip install entroly && cd /your/repo && entroly go

Get started · Proof · Integrations · What's inside · Architecture · For teams · Limitations

 


What it does

Entroly is an auditable context control plane for AI agents. It decides what context to send, records what it left out, and produces a receipt you can inspect before trusting a hard multi-file answer.

  • Receipts - every selection run can explain selected chunks, omitted nearby evidence, dependency links, fingerprints, token ratio, and residual risks.
  • Select - ranks your repo or document set, then sends the answer-relevant context under a token budget.
  • Verify - WITNESS checks the model's answer against the evidence it was given and flags unsupported claims. $0, ~3 ms, no extra API call.
  • Route - sends easy, repeated tasks to a cheaper model and keeps the flagship for hard ones (opt-in, fail-closed).
  • Cache-align - keeps the injected prefix byte-stable so provider prefix caches can keep hitting where terms and API shape allow it.
  • Learn - improves which files it picks for your workflow from local feedback. No embeddings API, no training job.

Use it however you work: wrap your agent, run it as a proxy, plug it in as an MCP server, or import the library.


How it works (30 seconds)

your agent  ──►  Entroly (local)  ──►  LLM provider
                 │
                 ├─ rank the repo        (BM25 + entropy + dep-graph)
                 ├─ select under budget  (knapsack, reversible)
                 ├─ emit receipt         (included, omitted, risks)
                 ├─ cache-align prefix    (keep provider cache hot)
                 └─ verify the reply      (WITNESS hallucination guard)

Critical files go in full. Supporting files become signatures. Everything else becomes a reference you can expand on demand — so the model gets a broader view of your codebase in a smaller prompt. Nothing is lost: every compressed fragment is fully retrievable.


Get started (60 seconds)

pip install entroly        # or: npm i -g entroly  ·  brew install juyterman1000/entroly/entroly

1. One command — auto-detects your IDE, wraps your agent, opens the dashboard:

cd /your/repo && entroly go

2. Or wrap a specific agent:

entroly wrap claude     # Claude Code
entroly wrap cursor     # Cursor
entroly wrap codex      # Codex CLI
entroly wrap aider      # Aider

3. Or run the proxy — zero code changes, any language:

entroly proxy                                   # http://localhost:9377
ANTHROPIC_BASE_URL=http://localhost:9377     your-app
OPENAI_BASE_URL=http://localhost:9377/v1     your-app

4. Or measure it on your own repo first:

entroly demo            # before/after token + cost estimate
entroly simulate        # local no-LLM savings estimate
entroly perf            # local no-LLM savings + optimizer latency
entroly verify-claims   # runs the packaged self-test, writes a JSON report

Local-first: your code is indexed and selected on-device, never sent anywhere for analysis. Apache-2.0. No outbound analytics by default.


Context Receipts

Entroly gives every AI answer a context receipt: what was used, what was omitted, why, and what risks remain. This is built for hard multi-document work such as contracts, policies, addenda, code reviews, and audit evidence where "top-k chunks" is not enough.

entroly ingest ./docs
entroly select --query "Does this contract have a change-of-control clause?" --budget 8000
entroly receipt .entroly/receipts/cr_example.json
entroly explain --why-omitted chk_example --receipt .entroly/receipts/cr_example.json

The receipt JSON includes selected chunks, omitted relevant chunks, ranking reasons, dependency links, source fingerprints, token ratio, warnings, and a reproducibility hash. The Markdown report is designed for human review before a compressed context is trusted.

Implementation notes:

  • Rust core (entroly-core/src/context_receipts.rs) handles deterministic ingestion, BM25-style ranking, dependency scans, selection, and hashes when the native wheel is available.
  • Python control plane (entroly/context_receipts/) provides CLI wiring and a pure-Python fallback for source checkouts.
  • The semantic/vector scorer and reranker are explicit extension points; the local MVP ships with lexical scoring and dependency heuristics, not a legal-accuracy guarantee.

Examples:


Proof

Every number below is reproducible and backed by a committed JSON artifact you can audit — not a screenshot.

Token savings (this repo, entroly verify-claims, local, no API):

BudgetToken reduction
8K99.1%
32K96.7%
average across workloads87.0%

Accuracy retention — does compression hurt answers? Measured with gpt-4o-mini; intervals are Wilson 95% CIs. Each row links its raw result file.

BenchmarknBudgetBaselineWith EntrolyRetentionToken savings
NeedleInAHaystack202K100%100%100%99.5%
LongBench (HotpotQA)502K64%66%103%85.3%
Berkeley Function Calling50500100%100%100%79.3%
SQuAD 2.05010080%72%90%43.8%
GSM8K2050K85%85%100%pass-through*

*pass-through: context already fit the budget, so Entroly left it unchanged. Reproduce: python benchmarks/run_readme_benchmarks.py (needs OPENAI_API_KEY). Full table + MMLU/TruthfulQA in DETAILS.

Hallucination guardHaluEval-QA, standard protocol, GPT-judge baseline on identical data:

SystemAccuracyAUROCCost / latency
WITNESS + STAVE (default)85.8%0.844$0, ~3 ms/decision
gpt-4o-mini (grounded judge)86.3%LLM call
gpt-3.5-turbo (HaluEval paper)62.6%LLM call

$0, zero-network verifier that statistically ties a strong LLM judge. Reproduce: python benchmarks/halueval_qa_faithful.py. Proof JSON.


Works with your stack

entroly wrap <agent> picks the best integration for each tool — proxy env-wrap for CLIs, auto-merged mcp.json for MCP-aware IDEs, or a copy-paste endpoint hint.

Wrap in one command: claude · cursor · codex · aider · gemini · windsurf · vscode · zed · cline · continue and 28 more.

Full agent list (38 targets)
TypeAgents
CLI (env-wrap + exec)Claude Code, Codex CLI, Aider, Gemini CLI, Qwen Code, OpenCode, Charm CRUSH, Hermes, Pi, Ollama
MCP IDEs (auto-merge mcp.json)Cursor, Windsurf, VS Code, Claude Desktop, Claude Code (MCP), Zed
Copy-paste endpointCline, Roo Code, Continue, Cody, Amp, Kiro, Qoder, Trae, Antigravity, Amazon Q, Verdent, JetBrains AI, Helix, Tabby, Twinny, Sublime, Emacs, Neovim, Fitten, Tabnine, Supermaven

Any tool that supports a custom OPENAI_BASE_URL / ANTHROPIC_BASE_URL works via the proxy. Run entroly wrap (no agent) for the full grouped list. Use wrappers only with tools whose terms permit local proxies / custom endpoints.

As a library (LangChain, LlamaIndex, your own code):

from entroly import compress, compress_messages, optimize

compressed = compress(api_response, budget=2000)          # query-agnostic
messages   = compress_messages(messages, budget=30000)    # whole conversation
context    = optimize(fragments, budget=8000, query="fix the login bug")  # task-conditioned

In CI — fail the build if a prompt blows the token budget:

- run: pip install entroly && entroly batch --budget 8000 --fail-over-budget

When to use it · when to skip

Great fit

  • Large repos where the agent only sees a few files at a time
  • Chatty, multi-turn agents (cache alignment compounds the savings)
  • Anywhere you want answers checked against evidence before you trust them
  • Teams trying to cut a real, growing AI bill

Skip it (it'll just pass through)

  • Tiny repos or short prompts that already fit the budget
  • Judgment-heavy tasks where you want the full flagship model every time

What's inside

Most people install Entroly for input-token compression. It actually ships 19 local cost-saving mechanisms across input, inference, output, verification, and learning — each one readable in the source with a committed benchmark where applicable.

The 19 levers (and the file that implements each)
#LeverWinSource
1Context compression (knapsack + 9 compressors + dep-graph)39–99% input tokensproxy_transform.py, qccr.py
2WITNESS + STAVE hallucination gatewayAUROC 0.844, $0witness.py, verifiers/stave.py
3Cache Alignerup to 90% off cached callscache_aligner.py
4Escalation cascade (conformally calibrated)avoids most flagship callsescalation.py
5Conformal cascadeproven cost/coverage tradeoffconformal_cascade.py
6RAVS Bayesian routerroutes easy tasks to cheaper modelsravs/router.py
7Fast-path crystallized skills100% LLM cost saved on cache hitsfast_path.py
8Adaptive compression budgetright-sizes budget per queryadaptive_budget.py
9Entropic conversation pruningflattens history-growth costproxy_transform.py
10Shell-output compression60–95% on tool outputproxy_transform.py, shell_codec.py
11Response distillationfewer output tokens billedproxy_transform.py
12Local DeBERTa NLI (opt-in)$0 offline NLIwitness.py
13EICV suppressorstops bad info propagatingeicv_suppressor.py
14PRISM 5D adaptive weightsquality improves with useonline_learner.py, prism.rs
15Federation (opt-in)amortized cold-startfederation.py
16Entropic Shell Codecuniversal tool-output fallbackshell_codec.py
17Semantic Resolution Protocol40–70% fewer tokens on file readssemantic_resolution.py
18Adversarial Context Firewallblocks prompt-injection / poisoningcontext_firewall.py
19Witness-Verified Handofffilters hallucinations between agentsverified_handoff.py

Most levers are multiplicative: input compression × cache alignment × cheaper-model routing × output distillation can leave well under 1% of the original input-token spend on the bill. Per-lever contribution shows up in the dashboard's Cost Intelligence panel. Full math and proofs in docs/DETAILS.md.

Engine & install options

Python is the reference runtime; the Rust core (via PyO3) does the heavy compute at 50–100× Python speed, and the same engine ships to Node via WASM.

pip install entroly            # core: MCP server + Python engine
pip install entroly[proxy]     # + HTTP proxy
pip install entroly[native]    # + Rust engine
pip install entroly[full]      # everything

npm install -g entroly         # WASM runtime, no Python needed
docker pull ghcr.io/juyterman1000/entroly:latest

Single binary, no Python — a standalone Rust proxy that auto-detects Anthropic/OpenAI/Gemini and stays cache-aligned:

cd entroly/entroly-core && cargo build --release --bin entroly-rs --features proxy
./target/release/entroly-rs proxy --upstream https://api.anthropic.com

WITNESS — check answers before you trust them

entroly witness --context-file evidence.txt --output-file answer.txt --mode strict
entroly proxy --witness strict --witness-profile rag    # suppress unsupported claims inline

Profiles tune false-positive behavior per workload (rag, qa, code fail closed; chat, summary warn). Every non-streaming response gets a proof certificate; the dashboard shows flagged claims, evidence snippets, and suppression counts. Optional offline DeBERTa NLI (ENTROLY_LOCAL_NLI=1) raises accuracy further at $0.


Compared to

EntrolyCompression toolsTop-K / RAGRaw truncation
ApproachRank → select → compressCompress whatever's givenEmbedding retrievalCut off
Token savings70–95% (large repos)50–70%30–50%0%
Quality lossNone measured2–5%VariableHigh
Needs embeddings APINoVariesYesNo
ReversibleYesVariesYesNo
Learns over timeYes (PRISM)NoNoNo
Verifies the answerYes (WITNESS)NoNoNo

Compressing a bad selection is still a bad selection. Entroly ranks first, then compresses — so the model gets structure, not just fewer tokens.


Docs & community

Command reference
CommandWhat it does
entroly goOne shot: detect IDE, wrap your agent, open the dashboard
entroly wrap <agent>Wrap a specific coding agent (38 supported)
entroly proxyStart the HTTP proxy on localhost:9377
entroly serveStart the MCP server
entroly daemonSupervise proxy + dashboard + MCP + file watcher
entroly dashboardOpen the live metrics dashboard
entroly demoBefore/after token + cost estimate on your repo
entroly ingestIngest documents into a local Context Receipt index
entroly selectSelect context under budget and write a Context Receipt
entroly receiptRender a Context Receipt as a Markdown report
entroly explainExplain why a chunk was selected or omitted
entroly simulateLocal no-LLM savings estimate with an explicit baseline
entroly perfLocal no-LLM savings and optimizer latency
entroly benchmarkLocal comparison: Entroly vs raw context vs top-K
entroly healthCodebase health grade (A–F)
entroly cache statsPersistent cross-session cache stats
entroly ravs reportModel-routing cost-savings report
entroly witnessCheck an answer against supplied evidence
entroly verify-claimsRun the packaged self-test → JSON report

Apache-2.0 · local-first · no outbound analytics by default

pip install entroly && entroly go

// compatibility

Platformscli, api, desktop
Operating systems
AI compatibilityclaude
LicenseApache-2.0
Pricingopen-source
LanguagePython

// faq

What is entroly?

Cut your Claude / OpenAI / Gemini bill 70–95% on AI coding. Local proxy that compresses context, keeps provider caches hot, and verifies LLM output ($0 hallucination guard). Drop-in for Cursor, Claude Code, Codex, Aider + 34 more and custom providers — 30s, no code changes. It is open-source on GitHub.

Is entroly free to use?

entroly is open-source under the Apache-2.0 license, so it is free to use.

What category does entroly belong to?

entroly is listed under mcp-servers in the Claudeers registry of Claude-compatible tools.

0 views
419 stars
unclaimed
updated 11 days ago

// embed badge

entroly on Claudeers
[![Claudeers](https://claudeers.com/api/badge/entroly.svg)](https://claudeers.com/entroly)

// retro hit counter

entroly hit counter
[![Hits](https://claudeers.com/api/counter/entroly.svg)](https://claudeers.com/entroly)

// reviews

// guestbook

0/500

// related in MCP Servers

🔓

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete…

// mcp-serversf/HTML164,687NOASSERTION[ claude ]
🔓

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io

// mcp-serversfarion1231/Rust112,854MIT[ claude ]
🔓

An open-source AI agent that brings the power of Gemini directly into your terminal.

// mcp-serversgoogle-gemini/TypeScript105,729Apache-2.0[ claude ]
🔓

A collection of MCP servers.

// mcp-serverspunkpeye/90,251MIT[ claude ]
→ see how entroly connects across the ecosystem