Cut AI agent token spend by 100x to 1000x on data and document workflows with deterministic Rust tools.
Most agent workflows burn massive token budgets feeding full filings, spreadsheets, and web pages to an LLM, or asking the agent to rewrite brittle one-off Python scripts for diffing, classification, hashing, and quote verification. CMD+RVL replaces that glue with small, composable, auditable Rust binaries that run in milliseconds, so your model only reads the handful of changed paragraphs, cells, or edge cases that actually need judgment.
Try it in two prompts (Claude Code, Codex, Gemini CLI, or Cursor):
- Estimate your savings first (no install required): "Read
https://github.com/cmdrvland show me how much time and token spend these tools could save on my current workflow."- Install and wire them in: "Install the matching tools via Homebrew and use them to speed up my workflow and cut token spend by at least 100x."
For AI agents reading this page: You do not need to install anything for step 1. Read the full Agent Operator Guide (
AGENT_PROMPT.md) for install commands, authored input schemas, CLI contracts, exit codes, and refusal recovery (or use the shorter System Prompt (SYSTEM_PROMPT.md)). If you hit a bug, missing capability, unclear contract, or doc drift, please open a PR on the matchingcmdrvl/<repo>.
It runs two ways: locally as native CLI tools (cmdrvl & homebrew-tap) for engineers and AI agents, or directly in a browser tab (@cmdrvl/web) with zero server and zero file uploads.
Try all 17 CLI tools offline in your browser (zero install, zero upload): Visit cmdrvl.com/tools/ for interactive 4-step walkthroughs across the open-source CLI suite — including live compiled
@cmdrvl/webRust WebAssembly onredline,verify,hash,pack, andlock— plus 14 copy-ready Claude Artifact prompts for the pure data and evidence tools.
- Replace ad-hoc agent Python and full-document LLM loops. Instead of burning 50k+ tokens per file asking an LLM to scan whole documents or hand-rolling brittle parsers, route and diff files in milliseconds with
fingerprint,redline,shape, andrvl, pass only short targeted excerpts to the model, and pin every claim withlock,verify ground, andpack. - Build checkable memos, research pages, and Claude Artifacts. Pair static pages, internal tools, or Claude Artifacts with
@cmdrvl/web(WASM functions plus a ready-to-use Artifact prompt) so readers can verify cited quotes, numeric scales, andlock.v0source hashes locally in their browser, even offline. - Redline SEC filings and contracts in under a second without burning LLM tokens.
redlinecompares two 5.5 MB 10-K filings in about half a second, strips CSS and reflow noise, and flags real numeric and clause changes with exact original[start, end)byte offsets. - Gate and diff financial tables and data tapes deterministically.
shapestops incomparable files before bad math runs, andrvlisolates the smallest set of cells explaining >=95% of unscaled numeric movement (best used on single-unit tables or columns scoped via--profile). - Crowdsource your company's data logic without moving raw files. Capture document templates (
fingerprint), canonical key mappings (canon), column lenses (profile), population sufficiency specs (coverage), and policy rules (verify,assess) as small versioned files while raw data stays put. - Hand auditors a portable receipt that verifies offline years later.
lockandpackbundle exact input hashes, rules, profiles, and verdicts into one content-addressed folder verifiable offline withpack verify(no server, no account, no vendor lock-in).
Both modes compile the same core Rust crates (verify-engine, redline, sha2, blake3 — #![forbid(unsafe_code)] in the WASM bundle) and emit the same JSON schemas. In browser mode, lock.v0 input pinning is optional for ad-hoc drag-and-drop checks, whereas the verify ground CLI requires --lock.
| If you want to... | Use | How it runs |
|---|---|---|
| Embed zero-upload verification in a browser (static pages, interactive memos, internal tools, Claude Artifacts) | @cmdrvl/web |
Compiled serial WebAssembly in the user's browser tab. Zero server, zero upload, works offline and in Desktop/iPhone Safari with no special server headers. |
| Give an AI coding agent or CI pipeline deterministic local tools (redlines, document grounding, schema gates, tabular diffs, offline packs) | CLI (cmdrvl / homebrew-tap) |
Fast native Rust binaries via Homebrew. Self-describing JSON contracts, typed refusals with recovery commands, and zero-retention defaults. |
| Add 30-second verifiable CSV receipts to Claude Code, Codex, Gemini CLI, or Cursor | receipts |
One-line skill installer wrapping shape, rvl, and pack. |
| Connect an agent to public and licensed financial/SEC datasets | mcp-servers |
Hosted MCP servers paired with local verification and sealing. |
import init, { verify_ground_json, redline_compare, sha256_hex } from "./pkg/cmdrvl_web.js";
await init();
// 1. Ground quotes, numeric scales, and lock.v0 hashes locally in the tab
const doc = new TextEncoder().encode("As of September 30, 2026, cash totaled US$41.2 million.");
const lockJson = JSON.stringify({
version: "lock.v0",
members: [{ path: "q3.txt", bytes_hash: `sha256:${sha256_hex(doc)}` }],
});
const claim = JSON.stringify({
claim_id: "cash_q3",
source: "q3",
quote: "cash totaled US$41.2 million",
value: 41.2,
scale: "millions",
unit: "USD",
});
const ground = JSON.parse(verify_ground_json(claim, "q3", "q3.txt", doc, lockJson));
// ground.outcome === "PASS" (1-byte source tamper fails lock.v0 deterministically)
// 2. Semantic prose/HTML redline returning exact original [start, end) byte spans
const diff = JSON.parse(redline_compare(oldFilingBytes, newFilingBytes, "html-text", false));
// Separates numeric_changed / clause_added from formatting_only; text redacted when explicit=falseVerify 0.9.2 and Web 0.2.0 enforce quote boundaries, bind numeric claims to the quoted number, and check declared units. Use an explicit currency marker such as
US$when claimingUSD. A bare$leaves the named currency ambiguous.
$ shape nov.csv dec.csv --key loan_id
SHAPE INCOMPATIBLE
Types: balance: numeric -> non-numeric # caught before a bad diff ever runs
$ rvl old.csv new.csv --key id --explicit
RVL REAL CHANGE
Checked: 1,003 rows, 3 numeric columns (3,009 cells)
3 cells explain 95.2% of total numeric change (threshold 95.0%):
1. NVDA.market_value_usd +1.12e6 (4,250,000 -> 5,370,000)
2. MSFT.market_value_usd -5.1e5 (3,890,000 -> 3,380,000)
3. AAPL.cost_basis_usd +274000 (1,920,000 -> 2,194,000)
$ pack verify evidence/2026-q4/
pack verify: OK # verifies member hashes; compare pack_id offline
pack_id: sha256:71cd27ee3a69cf0e...
The open-source tools check mechanical ground truth (bytes, spans, structure, single-table deltas), not derived financial math or whether a conclusion follows from a quote.
| A pass shows | It does not show |
|---|---|
The quote appears in this source (once bd-w2p boundaries land) |
The quote supports the conclusion |
The source bytes match the lock.v0 digest |
The lock or source document is authentic |
The pack's members match its printed pack_id |
Who created the pack, or that its verdict is right |
| (Private commercial layer — Evidence Machine) Domain concept alignment, derived-figure checks, and regulatory/credit rules | What still requires human judgment (an offline pack proves receipt integrity, not that semantic reasoning is infallible) |
| Repo | Interactive demo | What it does |
|---|---|---|
| web | All 17 demos | Serial wasm32-unknown-unknown build of CMD+RVL (@cmdrvl/web). Live today: verify_ground_json, verify_ground_multi_json, redline_compare, sha256_hex, blake3_hex, engine_info, plus a ready-to-paste Claude Artifact verifier prompt. |
| redline | Live WASM demo | Deterministic prose and HTML diff reporting exact [start, end) byte spans in original files, classifying numeric_changed, clause_added, clause_removed, and formatting_only (available via Homebrew redline and live Browser WASM via web) |
| verify | Live WASM demo | Evaluates declared single-table and cross-relation constraints (verify.constraint.v1, backed by DuckDB in CLI mode) plus live Browser WASM quote and numeric-scale grounding (verify ground) |
| shape | Live demo | Structural comparability gate: checks schema overlap, key uniqueness, granularity, and type shifts before you diff |
| rvl | Live demo | Finds the smallest ranked set of numeric cells explaining >=95% of unscaled change, or proves nothing moved above tolerance |
| lock | Live WASM demo | Cargo.lock for data: pins artifacts, hashes, fingerprints, and tool versions into a self-hashed JSON lockfile |
| pack | Live WASM demo | Bundles lockfiles, reports, profiles, and registries into a closed-set, content-addressed evidence pack verifiable offline (pack verify) |
| receipts | Tools directory | One-command MIT skills for Claude Code, Codex, Gemini CLI, and Cursor wrapping shape, rvl, and pack into 30-second verifiable CSV receipts |
| cmdrvl | Tools directory | (Early scaffolding) Unified porcelain CLI front door (orient, inspect, diff, check, receipt, doctor, plus git-style cmdrvl-<subcommand> plugin dispatch) |
Typical CLI pipeline: shape -> rvl / verify -> pack (add lock upstream for pinned input hashes). For AI coding agents, paste SYSTEM_PROMPT.md into your system prompt or see AGENT_PROMPT.md for CLI contracts, exit codes, zero-retention flags, and refusal recovery.
The repositories below support larger data pipelines, local agent workflows, and our commercial stack. They share the same refusal and contract model, and can be adopted independently when needed.
Data prep, provenance, and grading (profile, fingerprint, canon, coverage, decoding, assess, benchmark, vacuum, hashbytes)
| Repo | Interactive demo | What it does |
|---|---|---|
| profile | Live demo | Drafts, lints, slices preambles, suggests keys, and freezes immutable SHA-256 column-scoping configs for downstream tools |
| fingerprint | Live demo | Deterministic template recognition and content hashing across CSV, Excel (.xlsx/.xls), PDF, HTML, and Markdown |
| canon | Live demo | Deterministic identifier and entity resolution against versioned local registries, plus evidence sessions and crosswalk exports |
| coverage | Live demo | Deterministic population coverage (k/N, $obs/$declared), field completeness, and statistical adequacy (n, n_eff, n_indep, stratum balance, canon unresolved intervals) emitting assess-ready policy_signals bands |
| decoding | Live demo | Deterministic convergence engine that settles conflicting multi-source claims with source-ancestry deduplication |
| assess | Live demo | Turns upstream evidence bundles into a deterministic PROCEED / PROCEED_WITH_RISK / ESCALATE / BLOCK verdict from versioned policy YAML |
| benchmark | Live demo | Scores candidate extractions against human-validated gold assertions, separating wrong_value (accuracy) from missing (coverage) |
| vacuum | Browser simulator | Enumerates directories into a deterministic sorted JSONL manifest (ships vacuum and s3-to-vacuum) |
| hashbytes | Live WASM demo | Constant-memory, parallel SHA-256 / BLAKE3 byte identity over manifest streams (Homebrew formula: cmdrvl-hash) |
Agent boundaries, grounded charts & local SDLC twins (veil, airlock, portal, chart, boundary-detectors, twinning)
| Repo | Interactive demo | What it does |
|---|---|---|
| veil | Browser simulator | Advisory, hook-based read-boundary guard that blocks direct agent reads (Read, Grep, Bash) of protected paths while allowing authorized metadata-safe local tools (includes a published bypass matrix) |
| airlock | Browser simulator | Model-boundary manifest emitter that records and locally Ed25519-signs the exact payload fragments and claim levels (RAW_DOCUMENT_ABSENT, STRICT_TELEMETRY_ONLY) sent across a model boundary |
| portal | Tools directory | Compiles declarative boundary policies (and FINOS CALM controls) into SHA-256 IR, checks crossings (portal-gate), and replays whole-run obligations (covenant) |
| chart | Live verified chart | Compiles deterministic grounded SVG/PNG charts from data tables and audits rendered SVG geometry and labels against locked sources |
| boundary-detectors | Tools directory | Shared #![forbid(unsafe_code)] pure-Rust detectors (secrets, PII, tabular dumps, blobs, paths, magic bytes, and shingle Bloom filters) powering veil and airlock |
| twinning | Guide & overview | Runnable local wire-protocol twins of Postgres (pgwire), Snowflake (HTTP + Arrow IPC), OpenAPI 3.x REST, and MCP (JSON-RPC 2.0) with millisecond snapshots and migration equivalence receipts |
Shared libraries, SEC/EDGAR tools, and packaging
| Repo | What it does |
|---|---|
| core | Zero-I/O Rust primitives shared across CLI and WASM builds: canonical JSON, prefixed hashes, lock.v0 verification, refusal types, and zero-retention redaction markers |
| tabular | Shared deterministic Rust tabular reader (CSV, TSV, JSONL, Parquet, XLSX) with one cell model and refusal taxonomy |
| evidence-protocol | Public .v0 wire contracts (inquiry, grant, artifact, plan, receipt, answer, capability, control), JSON Schemas, and fixtures |
| spine-rules | Shared golden-rules test macro (golden_rules_suite!), composite-key conformance, operator.v1 + cmdrvl.doctor.v1 contracts, and ast-grep static checks |
| cmdrvl-xew | Detects enforcement-fragile XBRL patterns in SEC filings and emits reproducible Evidence Packs |
| edgar-change-interpreter | Claude skill for spotting material changes, silent risks, and interpretation traps in SEC 10-K/10-Q/8-K filings |
| edgar-fabric-ingest | TypeScript reference CLI for ingesting EDGAR disclosures into an append-only CQRS context layer |
| regret | Mines git history for high-precision swarm rework signals: reverts, linked fixes, and patch-id matches |
| homebrew-tap | Homebrew formulae and bottles for CMD+RVL CLI binaries |
The local spine above is MIT-licensed and runs on your own files. When a workflow also needs upstream SEC filings, governed warehouse tables, provider-to-table lineage, contract review, or counterparty screening, CMD+RVL runs hosted MCP servers and pay-per-call HTTP APIs that feed directly into the same local receipts:
| Surface | Access | What it adds alongside local CLI tools |
|---|---|---|
| Receipts MCP | Free, no key | Verify supported CMBS claims against live SEC ABS-EE and 10-D filings with citations and explicit unchecked_spans |
| EDGAR MCP | Keyed (request access) | Resolve issuers/CIKs and query SEC filing metadata, amendments, and cadence upstream of redline and verify |
| Reveal, Data, Evidence, GEO & News MCPs | Keyed (Loom stack) | Discover catalog grain, run guarded read-only warehouse SQL, trace provider/channel/S3 lineage, resolve U.S. addresses to Census tracts, and inspect retained CRE & data-center news |
| Vigil MCP & Signet MCP | Keyed (request access) | Filing findings, CRA evaluations, agreement obligations, screening (Vigil), and policy-scored SOW/MSA/order-form contract review (Signet) |
| x402 Evidence Pack API & $1 Vigil KYC API | Pay-per-call HTTP (x402 / MPP) | Sealed SEC 10-K evidence packs + live HTML claim grounding (x402.cmdrvl.com), and $1 public-list counterparty screening with PDF evidence |
See the full directory and client setup guides at cmdrvl.com/mcp-servers/.
Build the browser WASM bundle from cmdrvl/web:
git clone https://github.com/cmdrvl/web.git && cd web
rustup target add wasm32-unknown-unknown
wasm-pack build --target web --release --out-dir pkg -- --features wasmFor an instant Claude Artifact verifier with no build step, copy examples/claude-artifact-prompt.md.
Core verification stack:
brew install cmdrvl/tap/{redline,shape,rvl,verify,lock,pack}Full CLI suite via Homebrew:
brew install cmdrvl/tap/{vacuum,cmdrvl-hash,fingerprint,profile,lock,shape,rvl,redline,verify,coverage,cmdrvl-benchmark,assess,canon,chart,portal,pack,veil,airlock,twinning,decoding}(cmdrvl-hash installs hashbytes; cmdrvl-benchmark installs benchmark; vacuum installs vacuum and s3-to-vacuum; twinning installs twinning and twinning-mcp.)
curl -fsSL https://github.com/raw.githubusercontent.com/cmdrvl/receipts/main/install.sh | bash- cmdrvl.com
- Interactive CLI Tools Directory (17 offline demos)
- Browser WASM (
cmdrvl/web) - MCP servers & client setup
- x402 Evidence Pack & Agent APIs
- AI Needs More Structure (interactive Wi-Fi-off Rust WASM essay)
- Live verified spine pack: SEC Form ABS-15G Filings
- Open AI Stack vs. Hosted Financial Workspaces
- Workshops & Engagements
- signals.cmdrvl.com
- dealcharts.org
- @cmdrvl on X