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. observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 75
- Release rhythm 75
- Longevity 14
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0.5
- age_days: 205
- days_rel: 167
- days_push: 154
- n_releases_24m: 5
Adoption not part of the score
2033 stars · 185 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Claw Compactor is an open-source Python library and CLI tool that compresses LLM input tokens via a 14-stage Fusion Pipeline, achieving 15-82% reduction with zero LLM inference cost. It uses reversible compression, AST-aware code analysis via tree-sitter, and intelligent content routing to shrink prompts and agent context windows.
Use cases
- compress prompts before sending to an LLM to cut token costs
- shrink agent context windows so long sessions fit the model's limit
- compress code workspaces with AST-aware analysis before LLM calls
- reduce token usage in Claude Code or Cursor agent traces
- deduplicate and prune repetitive context in chatbot pipelines
- reversibly decompress content after LLM processing
When to choose
- you want deterministic, offline token compression with no LLM inference cost
- you need reversible compression so original content can be restored
- your workload includes source code that benefits from AST-aware analysis
- you want a Python library plus CLI with MIT licensing and active test coverage
When to avoid
- you need semantic compression that requires an LLM or embedding model
- your prompts are already short and pre-optimized (minimal impact expected)
- you need a hosted gateway that compresses output tokens across providers
- you require guaranteed lossless fidelity for all content types
Facets
library · maturity active
compression nlp parser developer-tools large-language-models artificial-intelligence developer-tools python cli cross-platform token-compression context-window-optimization prompt-compression ast-analysis tree-sitter llm-cost-reduction fusion-pipeline reversible-compression ai-agents natural-language-processing
3 sources
- readme: https://github.com/open-compress/claw-compactor · fetched 2026-08-28 · f9d930ccca99
- homepage: https://www.opencompress.ai/ · fetched 2026-08-29 · ed6c35add6f3
- registry_pypi: https://pypi.org/pypi/claw-compactor/json · fetched 2026-08-29 · 371134d3f55e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| open-compress/claw-compactor | main | 63 |
For agents
markdown · JSON · MCP: product_card(name="open-compress/claw-compactor")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem