{"id":"open-compress-claw-compactor","name":"claw-compactor","homepage":"https://www.opencompress.ai/","repo_url":"https://github.com/open-compress/claw-compactor","category":"ai-ml","subcategories":[],"tags":["ai-ml","devtools","api-tools","context-compression","token-compression","reversible-compression","ast-code-analysis","python","cli","local-offline"],"what_it_does":"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.","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"],"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).","alternatives":["LLMLingua-2","SelectiveContext","gzip + base64","Custom rule-based tokenizers/minifiers","tree-sitter-based code transforms (rolled in-house)"],"af_score":56.5,"security_score":32.8,"reliability_score":38.8,"package_type":"skill","discovery_source":["openclaw"],"priority":"high","status":"evaluated","version_evaluated":null,"last_evaluated":"2026-03-30T13:21:10.822162+00:00","interface":{"has_rest_api":false,"has_graphql":false,"has_grpc":false,"has_mcp_server":false,"mcp_server_url":null,"has_sdk":true,"sdk_languages":["Python"],"openapi_spec_url":null,"webhooks":false},"auth":{"methods":["None (local library/CLI usage)"],"oauth":false,"scopes":false,"notes":"No authentication mechanism is described because this appears to be a local/offline library and CLI."},"pricing":{"model":null,"free_tier_exists":false,"free_tier_limits":null,"paid_tiers":[],"requires_credit_card":false,"estimated_workload_costs":null,"notes":"No hosted service pricing described; PyPI package install suggests self-hosted/local usage."},"requirements":{"requires_signup":false,"requires_credit_card":false,"domain_verification":false,"data_residency":[],"compliance":[],"min_contract":null},"agent_readiness":{"af_score":56.5,"security_score":32.8,"reliability_score":38.8,"mcp_server_quality":0.0,"documentation_accuracy":75.0,"error_message_quality":0.0,"error_message_notes":null,"auth_complexity":100.0,"rate_limit_clarity":0.0,"tls_enforcement":0.0,"auth_strength":50.0,"scope_granularity":0.0,"dependency_hygiene":55.0,"secret_handling":60.0,"security_notes":"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.","uptime_documented":0.0,"version_stability":70.0,"breaking_changes_history":40.0,"error_recovery":45.0,"idempotency_support":"false","idempotency_notes":"Compression appears as a pure pipeline returning results; however, no explicit idempotency guarantees are described for CLI operations or rewind/marker store interactions.","pagination_style":"none","retry_guidance_documented":false,"known_agent_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."]}}