Short answer: Yes, AI agents write Verin with 100% accuracy, and Verin Code-Mode crushes standard MCP tools (3x to 29x cheaper). Against normal unrestricted bash/Python agents, it beats Claude Code across the board, ties Codex on turns, and trades some speed on Grok 4.7 in exchange for strict 8 KB read-only WASM sandboxing. All results below come from automated paired benchmarks with raw JSON transcripts linked in the repo.
pass@2 (48 / 48) cold-start vs. TypeScript (95.8% pass@1, 100% on Sonnet & Codex) with 46% to 62% fewer lines of code.
Instead of flooding the LLM context window with raw source files, CSV tables, and NDJSON logs via atomic file tools (fs_glob, fs_list, fs_stat, fs_read), verin mcp --stdio --caps fs:ro lets the agent send a short .verin program that executes inside a read-only fuel-metered WebAssembly sandbox and returns only the compact computed JSON answer. Across 8 paired multi-file audit tasks (32/32 = 100% exact accuracy across all 4 models), Claude Sonnet cut real billed USD by -94.5% (18.2x cheaper) and turns by -78.9%, OpenAI Codex cut tool turns by -80.7% (7/8 tasks solved in 1 single verin_run call, Holm p=0.0207) and wall latency by -31.0% (Holm p=0.0012), xAI Grok 4.7 raised accuracy from 5/8 to 8/8 while cutting context tokens by -88.1% and real USD by -69.3% (3.3x cheaper, p=0.0424), and Claude Haiku improved exact accuracy from 6/8 (75.0%) to 8/8 (100.0%) while cutting real billed USD by -96.5% (28.7x cheaper).
| Model (8 Paired Workspace Tasks) | Exact Accuracy | Mean Turns | Mean Wall Latency | Total USD |
|---|---|---|---|---|
| Claude Sonnet JSON ↗ | 8/8 → 8/8 | 11.25 → 2.38 -78.9% (p=0.0054) | 14.3s → 5.6s -60.7% | $2.0236 → $0.1114 -94.5% (18.2x) |
| OpenAI Codex JSON ↗ | 8/8 → 8/8 | 11.00 → 2.13 -80.7% (p=0.0069) | 18.8s → 13.0s -31.0% | $0.2192 → $0.1588 -27.6% (1.4x) |
| xAI Grok 4.7 JSON ↗ | 5/8 → 8/8 +3 | 9.00 → 3.88 -56.9% (p=0.0675) | 125.9s → 59.6s -52.7% | $0.6795 → $0.2083 -69.3% (3.3x) |
| Claude Haiku JSON ↗ | 6/8 → 8/8 +2 | 10.88 → 3.63 -66.7% (p=0.0151) | 31.1s → 13.5s -56.5% | $0.4513 → $0.0157 -96.5% (28.7x) |
| Workspace Task | Sonnet Pass | Sonnet Turns | Sonnet USD | Codex Turns & Wall | Haiku Pass & USD |
|---|---|---|---|---|---|
cm-largest-ts |
PASS / PASS | 14 → 2 -85.7% | $0.2032 → $0.0233 -88.5% | 14 → 2 -85.7% · 17.7s → 13.7s | FAIL / PASS · $0.0099 → $0.0017 -82.5% |
cm-error-tally |
PASS / PASS | 10 → 2 -80.0% | $0.6296 → $0.0085 -98.6% | 11 → 2 -81.8% · 22.1s → 11.7s | PASS / PASS · $0.2180 → $0.0013 -99.4% |
cm-revenue-join |
PASS / PASS | 4 → 3 -25.0% | $0.0429 → $0.0162 -62.2% | 3 → 3 +0.0% · 20.1s → 16.5s | PASS / PASS · $0.0047 → $0.0029 -38.9% |
cm-manifest-deps |
PASS / PASS | 10 → 3 -70.0% | $0.0201 → $0.0136 -32.3% | 10 → 2 -80.0% · 14.6s → 10.8s | PASS / PASS · $0.0010 → $0.0009 -18.3% |
cm-export-audit |
PASS / PASS | 14 → 2 -85.7% | $0.1951 → $0.0089 -95.4% | 14 → 2 -85.7% · 18.4s → 11.0s | PASS / PASS · $0.0098 → $0.0018 -81.3% |
cm-p95-latency |
PASS / PASS | 10 → 2 -80.0% | $0.6097 → $0.0106 -98.3% | 10 → 2 -80.0% · 19.3s → 13.1s | FAIL / PASS · $0.1900 → $0.0022 -98.8% |
cm-secret-scan |
PASS / PASS | 23 → 2 -91.3% | $0.2131 → $0.0096 -95.5% | 23 → 2 -91.3% · 20.3s → 13.3s | PASS / PASS · $0.0111 → $0.0026 -76.4% |
cm-cross-ledger |
PASS / PASS | 5 → 3 -40.0% | $0.1098 → $0.0205 -81.3% | 3 → 2 -33.3% · 17.6s → 13.4s | PASS / PASS · $0.0067 → $0.0023 -65.7% |
| Total Across All 8 Tasks | 8/8 / 8/8 | 90 → 19 -78.9% | $2.0236 → $0.1114 -94.5% | 88 → 17 -80.7% · 18.8s → 13.0s | 6/8 / 8/8 · $0.4513 → $0.0157 -96.5% |
To test the hardest realistic baseline, we also benchmarked verin mcp --stdio --caps fs:ro directly against each CLI agent's default native tools (OS bash, Python, grep, file read) on the same 8 tasks. Across all 3 vendors (24/24 = 100% accuracy on both arms), Verin beat normal Claude Code across the board (-67.1% context tokens, Holm p=0.0024; -43.9% USD; -10.6% wall time), tied OpenAI Codex on turns (2.25 vs 2.25) with ~$0.005/task overhead, and used 4.5% fewer context tokens on xAI Grok 4.7 while trading extra reasoning time for strict 8 KB read-only WASM sandboxing.
| Frontier Model (Native Shell vs Verin) | Accuracy | Mean Turns | Context Tokens | Total USD | Mean Wall |
|---|---|---|---|---|---|
| Claude Sonnet JSON ↗ | 8/8 vs 8/8 | 2.63 vs 2.50 | 454.3k vs 149.3k -67.1% | $0.3523 vs $0.1976 -43.9% | 7.3s vs 6.5s -10.6% |
| OpenAI Codex JSON ↗ | 8/8 vs 8/8 | 2.25 vs 2.25 | 316.6k vs 522.9k +65.2% | $0.1197 vs $0.1649 +37.8% | 12.1s vs 14.3s +18.5% |
| xAI Grok 4.7 JSON ↗ | 8/8 vs 8/8 | 3.50 vs 4.75 | 466.5k vs 445.7k -4.5% | $0.1755 vs $0.2340 +33.3% | 17.1s vs 60.7s +256.0% |
Reproduce directly with node evals/codemode-bench.ts --model sonnet, --agent codex, --agent grok, or --arms native,verin-codemode.
Both TypeScript and Verin run in isolated /tmp sandboxes with zero repo access and receive Attempt 1 (pass@1) plus at most 1 deterministic compiler/test retry (pass@2) using only the compact verin skill primer.
| Model | pass@1 (TS → Verin) | Verin pass@2 | Safety Catch | Output Tokens | SLOC | Raw Data |
|---|---|---|---|---|---|---|
| Claude Sonnet Anthropic · n=16 |
100.0% → 100.0% | 100.0% | 100.0% | 862 → 729 (-15.5%) | 35.5 → 16.9 -52.3% | JSON ↗ |
| OpenAI Codex OpenAI · n=16 |
93.8% → 100.0% | 100.0% | 100.0% | 391 → 242 (-38.1%) | 30.1 → 20.1 -33.4% | JSON ↗ |
| Claude Haiku Anthropic · n=16 |
93.8% → 87.5% | 100.0% | 93.8% | 1223 → 1076 (-12.0%) | 41.3 → 20.7 -49.9% | JSON ↗ |
| Pooled All 3 Models (n=48) | 95.8% → 95.8% | 100.0% | 97.9% | 826 → 682 (-17.3%) | 35.6 → 19.2 -46.1% | README ↗ |
| Domain | pass@1 (TS → Verin) | Verin pass@2 | Output Tokens | SLOC |
|---|---|---|---|---|
| Durable Workflows (dur-*) (n=12) | 91.7% → 100.0% | 100.0% | 1381 → 490 (-64.5%) | 55.9 → 17.8 -68.1% |
| Safety & Invariants (safe-*) (n=12) | 100.0% → 100.0% | 100.0% | 716 → 435 (-39.2%) | 37.0 → 17.9 -51.6% |
| Data Pipelines (pipe-*) (n=12) | 100.0% → 91.7% | 100.0% | 478 → 509 (+6.4%) | 25.8 → 6.6 -74.4% |
| Protocol & Parsing (proto-*) (n=12) | 91.7% → 91.7% | 100.0% | 727 → 1296 (+78.2%) | 23.9 → 34.6 +44.6% |
In isolated single-turn prompts, Verin pays the one-time verin skill primer cost fresh every call. In real multi-turn agent sessions (4 independent 4-turn sprints on Claude Sonnet = 16 paired turns per arm via claude --resume), the 994-token primer is prompt-cached once on Turn 1 and reused at 0.1x cache-read cost on Turns 2 to 4, while shorter generated code (57.1 → 18.6 SLOC, -67.4%) shrinks both conversation history and output tokens (-51.1%, Holm p=0.0334). Result: 93.8% pass@1 (beating TS 87.5%), 100% pass@2 (16/16), and $0.8273 → $0.5064 real billed USD (-38.8%, paired p=0.0124).
| 4-Turn Cached Sprint (Claude Sonnet) | Verin pass@2 | Total Output Tokens | Real Billed USD (TS → Verin) |
|---|---|---|---|
| Durable Workflows & Concurrent Statecharts (4 turns) | 4/4 | 6948 → 2041 -70.6% | $0.2438 → $0.0877 -64.0% |
| Transactions & Formally Verified Safety Traps (4 turns) | 4/4 | 2529 → 2371 -6.2% | $0.1068 → $0.1410 +32.0% |
| Wire Protocols & Binary Frame Codecs (4 turns) | 4/4 | 5086 → 3735 -26.6% | $0.2124 → $0.1941 -8.6% |
| Handshakes, List-Match Queues, Migrations & Views (4 turns) | 4/4 | 5371 → 1607 -70.1% | $0.2644 → $0.0836 -68.4% |
| Total Across All 4 Sessions (16 Paired Turns) | 16/16 (100%) | 19934 → 9754 -51.1% | $0.8273 → $0.5064 -38.8% |
Reproduce directly with node evals/multiturn.ts --model sonnet (raw JSON ↗).
To stress-test Verin where hand-rolled TypeScript gets verbose and bug-prone, the 16-task Tier-2 Hard suite covers durable parallel/race regions, postpone FIFO handshakes, transact + unwind rollbacks, schema migrate from, parameterized views, HTTP/2 u24be streaming frame codecs, Cursor + varint decoding, sealed HMAC auth, and 4 formal safety/liveness traps with verifyWasm counterexample feedback on retry.
Across both Frontier vendors (n=32), Verin cut completion tokens by -38.1% (Holm p=0.0151) and SLOC by -62.4% (Holm p=0.0000). On hard-trap-two-man-launch, verifyWasm caught a subtle 3-step livelock cycle on Attempt 1 and guided both Claude Sonnet and OpenAI Codex to an exhaustive proof on Attempt 2.
| Model (Tier-2 Hard) | pass@1 (TS → Verin) | Verin pass@2 | Safety Catch | Output Tokens | SLOC | Raw Data |
|---|---|---|---|---|---|---|
| Claude Sonnet Anthropic · n=16 |
87.5% → 87.5% | 100.0% | 100.0% | 1512 → 933 -38.3% | 60.3 → 19.8 -67.3% | JSON ↗ |
| OpenAI Codex OpenAI · n=16 |
93.8% → 81.3% | 93.8% | 93.8% | 612 → 382 -37.6% | 51.0 → 22.1 -56.6% | JSON ↗ |
| Pooled Frontier Hard (n=32) | 90.6% → 84.4% | 96.9% | 96.9% | 1062 → 658 -38.1% | 55.7 → 20.9 -62.4% | Suite ↗ |
Honest notes: Claude Sonnet reached 100.0% pass@2 (16/16) and was certified ACCRETIVE (-38.3% output tokens p=0.0137, -67.3% SLOC Holm p=0.0000). OpenAI Codex reached 93.8% pass@2 (15/16) with 1 miss on hard-h2-u24-frame (calling bytes.fromHex instead of bytes.hex.decode; a zero-token host hint has since been added).
Two Accretive bet iterations on src/skill.ts plus zero-prompt-cost reflex hints in src/host.ts & src/lexer.ts fixed map(fs.read(.)), clarified repeat (state-only) vs bounded for loops, documented fs.read(.) fields, and cut primer size from 1,498 to 1,207 approx tokens. Across all 3 models (n=48 paired tasks), compact_primer_v2 cut totalTokens by -19.3% (Holm p=0.0206), lifted pooled pass@1 from 81.3% to 95.8% (matching TypeScript), and lifted pooled pass@2 to 100.0% (48/48). On Claude Sonnet (n=16 baseline → v2):
| Metric (Claude Sonnet n=16) | Initial Baseline | Compact Primer v2 (1,207 tok) | Delta |
|---|---|---|---|
| pass@1 | 56.3% | 100.0% | +43.8 pp |
| pass@2 | 81.3% | 100.0% | +18.8 pp |
| outputTokens | 1170.1 | 728.8 | -37.7% |
| totalTokens | 6776.3 | 4070.9 | -39.9% |
verin skill prompt cost (+24.2% pooled totalTokens; +13.8% on Frontier Sonnet + Codex, Holm p=0.1089). In multi-turn cached agent sessions, the primer is cached once and amortized while output-token (-17.3% pooled v1, -38.1% pooled Frontier Tier-2 Hard) and SLOC (-46.1% v1, -62.4% Tier-2 Hard) savings compound.claude/haiku, cold-start pass@1 reached 87.5% (14/16 vs 93.8% TS) and recovered to 100.0% (16/16) on pass@2 with 1 safety-check miss (93.8% safetyCatchRate).pass@1 (32/32, beating TypeScript 96.9%), 100.0% pass@2, 100.0% safetyCatchRate, -22.5% output tokens, and -43.6% SLOC (Holm p=0.0109).# Verify all 32 graders deterministically (v1 + Tier-2 Hard: 64 golden solutions + 64 negative checks)
node evals/run.ts --verify-graders --suite all
# Re-run the paired eval on your own model (v1 or Tier-2 Hard)
node evals/run.ts --provider claude --model sonnet --concurrency 4
node evals/run.ts --suite hard --provider claude --model sonnet --concurrency 4
node evals/run.ts --suite hard --provider codex --model default --concurrency 3