Skip to content

Open-source spreadsheet tool

Can these two spreadsheets actually be compared?

Did a loan appear twice? Did a balance turn into text? Shape checks that the rows and columns still line up before you compare the numbers. Your files stay on your device.

Try the loan-tape check ->InstallUse in a Claude Artifact
Step 1 of 4Can these compare?

All six loans match across both files. The balance columns are still numeric.

Synthetic September vs. October loan tapes (6 loans, 5 columns). All 5 columns match, loan_id is unique in both files, all 6 loans overlap, and all 3 balance columns stayed numeric.

CheckStatusFinding
Schema overlapPASS5 of 5 columns shared (100%)
Key (loan_id)PASSUnique in both files · 100% overlap
Row countsPASS6 old / 6 new (6 shared)
Column typesPASS3 numeric columns · 0 type shifts

Runs on your device · Zero uploads (works with Wi-Fi off)

Adjust check, redaction & inspect CLI / JSON output
Zero-retention privacy
SHAPE

COMPATIBLE

Compared: cmbs_tape_sep.csv -> cmbs_tape_oct.csv
Key: loan_id (unique in both files)

Schema:    5 common / 5 total (100% overlap)
Key:       loan_id (coverage=1)
Rows:      6 old / 6 new (6 overlap)
Types:     3 numeric columns, 0 type shift(s)

Run locally with cmdrvl

cmdrvl diff cmbs_tape_sep.csv cmbs_tape_oct.csv --key loan_id --explicit --view full --json

Direct shape binary (for scripts & CI)

shape cmbs_tape_sep.csv cmbs_tape_oct.csv --key loan_id --explicit

Client-side shape.v0 engine (WASM-ready): Runs locally in browser memory with zero uploads (try it with Wi-Fi off). Mirrors shape v0.12.0 four-check rules and swaps onto compiled @cmdrvl/web Rust WASM via registerShapeWasmKernel().

Claude Artifacts · @cmdrvl/web

Like this check? Put it in your own Claude Artifact.

Paste this prompt into Claude.ai to spin up a zero-upload spreadsheet gatekeeper Artifact for your analysts before anyone opens Excel or runs a reconciliation.

@cmdrvl/web on GitHub ->
Build an interactive React Claude Artifact called "CMD+RVL Spreadsheet Checker (shape)" that checks whether rows and columns still line up across two CSV or Excel files before comparing numbers, running 100% locally in browser memory with zero server uploads.

Follow CMD+RVL's shape.v0 contract (https://github.com/cmdrvl/web):
1. Dual drop zones (Old file vs. New file) plus presets for a clean match, a column that shifted from numeric to text ('TBD'), and a duplicate key row.
2. Run four independent checks in one pass: Schema overlap (shared vs. extra columns), Key viability (unique and non-empty in both files with positive overlap), Row counts, and Column type consistency (numeric vs. non-numeric shifts).
3. Lead with a concrete plain-English verdict headline (e.g., exact matched keys and numeric columns confirmed on PASS, or exact broken column/duplicate key on FAIL) and a 4-row PASS/FAIL check table.
4. Put --key, --min-coverage, Redacted vs. --explicit toggle, and shape.v0 JSON behind an expandable "Adjust check" drawer, structured behind a clean engine function ready to swap onto @cmdrvl/web Rust WASM.

Works inside Claude.ai Artifacts today with zero uploads (test it with Wi-Fi off). Compiled shape Rust WASM is on the @cmdrvl/web roadmap alongside live verify ground, redline, SHA-256, and BLAKE3.

Run it locally

Install once, then run cmdrvl diff.

For everyday use and AI coding agents, install the unified cmdrvl CLI. Running cmdrvl diff automatically calls shape first and stops if the files are structurally incompatible before rvl ever runs.

Recommended entry pointView cmdrvl/cmdrvl on GitHub ->

cmdrvl CLI (v0.2.0)

Runs shape automatically before rvl on CSV, TSV, JSONL, Parquet, and Excel files, supports composite keys, emits redacted control.v0 JSON, and tracks local handoff checkpoints.

1. Install via Homebrew

brew install cmdrvl/tap/cmdrvl

2. Run locally

cmdrvl diff sep_tape.csv oct_tape.csv --key loan_id --json
Supported files
CSV, TSV, JSONL, Parquet, and Excel (XLSX/XLS)
Runs locally
On your device · Works offline with zero uploads
Privacy default
Column lists and type-shift names redacted (--explicit reveals them)
License & access
MIT open source · No account or API key
For scripts and CI: standalone shape binary, exit codes, and refusal codes

Standalone shape binary (v0.12.0)

View cmdrvl/shape on GitHub ->

Use shape directly as a CI gate before reconciliation pipelines (shape old.csv new.csv --key loan_id && rvl ...). Returns deterministic exit codes, lockfile verification (--lock), and replay capsules (--capsule-dir).

Install standalone binary

brew install cmdrvl/tap/shape

Invoke directly

shape sep_tape.csv oct_tape.csv --key loan_id --explicit

Exit codes & verdicts

COMPATIBLE

Exit 0

All four structural checks pass: shared columns exist, the key is unique and non-empty with positive overlap, and zero common columns shifted between numeric and text.

INCOMPATIBLE

Exit 1

One or more structural checks failed. Returns a concrete reasons array naming what broke (for example a type shift or duplicate key) so downstream diffs do not run on broken inputs.

REFUSAL

Exit 2

Inputs could not be parsed safely (empty file, duplicate headers, ambiguous Excel sheet, or drifted --lock hash). Always includes a typed refusal code and remediation step.

Common refusal & finding codes

CodeWhen it firesRemediation
E_EMPTYOne or both files have no data rows after the headerProvide two non-empty datasets
E_HEADERSMissing header or duplicate column namesFix blank or duplicate column names before comparing
E_DIALECTDelimiter could not be detected cleanlyPass --delimiter explicitly
E_INPUT_FORMATMulti-sheet Excel workbook or invalid Parquet/JSONL inputSelect worksheet with --sheet or re-export cleanly
E_INPUT_DRIFTInput file bytes do not match pinned --lock hashVerify lockfile integrity with lock verify first
E_TOO_LARGEInput exceeds --max-rows or --max-bytes limitRaise the limit or split the export

Learning progression

Using rvl + shape? Here is the next move.

Once shape confirms two files are comparable, go back to rvl to isolate numeric drivers, or step forward to profile (to freeze which columns matter) and verify (to enforce credit and compliance rules).

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

Previous · 01 rvl

Files passed shape? Explain what numerically moved.

Hand compatible files straight to rvl to isolate the smallest set of cells explaining 95% of total numeric change.

Back to rvl & loan-tape demo ->

Next step · 03 profile

Freeze which columns and keys matter across monthly exports.

Drop noisy tracking columns, strip vendor banner rows, and freeze one SHA-256 YAML profile so every shape and rvl run uses the exact same scope.

Continue to profile & live scoper ->

What shape handles

  • Evaluates four structural checks in one command: schema overlap, key uniqueness and overlap, row counts, and cross-file type consistency
  • Reads CSV, TSV, JSONL, Parquet, and XLSX/XLS inputs with composite keys and --min-coverage overlap floors
  • Redacts extra column names and type-shift column identifiers by default for zero-retention agent workflows (--explicit reveals names)
  • Verifies pinned lock.v0 file hashes (--lock) and writes self-contained replay capsules (--capsule-dir)
  • Exposes --describe, --schema, capabilities --json, and doctor triage --json for AI coding agents

Explicit boundaries & limits

  • Structural compatibility does not prove that similarly named columns measure the same business concept.
  • Row granularity is informational; shape reports added and removed keys without blocking on row-count differences.
  • shape judges comparability only; it does not transform, merge, or explain numeric deltas (use rvl after shape passes).
  • Data profiling such as distributions, quartiles, or outlier detection is outside scope.
Cairn roles
Software factory
Evidence roles
Checks and support, What is missing
Semantic context
Source meaning
Contribution
Check schema overlap, keys, row grain and types before comparing CSV datasets.
Limit
Structural comparability does not establish that differently named business concepts mean the same thing.

Compare and preserve two periods

Questions this tool can support
  • Did it pay down in October?

    Check that the two CSV exports have comparable columns, grain and keys. The linked guide separately checks the one-loan exports; structural compatibility does not explain a balance change.

    Demonstrated separately

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
  • hashSHA-256 / BLAKE3
  • fingerprintClassify files
  • lockPin snapshots
  • canonResolve entities

Compare & validate

  • profileScope columns
  • shapecurrent
  • rvlExplain numeric moves
  • redlineDiff HTML & prose
  • verifyEnforce rules & quotes
  • coverageCheck sufficiency
  • benchmarkScore gold truth

Common questions

Why run shape before comparing two spreadsheets?
If a vendor renamed a column, duplicated a loan ID, or dropped 'TBD' into a numeric balance column, a naive diff or spreadsheet formula will either crash or quietly skip the broken column. shape checks all four structural conditions in milliseconds and stops before bad data enters a report or LLM prompt.
Should I run cmdrvl diff or shape standalone?
For everyday workflows and AI coding agents, run cmdrvl diff (brew install cmdrvl/tap/cmdrvl). It runs shape automatically first and only proceeds to rvl if the files are compatible. Install shape standalone (brew install cmdrvl/tap/shape) when you want a minimal single-binary CI gate.
Does the browser check upload my spreadsheets?
No. The interactive wizard runs completely in memory inside your browser tab with zero server calls and zero uploads. Turn off your Wi-Fi before Step 4 and every check still works identically.
What happens if keys were added or removed between months?
As long as the key is unique in each file and at least one key overlaps (or meets --min-coverage), shape returns COMPATIBLE and reports added and removed key counts so you can pass --key-mode overlap to rvl. Zero-overlap pairs always return INCOMPATIBLE.

Related tools & reading

rvl: Explain what numerically changedverify: Check credit & data rulespack: Seal tamper-evident evidence packsAll open-source CLIs & paid stackGuide: compare loan periods end to end