preflate-rs / util
CLAUDE.md38 starsChanged 9 months agoApache-2.0View on GitHub
CLI tool for manually testing preflate compression on files and directories. <PATH> may be a single file or a directory (scanned recursively). Single file: src/main.rs (~193 lines). Helper assert_eq_array<T>() provides detailed positional diff output for debugging mismatches during verification.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- container/CLAUDE.mdCLAUDE.md
- dll/CLAUDE.mdCLAUDE.md
- fuzz/CLAUDE.mdCLAUDE.md
- preflate/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
The file
Files
util (preflate_util CLI)
CLI tool for manually testing preflate compression on files and directories.
Usage
preflate_util [OPTIONS] <PATH>
Options:
--max-chain <N> Hash chain depth limit (default: 4096)
-c, --level <N> Zstd compression level 0-14 (default: 9)
--loglevel <L> Log level (default: Error)
--verify <bool> Round-trip verify after compress (default: true)
--baseline <bool> Measure baseline Zstd-only size (default: false)<PATH> may be a single file or a directory (scanned recursively).
What It Does
- For each file, calls
PreflateContainerProcessorto compress. - Optionally calls
RecreateContainerProcessorto decompress and byte-compares the result. - Prints per-file and aggregate statistics: compressed size, baseline size, CPU time.
Source
Single file: src/main.rs (~193 lines).
Helper assert_eq_array<T>() provides detailed positional diff output for debugging
mismatches during verification.
Dependencies
clap(4, derive) — argument parsingcpu-time(1) — CPU time measurementpreflate-rsandpreflate-container— core logicenv_logger/log— logging
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

