claw-compactor

Claw Compactor is an open-source Python library/CLI that compresses LLM input text and workspace content using a 14-stage, content-aware “Fusion Pipeline.” It focuses on reversible compression (via marker-based rewind retrieval) and AST-aware code compression (tree-sitter when available), aiming to reduce token counts and estimated inference cost without using external LLM inference for the compression itself.

Evaluated Mar 30, 2026 (0d ago)
Homepage ↗ Repo ↗ Ai Ml ai-ml devtools api-tools context-compression token-compression reversible-compression ast-code-analysis python cli local-offline
⚙ Agent Friendliness
56
/ 100
Can an agent use this?
🔒 Security
33
/ 100
Is it safe for agents?
⚡ Reliability
39
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
0
Documentation
75
Error Messages
0
Auth Simplicity
100
Rate Limits
0

🔒 Security

TLS Enforcement
0
Auth Strength
50
Scope Granularity
0
Dep. Hygiene
55
Secret Handling
60

Appears to be a local/offline tool with no network authentication described. Reversible compression implies original content may be stored in a RewindStore; ensure it is protected appropriately (file permissions, retention controls). Optional dependencies (tiktoken, tree-sitter language packs) increase the dependency surface; no SBOM/CVE status provided in the provided data.

⚡ Reliability

Uptime/SLA
0
Version Stability
70
Breaking Changes
40
Error Recovery
45
AF Security Reliability

Best When

You need local, offline, deterministic-ish token reduction for structured and code-heavy content (code/JSON/logs/diffs), and you want reversibility via markers for later retrieval.

Avoid When

You require a networked service with standardized REST/GraphQL contracts, or you need strong confidentiality controls beyond local handling (e.g., multi-tenant environments without sandboxing).

Use Cases

  • Compressing code, JSON, logs, diffs, and search results before sending to an LLM to fit context windows
  • Reversible prompt/context compression for agents that may need to retrieve original sections on demand
  • Preprocessing large workspaces for cost/latency reduction in LLM-driven workflows
  • AST-aware code minification/compression while preserving identifiers (where supported)
  • Deduplicating and folding repeated content across messages/workspace inputs

Not For

  • Protecting secrets or providing security guarantees for sensitive content (it’s a local compression tool, not an access-control system)
  • Replacing a model-driven summarizer for tasks requiring deep paraphrasing or new reasoning
  • High-assurance reversible storage/retention requirements without reviewing the RewindStore implementation
  • Production systems needing a hosted HTTP API with managed authentication and rate limiting

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: None (local library/CLI usage)
OAuth: No Scopes: No

No authentication mechanism is described because this appears to be a local/offline library and CLI.

Pricing

Free tier: No
Requires CC: No

No hosted service pricing described; PyPI package install suggests self-hosted/local usage.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • Reversibility depends on RewindStore/marker handling; agents must preserve marker IDs and have access to rewind retrieval in the same execution context/config.
  • Tree-sitter/token-count accuracy depend on optional extras; behavior and exact token estimates may differ without optional dependencies.
  • Because it’s content-aware, stage application can be skipped; agents should not assume all stages run for every input.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for claw-compactor.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-30.

6533
Packages Evaluated
19870
Need Evaluation
586
Need Re-evaluation
Community Powered