Open-source directory survey tool
What files actually landed in this folder?
Got a monthly data drop with spreadsheets, PDFs, and stray temp files? Vacuum surveys one or more directories read-only and emits a deterministic, byte-sorted JSONL manifest with sizes, timestamps, and file types. Nothing is opened, moved, or silently skipped. Runs locally on your device.
Surveyed 6 files read-only in sorted order, including 2 stray files (.DS_Store and .tmp).
vacuum walks the directory without opening, parsing, or modifying a single file and emits byte-sorted vacuum.v0 JSONL records with exact sizes, timestamps, and MIME guesses.
| Relative path (sorted) | Status | Size | MIME guess |
|---|---|---|---|
| .DS_Store | OK | 6.0 KB | application/octet-stream |
| cmbs_tape_oct.csv | OK | 827.3 KB | text/csv |
| covenants.yaml | OK | 1.2 KB | application/yaml |
| prospectus_annex.pdf | OK | 3.93 MB | application/pdf |
| rent_roll.xlsx | OK | 2.37 MB | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| scratch_notes.tmp | OK | 9.2 KB | application/octet-stream |
Read-only metadata survey · Zero uploads (works with Wi-Fi off)
Adjust --include / --exclude globs & inspect vacuum.v0 JSONL
{"version":"vacuum.v0","path":"/data/oct/.DS_Store","relative_path":".DS_Store","root":"/data/oct","size":6148,"mtime":"2026-10-31T08:32:00.000Z","extension":"","mime_guess":"application/octet-stream","tool_versions":{"vacuum":"0.6.1"}}
{"version":"vacuum.v0","path":"/data/oct/cmbs_tape_oct.csv","relative_path":"cmbs_tape_oct.csv","root":"/data/oct","size":847201,"mtime":"2026-10-31T08:30:00.000Z","extension":".csv","mime_guess":"text/csv","tool_versions":{"vacuum":"0.6.1"}}
{"version":"vacuum.v0","path":"/data/oct/covenants.yaml","relative_path":"covenants.yaml","root":"/data/oct","size":1248,"mtime":"2026-10-29T14:00:00.000Z","extension":".yaml","mime_guess":"application/yaml","tool_versions":{"vacuum":"0.6.1"}}
{"version":"vacuum.v0","path":"/data/oct/prospectus_annex.pdf","relative_path":"prospectus_annex.pdf","root":"/data/oct","size":4120540,"mtime":"2026-10-30T17:45:00.000Z","extension":".pdf","mime_guess":"application/pdf","tool_versions":{"vacuum":"0.6.1"}}
{"version":"vacuum.v0","path":"/data/oct/rent_roll.xlsx","relative_path":"rent_roll.xlsx","root":"/data/oct","size":2481920,"mtime":"2026-10-31T09:15:00.000Z","extension":".xlsx","mime_guess":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","tool_versions":{"vacuum":"0.6.1"}}
{"version":"vacuum.v0","path":"/data/oct/scratch_notes.tmp","relative_path":"scratch_notes.tmp","root":"/data/oct","size":9420,"mtime":"2026-10-31T08:31:00.000Z","extension":".tmp","mime_guess":"application/octet-stream","tool_versions":{"vacuum":"0.6.1"}}Equivalent local pipeline
vacuum /data/oct | hashbytes | lock --dataset-id "oct-delivery" > delivery.lock.jsonInteractive browser simulator (vacuum.v0 local CLI mirror): Mirrors cmdrvl/vacuum v0.6.1 (deterministic byte-order sorting, include/exclude glob filtering, MIME guessing, and explicit _skipped tracking) in browser memory with zero uploads. Real directory traversal runs via the local vacuum binary.
Run it locally
Install vacuum and start your deterministic intake pipeline.
Point vacuum at one or more delivery directories to emit sorted vacuum.v0 JSONL to stdout, then pipe directly into hashbytes and lock.
vacuum CLI (v0.6.1)
Walks single or multiple roots deterministically, supports repeatable --include and --exclude globs, records unreadable files as _skipped, and exposes doctor triage --json for AI agents.
1. Install via Homebrew
brew install cmdrvl/tap/vacuum2. Run locally
vacuum /data/oct --exclude "*.tmp" --exclude ".DS_Store"- Read-only survey
- Never opens, parses, modifies, or moves files
- Deterministic order
- Byte-sorted by (relative_path, root) across multiple roots
- No silent drops
- Unreadable files emit _skipped: true with explicit warnings
- Pipeline native
- Streams vacuum.v0 JSONL directly into hashbytes and lock
For scripts and CI: standalone vacuum binary, exit codes, and refusal codes
Pipe vacuum -> hashbytes -> lock
View cmdrvl/hash on GitHub ->Chain vacuum straight into hashbytes and lock to produce a self-hashed delivery.lock.json in one streaming command with zero temporary files.
Install standalone binary
curl -fsSL https://raw.githubusercontent.com/cmdrvl/vacuum/main/scripts/install.sh | bashInvoke directly
vacuum /data/q3 /data/q4 | hashbytes | lock --dataset-id "q3-q4" > delivery.lock.jsonExit codes & verdicts
SCAN_COMPLETE
Exit 0
All root directories were enumerated in deterministic sorted order. Any individual unreadable file is preserved as a _skipped: true record with a warning on stderr.
DOCTOR UNHEALTHY
Exit 1
Normal scans never exit 1; exit 1 is reserved for vacuum doctor reporting an unhealthy diagnostic.
REFUSAL
Exit 2
Cannot begin scanning (for example E_ROOT_NOT_FOUND, passing a file instead of a directory, or CLI usage error). Includes typed code and remediation hint.
Common refusal & finding codes
| Code | When it fires | Remediation |
|---|---|---|
| E_ROOT_NOT_FOUND | A requested root directory does not exist | Check the directory path before running vacuum |
| E_NOT_DIRECTORY | A file path was passed where vacuum requires a directory root | Pass the parent directory with --include for that filename |
| E_PERMISSION | Root directory cannot be read | Check directory permissions and rerun |
| _skipped (record) | An individual file inside a readable root could not be stat'd | Inspect skipped records before sealing a lockfile |
Learning progression
Know what landed? Hash every file next or pin the delivery.
vacuum starts the intake stream (vacuum -> hashbytes -> lock -> pack) so every downstream diff, rule check, and evidence pack knows the exact sorted set of source files.
- 01rvlSee what moved
- 02shapeCheck compatibility
- 03profileScope columns
- 04verifyEnforce rules
- 05packSeal proof
- 06veilGuard privacy
Core workflow · 01 rvl
Compare two spreadsheets once you know which files arrived.
Jump straight to rvl if you already have two monthly CSV or Excel tapes ready to diff.
Next in pipeline · hashbytes
Attach SHA-256 or BLAKE3 byte identity to every file.
Pipe vacuum output directly into hashbytes so every manifest record carries a deterministic cryptographic digest.
What vacuum handles
- Emits deterministic vacuum.v0 JSONL sorted by (relative_path, root) byte order every run
- Scans multiple roots in one invocation and interleaves records deterministically
- Filters deliveries with repeatable --include and --exclude glob patterns and optional --no-follow for symlinks
- Records file sizes, ISO-8601 modification times, extensions, and MIME guesses without reading file contents
- Surfaces unreadable files explicitly as _skipped: true records instead of dropping them silently
- Supports --progress JSONL on stderr, --describe, --schema, and doctor triage --json
Explicit boundaries & limits
- vacuum surveys file metadata only; it does not read file contents, compute hashes (use hashbytes), or validate data inside files.
- A point-in-time inventory reflects the directory as scanned, not live filesystem watching.
- MIME types are filename-extension guesses rather than deep magic-byte sniffing.
- Cairn roles
- Software factory
- Evidence roles
- Source
- Contribution
- Inventory the files in a declared scope with size, modification time and MIME type.
- Limit
- A file inventory does not establish the meaning or accuracy of its contents.
Questions this tool can support
- Can we use this loan tape for the analysis?
List the files supplied for an analysis before processing them. A file inventory does not establish that all required records were supplied.
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.
Intake & identity
Compare & validate
Reconcile, decide & seal
Workstation guardrails (CLI-only)
Common questions
- Why use vacuum instead of ls or find?
- ls and find vary across platforms, sort inconsistently with locales, emit unstructured text, and silently drop errors in pipelines. vacuum outputs byte-sorted vacuum.v0 JSONL with explicit _skipped records that pipe directly into hashbytes and lock.
- Does vacuum read the contents of sensitive files?
- No. vacuum only stats directory entries for path, size, modification time, extension, and MIME guess. It never opens or reads file bytes.
- Can vacuum scan multiple folders at once?
- Yes. Pass multiple roots (vacuum /data/q3 /data/q4) and vacuum interleaves every record deterministically in one JSONL stream.
- Does the browser demo upload my files?
- No. Even in Step 4, the browser only reads local file metadata (filename, size, timestamp, type) in memory with zero network calls.