01 / 07

Entroly

Information-theoretic context optimization for AI coding agents. Your AI sees the RIGHT code, not just ALL the code.

100% Rust Core MCP Server Auto-Tuning Cross-Session Memory
$ pip install entroly
$ docker run -it entroly:latest
# Works with Cursor, VSCode, Claude, Codex
02 / 07

😤 The Developer's Daily Pain

Every time you ask your AI agent to fix a bug, this happens:

💸

Token Waste

Your entire codebase gets dumped into context. 78% of tokens are irrelevant noise — CSS, README, changelogs — burning API credits.

78% wasted
🔄

Partial Failures

The AI sees auth/db.py but misses config/database.py. It generates code with the wrong DB connection. You re-prompt 3-5 times.

3-5x re-prompts
🧠

Memory Bloat

Duplicate files waste tokens. auth/db.py and auth/db_backup.py are nearly identical — 85 tokens burned on redundant content.

0 dedup
📉

No Cross-Session Learning

You fixed this same SQL injection pattern last week. The LLM forgot. Every session starts from absolute zero.

0 memory
03 / 07

⚡ Entroly Optimizes Your Context (Real Engine)

13 files ingested → 4 relevant selected → in 0.47ms

✅ Selected (high value)

auth/db.py 85 tok entropy: 0.89 ★ SQL injection
auth/queries.py 72 tok entropy: 0.87 ★ parameterized
models/user.py 50 tok entropy: 0.88 ★ User model
config/database.py 40 tok entropy: 0.86 ★ DB config
─────────────────────────────
Total: 247 / 250 tokens (98.8% budget utilization)

❌ Excluded (noise / duplicate)

README.md 120 tok → low relevance
static/styles.css 140 tok → low relevance
utils/email.py 110 tok → low relevance
CHANGELOG.md 95 tok → low relevance
tests/conftest.py 100 tok → low relevance
utils/validators.py 90 tok → low relevance
views/home.py 65 tok → low relevance
auth/db_backup.py 85 tok → DUPLICATE detected
docker-compose.yml 90 tok → low relevance
04 / 07

📊 Side-by-Side Comparison

❌ Without Entroly

Recall~50-75%
Precision~25-40%
Token Waste78%
Dedup0 caught
Re-prompts/task~3.2
Cross-session memoryNone
Self-improvementNone
VS

✅ With Entroly

Recall100%
Precision100%
Token Waste1.2%
Dedup1 caught (85 tok saved)
Re-prompts/task~1.1
Cross-session memoryHippocampus LTM
Self-improvementAutotuner (12ms/iter)
05 / 07

📈 Live Dashboard (Real Engine Stats)

Fragments Indexed
13
deduplicated
Total Tokens Tracked
1,142
across codebase
Avg Entropy
0.8725
Shannon bits/token
Optimize Latency
0.47
milliseconds
Duplicates Detected
1
SimHash hamming ≤ 3
Context Efficiency
894.0
info / (tok/1000)

🔬 Autotuner Status

Strategybalanced (auto-detected)
Composite Score0.6451
Benchmark Cases50 (all pass)
Iteration Speed~12ms/iter
Hard Time Budget500ms gate
Idle-Only ModeCPU < 30%
06 / 07

🔧 10 Real Subsystems Under the Hood

🧮
Shannon Entropy Scoring
Measures information density — ranks code by actual value, not file size
🔍
64-bit SimHash Dedup
Near-duplicate detection via hamming distance < 3 — saves wasted tokens
🎯
Hybrid Semantic Matching
SimHash + n-gram Jaccard blend for query-aware relevance ranking
🎒
0/1 Knapsack DP
Maximizes total value within token budget — optimal in sub-millisecond time
🧠
Ebbinghaus Decay
Older fragments naturally deprioritized via exponential forgetting curve
🔗
Import Dependency Graph
Auto-links related files via import/identifier analysis for context coherence
⚖️
Compare-Calibrate Filter
Post-selection redundancy check — swaps similar fragments for diversity
🎲
ε-Greedy Exploration
Occasionally explores new fragments to prevent feedback loop starvation
🛡️
SAST Security Scanner
Auto-flags hardcoded secrets, SQL injection, unsafe patterns in real-time
💀
Skeleton Substitution
Fits structural summaries of excluded files into remaining budget space
07 / 07

💰 Business Value

⏱️
34 min
saved per developer per day
(from reduced re-prompting)
💵
78%
fewer wasted tokens per call
(noise filtered, duplicates eliminated)
🚀
0.47ms
optimization latency
(Rust knapsack DP — faster than ping)
🧠
cross-session memory
(hippocampus long-term recall)
🔬
12ms
per autotune iteration
(self-improving, zero developer effort)
🐳
251MB
Docker image size
(production-ready, batteries included)

Your AI agent deserves better context.

Works with Cursor • VSCode • Claude • Codex • Any MCP client

pip install entroly
docker run -it entroly:latest

github.com/juyterman1000/entroly  •  100% Rust Core  •  MIT Licensed