Skip to content

Open-source streaming file hasher

Did a single byte inside any of these files change?

Timestamps lie and filenames prove nothing. Hash (invoked locally as hashbytes) streams files through a 64 KB constant-memory buffer and adds SHA-256 or BLAKE3 digests to every record in a manifest in deterministic order. Your files stay on your device.

Try the byte-identity check ->InstallUse in a Claude Artifact
Step 1 of 4Prove byte identity

All 4 files produced identical SHA-256 hashes across Tuesday and Friday.

File modification timestamps can change on every copy or zip extraction. hashbytes hashes the actual file bytes in constant 64 KB memory so identical files always yield the exact same digest.

FileStatusBytesSHA-256 digest
cmbs_tape_oct.csvMATCH158 Bsha256:3349c6be0b9e...b6ef1c
cmbs_tape_sep.csvMATCH168 Bsha256:c59ec909d541...cf436d
covenants.yamlMATCH69 Bsha256:433b6371ede1...42c1a1
README.txtMATCH45 Bsha256:676baf063290...1844b7

Real SHA-256 on your device · Zero uploads (works with Wi-Fi off)

Inspect hash.v0 JSONL output & hashbytes CLI commands
{"version":"hash.v0","relative_path":"cmbs_tape_oct.csv","size":158,"bytes_hash":"sha256:3349c6be0b9e5014648899c47aa047138d744a9fdceaf39d5ff25372ebb6ef1c","hash_algorithm":"sha256","tool_versions":{"vacuum":"0.6.1","hash":"0.6.0"}}
{"version":"hash.v0","relative_path":"cmbs_tape_sep.csv","size":168,"bytes_hash":"sha256:c59ec909d541d34a91c01a08311b331643d73a9c855185175b6988c1eacf436d","hash_algorithm":"sha256","tool_versions":{"vacuum":"0.6.1","hash":"0.6.0"}}
{"version":"hash.v0","relative_path":"covenants.yaml","size":69,"bytes_hash":"sha256:433b6371ede167ac99415b6daa8abdcb0847064d282b3a1af84541347042c1a1","hash_algorithm":"sha256","tool_versions":{"vacuum":"0.6.1","hash":"0.6.0"}}
{"version":"hash.v0","relative_path":"README.txt","size":45,"bytes_hash":"sha256:676baf0632909018d332fa23ea65d90e935aebb784a4216bc7587ee24e1844b7","hash_algorithm":"sha256","tool_versions":{"vacuum":"0.6.1","hash":"0.6.0"}}

SHA-256 (default) pipeline

vacuum /data/oct | hashbytes | lock --dataset-id "oct" > delivery.lock.json

BLAKE3 on large folders

vacuum /data/oct | hashbytes --algorithm blake3 --jobs 4

Running locally in browser memory (real SHA-256 · loading @cmdrvl/web WASM): Computes real FIPS 180-4 SHA-256 byte digests synchronously in browser memory with zero uploads and swaps onto compiled @cmdrvl/web sha256_hex and blake3_hex Rust WASM automatically.

Claude Artifacts · @cmdrvl/web

Like this instant SHA-256 checker? Put it in a Claude Artifact.

Paste this prompt into Claude.ai to spin up a zero-upload SHA-256 file identity and byte-change verifier Artifact backed by the same contract as @cmdrvl/web's live sha256_hex / blake3_hex Rust WASM.

@cmdrvl/web on GitHub ->
Build an interactive React Claude Artifact called "CMD+RVL Streaming Byte Hasher (hashbytes)" that computes real SHA-256 digests for local files completely in browser memory with zero server uploads.

Follow CMD+RVL's hash.v0 contract (https://github.com/cmdrvl/web):
1. Include 3 presets (4 files matching across Tuesday and Friday, 1 single digit edited keeping identical filename and byte size while completely flipping SHA-256, and 1 unreadable file flagged _skipped: true with PARTIAL exit 1) plus a live local file / text byte editor.
2. Compute real client-side SHA-256 digests and preserve exact input record order in emitted hash.v0 JSONL.
3. Lead with a concrete plain-English verdict headline and a file status/size/digest table; tuck hash.v0 JSONL output and hashbytes CLI commands inside an expandable drawer.
4. Structure hashing behind a clean digest function ready to bind @cmdrvl/web's compiled sha256_hex and blake3_hex Rust WASM functions.

Works inside Claude.ai Artifacts today with real client-side SHA-256 (test it with Wi-Fi off). Compiled sha256_hex and blake3_hex Rust WASM already ship in github.com/cmdrvl/web.

Run it locally

Install cmdrvl-hash and run hashbytes in your stream pipeline.

The repo and protocol name is hash (hash.v0), while the executable binary is named hashbytes so it never collides with shell builtins. Pipe vacuum JSONL straight into hashbytes.

Recommended entry pointView cmdrvl/hash on GitHub ->

hashbytes CLI (v0.6.0)

Streams files through 64 KB constant-memory buffers across parallel workers (--jobs N) while keeping deterministic input order, supporting SHA-256 and BLAKE3.

1. Install via Homebrew

brew install cmdrvl/tap/cmdrvl-hash

2. Run locally

vacuum /data/oct | hashbytes | lock --dataset-id "oct" > delivery.lock.json
Binary & formula
brew install cmdrvl/tap/cmdrvl-hash · executable is hashbytes
Algorithms
SHA-256 (default) and BLAKE3 (--algorithm blake3)
Constant memory
64 KB streaming buffer per worker · parallel, ordered output
Browser WASM
sha256_hex and blake3_hex already ship in @cmdrvl/web
For scripts and CI: standalone hash binary, exit codes, and refusal codes

BLAKE3 mode and @cmdrvl/web browser WASM

View cmdrvl/web on GitHub ->

Switch to --algorithm blake3 for multi-gigabyte archives, pass --jobs 1 for sequential debugging, or use compiled sha256_hex / blake3_hex directly in browser tabs via @cmdrvl/web.

Install standalone binary

cargo build --release

Invoke directly

vacuum /data/oct | hashbytes --algorithm blake3 --jobs 4

Exit codes & verdicts

ALL_HASHED

Exit 0

Every input record was hashed successfully in deterministic input order with zero skipped records.

PARTIAL

Exit 1

One or more records carried _skipped: true (from upstream vacuum or unreadable bytes during streaming). Readable files still emit valid hashes; exit 1 forces explicit handling.

REFUSAL

Exit 2

Invalid JSONL input (E_BAD_INPUT), missing required fields, or stdin/stdout I/O error. Emits a typed refusal envelope with next_command.

Common refusal & finding codes

CodeWhen it firesRemediation
E_BAD_INPUTInput stream is not valid JSONL or misses required path fieldsPipe from vacuum: vacuum <ROOT> | hashbytes
E_IOFatal stdin/stdout I/O failureCheck pipe permissions and disk space
_skipped (PARTIAL)An individual file could not be read for hashing (exit 1)Inspect skipped records with jq 'select(._skipped == true)'

Learning progression

Files hashed? Pin them into a lockfile next or step back to vacuum.

hashbytes sits right between vacuum (inventory) and lock (pinning), giving every file in your pipeline a deterministic SHA-256 or BLAKE3 identity before downstream checks run.

  1. 01rvlSee what moved
  2. 02shapeCheck compatibility
  3. 03profileScope columns
  4. 04verifyEnforce rules
  5. 05packSeal proof
  6. 06veilGuard privacy

Previous in pipeline · vacuum

Survey a delivery folder read-only first.

Walk one or more directories into sorted vacuum.v0 JSONL with --include and --exclude globs before streaming bytes into hashbytes.

Back to vacuum & folder survey ->

Next in pipeline · lock

Pin all hashed files into one self-hashed lockfile.

Pipe hashbytes straight into lock so downstream shape, rvl, and verify runs refuse immediately if any file drifts on disk.

Continue to lock & drift check ->

What hash handles

  • Computes SHA-256 (default) and BLAKE3 (--algorithm blake3) content hashes using 64 KB constant-memory streaming buffers
  • Hashes files in parallel (--jobs N) while preserving deterministic input record order on stdout
  • Enriches vacuum.v0 JSONL into hash.v0 JSONL while preserving upstream fields and exact JSON numbers
  • Tracks unreadable files explicitly as _skipped: true and exits 1 (PARTIAL) rather than failing silently
  • Accumulates tool_versions metadata and feeds directly into fingerprint and lock
  • Pairs with compiled Rust WASM sha256_hex and blake3_hex already shipped in @cmdrvl/web

Explicit boundaries & limits

  • Matching hashes prove byte-for-byte identity only; they do not establish source authority or factual truth of the contents.
  • Content-aware or whitespace-normalized hashing belongs to fingerprint rather than raw byte hashing.
  • Executable is invoked as hashbytes (installed via brew install cmdrvl/tap/cmdrvl-hash), not bare hash.
Cairn roles
Software factory
Evidence roles
Later verification
Contribution
Compute content hashes so the same bytes can be identified again.
Limit
Matching hashes establish byte identity, not source authority or factual correctness.
Questions this tool can support
  • Can I keep the records behind this comparison?

    Record byte identities for selected source files so later copies can be compared. Matching hashes do not validate their contents.

    Potential use, not demonstrated here

Open-source starter -> Paid lineage stack

Start free on local files. License the paid stack for warehouse-wide lineage.

Open-source Rust CLIs and @cmdrvl/web browser engines cut document token spend 10x to 100x locally and work alongside any AI assistant or hosted workspace (Rogo, Hebbia, Harvey, Claude, ChatGPT, or Codex). When your firm needs end-to-end lineage across Snowflake or your cloud warehouse (Reveal catalog, paid MCP servers, Evidence MCP receipts, x402 APIs, and offline twinning and evals), license the paid stack or start with a $500 half-day founder workshop.

Complete open-source CLI suite (17 interactive offline demos)

Explore every deterministic tool in the spine.

Full /tools/ directory ->github.com/cmdrvl ->

Intake & identity

  • vacuumInventory folders
  • hashcurrent
  • fingerprintClassify files
  • lockPin snapshots
  • canonResolve entities

Common questions

Why is the command called hashbytes instead of hash?
hash is a built-in command in bash and zsh. Naming the executable hashbytes (installed via brew install cmdrvl/tap/cmdrvl-hash) avoids shell collisions while keeping the repo name hash and protocol ID hash.v0.
How much RAM does hashbytes use on huge multi-gigabyte files?
Constant memory: each worker streams through a 64 KB buffer, so a 100 GB Parquet archive uses the same RAM as a 1 KB CSV.
Does parallel hashing scramble the order of JSONL records?
No. Even with --jobs N hashing files simultaneously across CPU cores, hashbytes emits output records in the exact same deterministic order as the input stream.
Does the browser demo upload my files?
No. Real FIPS 180-4 SHA-256 runs locally inside your browser tab with zero network calls. Turn off your Wi-Fi before Step 4 and every check still works.

Related tools & reading

vacuum: Inventory files read-onlylock: Pin source files into a self-hashed lockfilepack: Seal tamper-evident evidence packsrvl: Explain what numerically changedAll open-source CLIs & paid stack