Model or dataset
open-compress/claw-compactor avatar
open-compress/claw-compactor

claw-compactor's weighted average is a plain mean, its diagram names six of fourteen stages, and its branch has been idle since April

14-stage Fusion Pipeline for LLM token compression — reversible compression, AST-aware code analysis, intelligent content routing. Zero LLM inference cost. MIT licensed.

2,005 stars182 forksPythonMIT

At a glance

What is it?
open-compress/claw-compactor compresses a workspace through a staged pipeline with no LLM inference cost, where the benchmark table's weighted average is the arithmetic mean of its own rows, the two documented documentation addresses are different hosts, the API example imports from a source tree rather than the installed package, and the manifest classifies the project as stable while the default branch has not been pushed to since 2026-04-01.
Who is it for?
claw-compactor is worth reading if you have a repository-sized context problem and want compression you can inspect, because the design principles on the page, a frozen context object, a gate that skips inapplicable stages, and originals kept in a rewind store, are the right shape for something that has to be debuggable rather than clever. Two things to check before you adopt it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Activity is slowing. The repository last received commits 7 months ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • open-compress/claw-compactor2,005 ★ · -20
Star history
Repository2026-09-102026-11-22
open-compress/claw-compactor2k2k

-20 Stars in the last 73 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

The weighted average row is the plain average of the six rows above it

The benchmark table compares a legacy regex path against the current engine across six content types, and the bottom row is labelled weighted average. The new figures are 25.0, 81.9, 24.1, 31.0, 15.0 and 40.7 percent. Added together and divided by six, they give 36.28, which rounds to the 36.3 the row shows. So the new column's weighted average is exactly its unweighted mean.

The legacy column does not behave the same way. Its six figures are 7.3, 12.6, 5.5, 5.7, 6.2 and 5.3, which average 7.1 by plain division, not the 9.2 in the same row. So the two columns cannot both be the average of the rows above them, and the weights behind either one are not documented anywhere on the page.

The improvement multiples are internally consistent, by contrast. Every one of them is the ratio of the two figures in its own row, and the 3.9x in the total row is 36.3 over 9.2. The arithmetic of the comparison is therefore sound; it is the label on the summary row that does not match what was summed.

Real repository code compresses between eleven and nineteen percent

The headline on the page is a 15 to 82 percent range. The benchmark table that supports it includes one entry at 81.9 percent, for a JSON payload of 100 items, and the rest sit between 15 and 41 percent. The single most flattering number in the set is also the one measured on the most compressible input.

The other table on the page, labelled SWE-bench real tasks, tells the opposite story. Five real instances from django, sympy and scikit-learn compress to 14.5, 19.1, 15.9, 11.8 and 14.4 percent. So on actual repository code the range is 11.8 to 19.1 percent, which sits below the bottom of the headline range for four of the five, and far below the 36.3 percent the other table's summary row reports.

There is a visible size effect in the five numbers. The two smallest inputs, at 4.5K and 5.5K, give the two highest rates. The two largest, at 73K and 81K, give the two lowest. That is the opposite of the intuition behind the synthetic table, where the structured JSON input compresses best, and it suggests the rate to plan around is the low one rather than the average.

The diagram names six stages of a pipeline it calls fourteen

The architecture diagram chains six named stages together with their annotations: KV-cache alignment, automatic content and language detection, base64 stripping, path shortening, simhash deduplication, and JSON sampling. The project describes itself throughout as a fourteen-stage pipeline, so the diagram shows the first six and leaves the other eight to the architecture document.

The demo output on the page matches those six rather than fourteen. The stage table lists Cortex applied to 47 of 47 files with no reduction attributed to it, Photon applied to 3 files for 2.1 percent, RLE applied to 41 files for 8.3 percent, and SemanticDedup applied to all 47 for 12.7 percent, at which point the block ends. Three stages in, the attributed reductions add up to 23 percent.

Reversibility is the other place the page needs reading carefully. It is listed as a property, yes, in the comparison table, and the mechanism is described as originals held in a hash-addressed rewind store with a tool the model can call to retrieve a compressed section by its marker ID. So a section is restored on request rather than restored automatically, and the compression is reversible in the sense that the text still exists somewhere rather than in the sense that the output is lossless.

Zero required dependencies, next to tree-sitter in the keyword list

One row of the comparison table claims zero required dependencies, and the manifest's keyword list contains tree-sitter, which is the parser the AST-aware code handling is built on. The same table has a row for AST-aware code handling marked yes, with tree-sitter named in the cell.

The accurate reading is that nothing in the base install is a hard requirement in the ordinary sense, and that the extras are optional in the packaging rather than in the description. There is a separate optional group for exact token counts, which pulls tiktoken, and the page says the counts are approximate without it. So the honest version of that row is that the default install gives you estimated token counts, and a parser for structure-aware compression is referenced but not installed by default.

The reversible column has a similar wobble. Claw Compactor is marked yes, and gzip with base64 is marked yes with the qualifier manual. Since decompressing base64 is a library call, the qualifier describes the workflow rather than the mathematics, which makes the two rows harder to compare than the table's formatting suggests.

The quick start installs from PyPI and the API example imports from scripts

The installation section is unremarkable. The package installs with pip, or from a clone with an editable install, and it needs Python 3.9 or newer. Two commands are shown, one that benchmarks a workspace and is labelled non-destructive, and one that runs the full compression pipeline.

The API example immediately after it is where the packaging shows through. The documented import is from the engine inside the project's scripts directory:

python
from scripts.lib.fusion.engine import FusionEngine

That path is a source tree layout, not an installed package layout. Someone who took the two preceding steps and installed from the index has a `claw_compactor` distribution and no `scripts` package to import from, so the first code sample on the page is the one example that does not work for the audience the install section is written for. The command line entry point is declared separately in the manifest, so the console script and the library import are following two different conventions about what the package is called.

Three documentation addresses and two releases three minutes apart

The documentation for this project lives in three places. The project metadata names an external site as the homepage, the page's own links point at a documentation site generated from the repository, and the manifest's Documentation field points at a different documentation host entirely. A reader who trusts the manifest to send them to the right place will end up somewhere the readme does not mention.

The manifest also names two authors, one of which is an individual handle and the other a contributors group, and the keyword list carries the name of the parent project rather than a search term a user would type.

The release history is the more interesting part. Two of the three most recent releases are v7.0.1 and v7.0.2, published on the same evening three minutes apart, and their titles are a fix to PyPI packaging and a fix to wheel packaging for CI respectively. Two releases to repair a release pipeline, minutes apart, is a packaging problem that was still being worked on at that point rather than a settled process.

And the version numbers disagree with each other. The manifest says 7.1.0 and the newest tag agrees, but the structured metadata block at the top of the page says 7.0.0 and the demo banner says v7.0.

The manifest classifies the project as stable and the branch stopped in April

The manifest carries a classifier reading Development Status 5, Production or Stable, alongside classifiers for Python 3.9 through 3.12 and a typing marker.

The default branch tells a different story. The most recent push is dated 2026-04-01, which is 185 days before the release of the newest tag, v7.1.0 on 2026-03-20, and about six months before the present. The repository is not archived, so nothing has been formally closed, but the branch has not moved since April and the release line has not moved since March.

So the stability classification describes an intention rather than a recent state of activity, and it is the one claim on the page with no date attached to it. Nothing else in the release history contradicts it directly, since the version line did reach 7.1.0, but a reader deciding whether to depend on the package should weigh the classifier against the push date rather than take either on its own.

The top level of the repository supports the same reading. There is a changelog, a security policy, a code of conduct, a citation file, a documentation configuration, a skills file, and directories for benchmarks, references, tests, assets and a proxy. There is also a single configuration file at the root for something named after a different system, which no other file on the page refers to.

Editorial conclusion

claw-compactor is worth reading if you have a repository-sized context problem and want compression you can inspect, because the design principles on the page, a frozen context object, a gate that skips inapplicable stages, and originals kept in a rewind store, are the right shape for something that has to be debuggable rather than clever. Two things to check before you adopt it. The headline range is set by a synthetic table while the real repository numbers on the same page are between eleven and nineteen percent, so size your expectation on those. And the reversibility claim depends on the model choosing to call a retrieval tool, which is a different guarantee from lossless compression. Finally, the last commit on the default branch is dated 2026-04-01, so check whether a newer version exists before pinning.

Frequently asked questions

How much does claw-compactor compress?

The page claims 15 to 82 percent depending on content. The synthetic benchmark table ranges from 15 to 81.9 percent across six content types, while the SWE-bench table on real repository code gives 11.8 to 19.1 percent.

Does claw-compactor need an LLM or an API key?

The stated advantage is zero LLM inference cost, and the comparison table marks inference cost at zero dollars, the same figure it gives gzip with base64. An optional extra exists for exact token counts via tiktoken.

Is claw-compactor compression reversible?

The page lists reversibility as a feature, and the mechanism is a hash-addressed rewind store that holds originals, with a tool the model can call to retrieve a compressed section by its marker ID. Restoration is therefore on request rather than automatic.

How many stages does the claw-compactor pipeline have?

The project describes a fourteen-stage fusion pipeline. The diagram on the page shows six of them, and the demo output lists four stage results before the block ends.

When was claw-compactor last updated?

The default branch has not been pushed to since 2026-04-01, and the most recent release tag is v7.1.0 dated 2026-03-20. The repository is not archived, but nothing has been released since March 2026.

Official sources

  1. License: MIT
  2. open-compress/claw-compactor on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/open-compress-claw-compactor.svg)](https://hysenlabs.com/projects/open-compress-claw-compactor)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/open-compress-claw-compactor.svg)](https://hysenlabs.com/projects/open-compress-claw-compactor)

Was this useful?