AI development/GitHub/Tool
claw-compactor
by open-compress·Last observed 2026-10-27
★ 2,004 stars⑂ 183 forks
Claw Compactor is an open-source token compression engine for LLM inputs. Its 14-stage pipeline detects content types such as code, JSON, logs, diffs, and search results, then applies specialized compression stages. Optional rewind markers let an LLM retrieve stored original sections.
Useful for
- Compress a coding assistant's conversation messages, then retrieve an original section when needed.
Key features
- Route content through specialized stages, including AST-aware code compression and JSON sampling.
- Store originals with hash-addressed rewind markers for retrieval of compressed sections.
Requirements & limitations
- Requires Python 3.9 or newer. Exact token counting with tiktoken and AST-aware compression with tree-sitter are optional enhancements.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.