Skip to content
@cmdrvl

CMD+RVL

CMD+RVL helps teams organize information and put AI to practical use. We visit local businesses and work remotely with teams nationwide.

CMD+RVL

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):

  1. Estimate your savings first (no install required): "Read https://github.com/cmdrvl and show me how much time and token spend these tools could save on my current workflow."
  2. 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 matching cmdrvl/<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.


What You Can Do Today

  • 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, and rvl, pass only short targeted excerpts to the model, and pin every claim with lock, verify ground, and pack.
  • 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, and lock.v0 source hashes locally in their browser, even offline.
  • Redline SEC filings and contracts in under a second without burning LLM tokens. redline compares 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. shape stops incomparable files before bad math runs, and rvl isolates 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), and policy rules (verify, assess) as small versioned files while raw data stays put.
  • Hand auditors a portable receipt that verifies offline years later. lock and pack bundle exact input hashes, rules, profiles, and verdicts into one content-addressed folder verifiable offline with pack verify (no server, no account, no vendor lock-in).

Choose Your Mode: Web (Browser) vs. CLI

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.

What This Looks Like in Practice

In the Browser (@cmdrvl/web, zero server / zero upload)

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 $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 $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=false

Known issue (verify ground): Current verify and @cmdrvl/web builds match quotes without word/number boundaries, accept any matching number in the quote span, and do not yet compare unit. Fixing this is tracked as a P0 bug in cmdrvl/verify (bd-w2p) with a follow-up pin bump in cmdrvl/web (bd-cp0).

In the Terminal or an AI Agent Session (Native Rust CLI)

$ 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...

What a Pass Shows — and What It Doesn't

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)

Core Verification Stack

Repo What it does
web 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 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 Browser WASM via web)
verify Evaluates declared single-table and cross-relation constraints (verify.constraint.v1, backed by DuckDB in CLI mode) plus pure-Rust quote and numeric-scale grounding (verify ground)
shape Structural comparability gate: checks schema overlap, key uniqueness, granularity, and type shifts before you diff
rvl Finds the smallest ranked set of numeric cells explaining >=95% of unscaled change, or proves nothing moved above tolerance
lock Cargo.lock for data: pins artifacts, hashes, fingerprints, and tool versions into a self-hashed JSON lockfile
pack Bundles lockfiles, reports, profiles, and registries into a closed-set, content-addressed evidence pack verifiable offline (pack verify)
receipts One-command MIT skills for Claude Code, Codex, Gemini CLI, and Cursor wrapping shape, rvl, and pack into 30-second verifiable CSV receipts
cmdrvl (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.


Supporting Infrastructure & Adjacent Tools

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, assess, benchmark, vacuum, hashbytes, decoding)
Repo What it does
profile Drafts, lints, slices preambles, suggests keys, and freezes immutable SHA-256 column-scoping configs for downstream tools
fingerprint Deterministic template recognition and content hashing across CSV, Excel (.xlsx/.xls), PDF, HTML, and Markdown
canon Deterministic identifier and entity resolution against versioned local registries, plus evidence sessions and crosswalk exports
assess Turns upstream evidence bundles into a deterministic PROCEED / PROCEED_WITH_RISK / ESCALATE / BLOCK verdict from versioned policy YAML
benchmark Scores candidate extractions against human-validated gold assertions, separating wrong_value (accuracy) from missing (coverage)
vacuum Enumerates directories into a deterministic sorted JSONL manifest (ships vacuum and s3-to-vacuum)
hashbytes Constant-memory, parallel SHA-256 / BLAKE3 byte identity over manifest streams (Homebrew formula: cmdrvl-hash)
decoding Deterministic convergence engine that settles conflicting multi-source claims with source-ancestry deduplication
Agent boundaries & local SDLC twins (veil, airlock, boundary-detectors, twinning)
Repo What it does
veil 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 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
boundary-detectors Shared #![forbid(unsafe_code)] pure-Rust detectors (secrets, PII, tabular dumps, blobs, paths, magic bytes, and shingle Bloom filters) powering veil and airlock
twinning 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

Get Started

Web Mode (Browser WebAssembly)

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 wasm

For an instant Claude Artifact verifier with no build step, copy examples/claude-artifact-prompt.md.

CLI Mode (Homebrew)

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,cmdrvl-benchmark,assess,canon,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.)

One-Command Agent Skills (Claude Code, Codex, Gemini CLI, Cursor)

curl -fsSL https://raw.githubusercontent.com/cmdrvl/receipts/main/install.sh | bash

Links

Pinned Loading

  1. edgar-change-interpreter edgar-change-interpreter Public

    Claude skill for identifying material changes, silent risks, and interpretation traps in SEC filings (10-K, 10-Q, 8-K). Built by CMD+RVL.

    TypeScript 7 1

  2. edgar-fabric-ingest edgar-fabric-ingest Public archive

    A TypeScript CLI and Codex-friendly reference implementation for ingesting EDGAR disclosures into an append-only CQRS context layer. Focused on auditability, replayability, and strict schema discip…

    TypeScript

  3. rvl rvl Public

    rvl reveals the smallest set of numeric changes that explain what actually changed between two datasets — or confidently tells you nothing changed.

    Rust 1

  4. cmdrvl-xew cmdrvl-xew Public

    CLI engine that detects enforcement-fragile XBRL patterns in SEC filings and produces reproducible Evidence Packs for filing teams and vendors.

    Python

Repositories

Showing 10 of 34 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…