agentleFS
MicrosoftKnown publishermicrosoft/preflate-rs/util/CLAUDE.md

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.

The file

Files
CLAUDE.md

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

  1. For each file, calls PreflateContainerProcessor to compress.
  2. Optionally calls RecreateContainerProcessor to decompress and byte-compares the result.
  3. 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 parsing
  • cpu-time (1) — CPU time measurement
  • preflate-rs and preflate-container — core logic
  • env_logger / log — logging

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.