Lossless context compression for LLMs: 2x-8x fewer tokens, byte-exact reconstruction (sha256-verified). MCP server for Claude Code & Cursor.
Lossless context compression for LLMs. Pack any text into 2x–8x fewer tokens with guaranteed byte-exact reconstruction — verified by sha256 on every decompress.
An o200k token can carry up to ~17.6 bits of information, but typical code occupies tokens at only ~5–6 bits each. densely reclaims the difference:
Each carrier word (" the", " of", …) costs exactly 1 token — the o200k pre-tokenizer never merges across word boundaries — so every token in the payload carries 2 bytes of compressed data (16 of the ~17.6 theoretically available bits, 91% of channel capacity).
Reproduce with python3 bench.py (fixed seeds, stdlib code sample):
Scenario Backend Tokens (o200k) Ratio Saved ------------------------------------------------------------------------- Code (argparse.py + densely) lzma 21,659 → 10,726 2.02x 50.5% Code (same sample) neural 21,659 → 2,538 8.53x 88.3% Code never seen by the model neural 3,433 → 472 7.27x 86.3% JSON (code search, 100 hits) lzma 15,465 → 1,995 7.75x 87.1% Logs (SRE incident, ~1600 ln) lzma 117,766 → 16,962 6.94x 85.6%
The neural backend (--backend neural, python3 bench.py --neural) drives an integer arithmetic coder with next-token probabilities from Qwen2.5-Coder-0.5B, NNCP-style batched across segments. The 88.3% figure benefits from the model having seen Python's stdlib during training; the 86.3% row is this repo's own sources — code that did not exist before 2026-08-08 — and is the honest number for novel code (~0.56 bit/byte).
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/alibaizhanov--densely.html)
Skill router and context picker for Claude Code, Cursor, and Aider. Auto-picks the right skill for every prompt, with prompt-injection filtering for MCP.
surendranb/writing-skillsProcedural writing-style skills for AI agents: official frameworks (plain language, business writing, GOV.UK, AP style, STE-100, developer docs) + character voices. Agent Plugins 1.0.0, works in openc
thaildhe172591/pythiaPL/SQL development for AI agents on Oracle Database - expert queries, impact analysis, and a snapshot-verified write path with honest rollback
tmolavi/mcp-agent-skills-hubMolavi Agent Skills: Curated AI agent skills and MCP configs for Antigravity, Cursor, Codex & Claude — by Taghi Molavi
ismailsaoulaj/reddit-mcp-serverA production-grade Model Context Protocol (MCP) server. Empowers AI assistants (Claude, Cursor) to search, fetch, and analyze Reddit discussions with resilient rate-limiting and smart LLM noise filter
rokbenko/quackd🦆🧠 Give your Microduck a brain. Tell a small robot with two legs what you want in plain language. An LLM (Claude, OpenAI, Gemini, Grok) uses the skills it already has to do it. Includes a simulator, .
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.