PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Context Compression Python Packages

Python packages with the GitHub topic context-compression. Sorted by monthly downloads, with stars and forks.
activeing123
mcptoon

One zero-dependency CLI for every MCP server and agent skill. Token optimization, tool discovery and context compression: 71,929 -> 581 tokens (-99.2%, measured), schemas stay out of context. One config for Claude Code, Codex, Cursor, every agent. 341KB, pure Python. | 零依赖 CLI:管所有 MCP 工具与技能,工具发现省 99.2% token。

14K 218 10
dshakes
distil-llm

Compression with a quality contract — cache-aware, causally-pruned LLM context compression for agentic runtimes, certified non-inferior across 7 domains. Works with any SDK.

10K 19 3
juyterman1000
entroly-core

Cut AI context cost without trusting the compressor. Every reduction is reversible, byte-exact recoverable, and carries an auditable receipt. Local-first, works through proxy, MCP, SDK, or agent wrapper.

10K 474 72
juyterman1000
entroly

Cut AI context cost without trusting the compressor. Every reduction is reversible, byte-exact recoverable, and carries an auditable receipt. Local-first, works through proxy, MCP, SDK, or agent wrapper.

5K 474 72
Taha-azizi
contextpress

Deterministic context compression for LLM chat, RAG, and agent pipelines

5K 2 1
naranor
agent-coderag

CodeRAG: Lightweight semantic code search and distillation utility for AI coding agents. It solves the API knowledge gap via real-time local signature extraction and intent analysis. Optimized for token efficiency, it compresses codebase context into compact semantic summaries stored in a local DuckDB vector similarity index.

3K 2 1
oceanbase
powermem

Not only memory but a full story.

3K 1K 249
layer1labs
specsmith

Lean governance for AI-assisted development: requirements tracking, test enforcement, epistemic context compression, auditable evidence, Grace local REPL, and coding-agent integrations.

3K 8 1
omar-y-abdi
furl-ctx

Context compression for AI agents — cut token usage costs with retrievable CCR compression. Rust core + Python API, Claude Code & Codex plugin, MCP server. PyPI: furl-ctx

2K 5 0
oceanbase
powercontext

Not only memory but a full story.

2K 1K 244
ojuschugh1
sqz

Context compression for AI coding agents: compresses tool output before it enters the model, dedups repeats to 13-token refs. Claude Code, Cursor, Codex, Kiro, Zed, any MCP client. Rust, zero LLM calls.

2K 646 43
maheshmakvana
graphsift

Token Saver for Claude, GPT-5 & Gemini. 80-150x code context reduction, F1 0.85. AST dependency graph, ranked context selection, 19 CLI compressors, MCP server, agent memory. Save LLM tokens — zero telemetry.

1K 5 0
lucasmartins-ai
local-context-compiler

Cut LLM context and Claude Code sessions 40–80% without rewriting a byte. Offline, verbatim, with an audit receipt for every block dropped. CLI, MCP server and Claude Code/Open AI Plugin. MIT.

1K 12 0
hermes-labs-ai
langstate

Inspectable context compression for LLM conversations: turn older history into visible scaffold state, keep recent turns verbatim, and check named facts with lexical receipts.

856 2 1
finktech-dev
llm-zip

Self-hosted HTTP sidecar for LLM context compression. Reduce token costs 3–5× before calling any AI API — powered by LLMLingua-2 and MarkItDown. No proxy, no API keys, no GPU required.

506 1 0
MakeaMouse
fish-bridge-mcp

An economical and fuel(token) efficient AI tool, graph session memory for looong chat session

471 2 0
SUDARSHANCHAUDHARI
foldback-ai

Lossless context compression for LLM agents — fold it down, fold it back. Compresses tool outputs/logs before the model, prompt-cache-preserving, 39–82% fewer tokens. pip install foldback-ai

461 1 0
open-compress
claw-compactor

14-stage Fusion Pipeline for LLM token compression — reversible compression, AST-aware code analysis, intelligent content routing. Zero LLM inference cost. MIT licensed.

458 2K 184
robbiebusinessacc
justllm

Production LLM calls. Just the three lines. Cross-provider fallback, native caching, and reversible context compression on by default.

443 2 1
aimaghsoodi
foveance

A lossless token-optimization codec for LLM agents — cut input tokens up to 82%, nothing dropped, every fact kept. Drop-in proxy + one-line Python API for Claude Code, Codex, Cursor, OpenAI, Anthropic & Ollama. pip install foveance

412 20 1
RecepKurtulus
headroom-winnow

Winnow: separate the grain from the chaff in your coding agent's tool output. A task-aware pruner for Headroom, powered by Squeez models.

378 2 0
riceharvest
ctxprune

Context compression for AI agents: LLMLingua-2 successor that keeps IDs, paths and numbers intact. 68.8% vs 53.4% QA at 50% kept.

291 0 0
oceanbase
powermem-mcp

Not only memory but a full story.

253 1K 249
castnettech
mnemosyne-mcp

State aware knowledge compression, ingestion, and hybrid retrieval engine. Zero dependencies. Sub-100ms queries.

249 62 9
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology