Help AI agents use fewer tokens and keep more useful context. Reversible code, JSON and text compression, persistent memory, focused reads and version-aware edits.
-
Updated
Oct 21, 2026 - Python
Help AI agents use fewer tokens and keep more useful context. Reversible code, JSON and text compression, persistent memory, focused reads and version-aware edits.
Minipy3 is a powerful Python 3 code minimizer and compressor. It reduces script size by rewriting the Abstract Syntax Tree (AST), consolidating imports, and optimizing integers. It features advanced payload compression using lzma, zlib, and Base85 encoding. Includes a CLI tool and Python API for seamless integration into deployment pipelines.
High-speed AST code compressor & MCP server for AI coding assistants (Cursor, Claude, Windsurf, Copilot). Cuts prompt tokens by 80–95% while keeping 100% valid syntax.
🍇 Write Python code LLMs can read — ~50% fewer tokens, 100% same functionality. Verified by 786 tests across 6 experiments. Claude Code skill + benchmarks + methodology.
Compile code for machine attention with a lazy, content-addressed semantic IR.
Context compression for LLM prefill — logs, JSON, prose, code. 660K-param ML model, 95% reduction on structured data.
To associate your repository with the code-compression topic, visit your repo's landing page and select "manage topics."