# Can AI Agents Write Verin? (Agent Evals)

> Short answer: **Yes.** Across 80+ automated paired tasks on Claude, OpenAI Codex, and xAI Grok, frontier models write Verin reliably cold-start (**100% pass@2**, **95.8% pass@1**, **-46.1% shorter code** than TypeScript), achieve **32/32 (100%)** in sandboxed Verin Code-Mode vs **27/32** for Raw MCP (3.3x to 28.7x cheaper), and beat normal unsandboxed Claude Code Bash/Python on tokens (-67.1%), cost (-43.9%), and speed (-10.6%).

- HTML page: https://verin-lang.org/evals
- Raw JSON transcripts & ledger: https://github.com/visionik/verin/tree/main/evals

## TL;DR Executive Summary

1. **Can AI agents write Verin reliably?** **YES:** 100% pass@2 (48/48 passing), 95.8% pass@1 (100% on Claude Sonnet & OpenAI Codex) with -46.1% fewer lines of code and -17.3% fewer output tokens than TypeScript (-38.1% output tokens / -62.4% SLOC on the Tier-2 Hard Suite).
2. **Is Verin Code-Mode faster and cheaper than Raw MCP?** **YES:** 32/32 (100%) accuracy vs 27/32 for Raw MCP across 3 vendors and 4 models, cutting tool turns by 57% to 81%, context tokens by up to 96%, and real USD cost by 3.3x to 28.7x.
3. **Is Verin Code-Mode faster and cheaper than native OS Bash/Python agents?** **YES ON CLAUDE, MIXED ON OTHERS:** Beats native Claude Code across every metric (-67.1% context tokens Holm p=0.0024, -43.9% USD, -10.6% faster); ties OpenAI Codex on turns (2.25 vs 2.25); uses fewer context tokens on xAI Grok 4.7 while native Python is faster on wall time, with Verin enforcing an 8 KB read-only WASM sandbox.

## 1. Sandboxed Verin Code-Mode vs. Raw MCP (3 Vendors, 4 Models, 32 Paired Runs)

| Model | Accuracy (Raw -> Verin) | Mean Turns | Context Tokens | Total Cost (USD) | Mean Wall Time |
| :--- | :---: | :---: | :---: | :---: | :---: |
| Claude Sonnet | 8/8 -> **8/8** | 11.25 -> **2.38** | 502.6k -> **94.2k** | $2.0236 -> **$0.1114** (18.2x cheaper) | 14.3s -> **5.6s** |
| OpenAI Codex | 8/8 -> **8/8** | 11.00 -> **2.13** | 705.3k -> **499.0k** | $0.2192 -> **$0.1588** (1.4x cheaper) | 18.8s -> **13.0s** |
| xAI Grok 4.7 | 5/8 -> **8/8** | 9.00 -> **3.88** | 3018.8k -> **358.0k** | $0.6795 -> **$0.2083** (3.3x cheaper) | 125.9s -> **59.6s** |
| Claude Haiku | 6/8 -> **8/8** | 10.88 -> **3.63** | 499.2k -> **178.6k** | $0.4513 -> **$0.0157** (28.7x cheaper) | 31.1s -> **13.5s** |

## 2. Sandboxed Verin Code-Mode vs. Unsandboxed Native Agent (Bash / Python / Grep, 24 Paired Runs)

| Vendor / Model | Accuracy (Native vs Verin) | Mean Turns | Context Tokens | Total Cost (USD) | Mean Wall Time |
| :--- | :---: | :---: | :---: | :---: | :---: |
| Claude Sonnet | 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 | 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 | 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%) |

## 3. Cold-Start Verin vs. TypeScript (n=48 Paired Tasks)

- **Overall pass@1:** 95.8% (100% on Claude Sonnet 4.6 and OpenAI Codex; 87.5% on Claude Haiku 4.5).
- **Overall pass@2:** **100.0% (48/48)** after compiler diagnostic feedback.
- **Conciseness:** **-46.1% SLOC** and **-17.3% output tokens** on v1; **-62.4% SLOC** and **-38.1% output tokens** on the Tier-2 Hard Suite (protocols, binary framing, durable rollback, formal invariants).
- **Multi-turn cached sessions (Claude Sonnet, 16 paired turns):** 93.8% pass@1 (vs 87.5% TS), 100% pass@2, -51.1% output tokens (Holm p=0.0334), -67.4% SLOC, -38.8% billed USD.
