Skip to content

Open-source spreadsheet tool

What changed between these two files?

Compare two versions of a spreadsheet or loan tape. rvl shows the old value, the new value, and which changes account for most of the difference. Your files stay on your device.

Try the loan example ->InstallUse in a Claude Artifact
Step 1 of 4What moved?

Three changes account for 98.8% of the movement in this sample.

Synthetic September vs. October loan tape (12 loans, 36 numbers). One loan paid off (-$8.42M), one appraisal dropped (-$4.35M), and one loan curtailed (-$1.50M). The other 33 numbers stayed flat or moved by routine monthly amortization.

Loan / RowFieldOldNewChangeShare
LN-4117ending balance8,420,0000-8,420,00058.3%
LN-2208appraised value14,500,00010,150,000-4,350,00030.1%
LN-3091ending balance6,180,0004,680,000-1,500,00010.4%

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

Adjust comparison, redaction & inspect CLI / JSON output
Zero-retention privacy
RVL

REAL CHANGE

Compared: cmbs_tape_sep.csv -> cmbs_tape_oct.csv
Alignment: key=loan_id
Columns: common=5 old_only=0 new_only=0
Checked: 12 rows, 3 numeric columns (36 cells)
Ranking: abs(delta) (unscaled)
Settings: threshold=95.0% tolerance=1e-9

3 cells explain 98.8% of total numeric change (threshold 95.0%):

1. LN-4117.ending_balance_usd  -8,420,000  (8,420,000 -> 0)  [58.3%]
2. LN-2208.appraised_value_usd  -4,350,000  (14,500,000 -> 10,150,000)  [30.1%]
3. LN-3091.ending_balance_usd  -1,500,000  (6,180,000 -> 4,680,000)  [10.4%]

Everything else in common numeric columns is <= tolerance or in the tail (not required to reach threshold).

Run locally with cmdrvl

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

Direct rvl binary (for scripts & CI)

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

Browser sandbox (rvl.v0 reference mirror): Runs locally in your browser with zero uploads. Mirrors rvl.v0 L1-coverage, tolerance, redaction, and refusal rules; drop-in ready for @cmdrvl/web Rust WASM.

Claude Artifacts · @cmdrvl/web

Like this demo? Build your own in a Claude Artifact.

Paste this prompt into Claude.ai to generate a private, zero-upload spreadsheet diff Artifact tailored to your own monthly tapes, rent rolls, or budgets using CMD+RVL's deterministic shape + rvl contract and @cmdrvl/web browser architecture.

@cmdrvl/web on GitHub ->
Build an interactive React Claude Artifact called "CMD+RVL What Changed?" that compares two versions of a CSV or Excel file (.csv, .tsv, .xlsx) completely locally in the browser with zero server uploads.

Follow CMD+RVL's deterministic shape + rvl contract (https://github.com/cmdrvl/web):
1. Dual drop zones (Prior file vs. Current file) plus a 1-click "Load sample loan tape" button.
2. Run a structural comparability gate (shape) first: flag missing columns, duplicate keys (E_KEY_DUP), or columns that flipped from numbers to text before diffing.
3. Parse US currency ($1,234.56) and accounting parentheses ((123.45)) cleanly, rank every numeric delta above tolerance by abs(delta), and show only the smallest prefix of cells explaining 95% of total numeric change (REAL CHANGE) or prove NO REAL CHANGE when all deltas stay within tolerance.
4. Put the plain-English headline and ranked table first; tuck threshold, tolerance, redacted vs. --explicit toggle, and JSON output behind an expandable "Adjust comparison" drawer.
5. Compute client-side SHA-256 hashes of both files and keep the checking kernel behind a clean compareFiles() boundary ready to swap onto @cmdrvl/web Rust WebAssembly.

Works inside Claude.ai Artifacts today with zero install and zero uploads. @cmdrvl/web currently ships verify ground, redline, SHA-256, and BLAKE3 in compiled Rust WASM, with shape + rvl WASM modules in progress.

Run it locally

Install once, then run cmdrvl diff.

For everyday use and AI coding agents, install the unified cmdrvl CLI. It checks whether two files are structurally comparable first, runs rvl on spreadsheets or redline on prose and HTML, and keeps raw values redacted until you ask for them.

Recommended entry pointView cmdrvl/cmdrvl on GitHub ->

cmdrvl CLI (v0.2.0)

Runs shape first to verify structure and keys, delegates CSV, TSV, JSONL, Parquet, and Excel files to rvl, emits redacted control.v0 JSON, and supports content-addressed 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
Redacted by default (--explicit shows raw values)
License & access
MIT open source · No account or API key
For scripts and CI: standalone rvl binary, exit codes, and refusal codes

Standalone rvl binary (v0.11.0)

View cmdrvl/rvl on GitHub ->

Need a single minimal binary inside a shell script or CI gate? Install rvl directly for deterministic exit codes (0 = no change, 1 = real change, 2 = refusal), currency and accounting-parentheses parsing, --lock hash checks, and replay capsules.

Install standalone binary

brew install cmdrvl/tap/rvl

Invoke directly

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

Exit codes & verdicts

REAL CHANGE

Exit 1 (or 0 with --exit-zero-on-change)

Emits the smallest prefix of cells ranked by abs(delta) whose cumulative share reaches --threshold (default 95%). Redacted by default; pass --explicit to show raw values and row keys.

NO REAL CHANGE

Exit 0

Deterministic guarantee that every common numeric cell is within --tolerance (default 1e-9). Reports max_abs_delta so you can prove rounding noise never hid a real shift.

REFUSAL

Exit 2

Never guesses on ambiguous files. Returns a typed refusal code (such as E_KEY_DUP, E_NEED_KEY, or E_DIFFUSE), the first offending record, and a concrete Next: remediation command.

Common refusal & finding codes

CodeWhen it firesRemediation
E_NEED_KEYRows were reordered in row-order modePass --key <suggested_column>
E_KEY_DUPDuplicate key values inside one fileChoose a unique key column or deduplicate the export
E_KEY_MISMATCHKey sets differ between old and new filesRerun with --key-mode overlap to compare continuing rows
E_DIFFUSETop 25 contributors cannot reach the coverage thresholdLower --threshold (e.g. 0.80) or pass --exhaustive
E_MISSINGNESSNumeric value compared against a blank or NA cellFill missing cells, scope columns with --profile, or pass --non-numeric
E_INPUT_DRIFTInput file bytes do not match pinned --lock hashVerify lockfile integrity with lock verify before comparing

Learning progression

Like rvl? Here is what teams add next.

Most teams start here to see what moved between two spreadsheets. Once rvl saves your first hour, add shape to catch broken columns up front, profile to scope noisy columns, verify to enforce credit rules, pack to seal proof, and veil to guard sensitive files.

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

Next step · 02 shape

Check if two files can be compared before diffing.

If a servicer puts 'TBD' in a balance column or duplicates a loan ID, shape catches it in milliseconds before rvl runs.

Explore shape & live check ->

Worried about privacy? · 06 veil

Keep sensitive files out of AI model context.

Pair redacted local diffs with veil so AI coding agents are blocked from reading confidential folders or passing --explicit, with every denial logged locally.

Explore veil & live hook test ->

What rvl handles

  • Ranks numeric deltas across CSV, TSV, JSONL, Parquet, and XLSX/XLS files (including mixed old vs. new formats)
  • Parses US currency prefixes ($1,234.56), thousands separators, scientific notation, and accounting parentheses ((123.45)) automatically
  • Redacts raw row keys, column names, and numbers by default for zero-retention agent workflows; supports --explicit and HMAC-SHA256 markers
  • Verifies pinned lock.v0 file hashes (--lock), writes deterministic replay capsules (--capsule-dir), and compares non-numeric columns (--non-numeric)
  • Self-describes for AI coding agents via --describe, --schema, capabilities --json, and robot-docs guide

Explicit boundaries & limits

  • Unscaled L1 ranking sums abs(delta) across common numeric columns; use single-unit tables or --profile when mixing dollars with basis points or ratios.
  • Tolerance is absolute (default 1e-9); relative percentage tolerance is not supported in v0.
  • Hard cap of 25 explanation contributors (MAX_CONTRIBUTORS = 25); broad changes across >25 cells refuse with E_DIFFUSE unless --threshold is lowered or --exhaustive is passed.
  • Both inputs are loaded into memory; non-US decimal commas (1.234,56) are not supported in v0.
  • Explaining numeric deltas does not establish the business cause of a change; review underlying filings or servicer commentary.
Cairn roles
Software factory
Evidence roles
Checks and support, What is missing
Semantic context
Source meaning
Contribution
Explain numeric differences between comparable CSVs under declared tolerances, or refuse the comparison.
Limit
A numeric explanation does not establish the business cause of a change.

Compare and preserve two periods

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

    Calculate and report numeric differences between comparable CSVs. The linked run reports the scheduled-field decrease without establishing a borrower payment.

    Demonstrated separately

  • How much has the servicer advanced since September?

    Compare exported outstanding-advance fields on a declared basis. This proposed extension would still measure net outstanding change, not gross funding.

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

Compare & validate

  • profileScope columns
  • shapeCheck alignment
  • rvlcurrent
  • redlineDiff HTML & prose
  • verifyEnforce rules & quotes
  • coverageCheck sufficiency
  • benchmarkScore gold truth

Common questions

Should I install cmdrvl or rvl directly?
For day-to-day human use and AI coding agents, install the cmdrvl porcelain CLI (brew install cmdrvl/tap/cmdrvl) and run cmdrvl diff. It automatically runs shape compatibility checks before rvl, handles prose and HTML with redline, and emits control.v0 checkpoints. Install rvl standalone (brew install cmdrvl/tap/rvl) when you want a single minimal binary in a shell script or CI gate.
How is rvl different from diff, csvdiff, or a pandas script?
Line-based diff tools print thousands of changed rows with no ranking, and ad-hoc pandas scripts silently mishandle rounding noise, reordered rows, duplicate keys, or currency strings. rvl checks every common numeric cell deterministically, filters noise below tolerance, ranks contributors by abs(delta), and prints only the smallest prefix that explains 95% of total change, or refuses with a typed error code.
Does the browser demo upload my CSV files anywhere?
No. The interactive sandbox runs 100% locally in your browser with zero server calls and zero file uploads. The browser engine mirrors rvl.v0's deterministic L1-coverage, tolerance, redaction, and refusal rules and is wired to swap directly onto compiled Rust WebAssembly from @cmdrvl/web as rvl_compare ships.
Why is rvl output redacted by default?
Zero-retention safety for AI agents and CI logs. Without --explicit, rvl outputs the verdict, coverage shares, and deterministic ordinal refs (redacted:ref:k1.redacted:ref:c1) without leaking raw balances, customer keys, or column names into an LLM context window. Pass --explicit on local, non-sensitive runs when you want raw old, new, and delta numbers.
Where do open-source CLIs stop and CMD+RVL's paid stack begin?
Open-source Rust CLIs like cmdrvl, shape, rvl, and pack are the free local starter layer for cutting document token spend and verifying files on disk. End-to-end lineage across Snowflake or your cloud warehouse (Reveal catalog ownership, paid MCP servers, Evidence MCP receipts, x402 APIs, and offline twinning and evals) lives in CMD+RVL's paid stack.

Related tools & reading

shape: Check if two files can be comparedverify: Check credit & data rulespack: Seal tamper-evident evidence packsAll open-source CLIs & paid stackCut LLM token spend 10x to 100x with Rust CLIs