Benchmarks: humans and agents
Why VibeLang stays close to TypeScript instead of inventing an alien syntax — and what empirical benchmarks show for both human readers and coding agents.
All committed measurements, pinned tool versions, and reproduction instructions live in docs/user/benchmarks/agent-syntax. For static per-snippet token counts across the cheat sheet and every docs page, see Token counts; for runtime loop overhead, see Runtime cost.
The core finding: one language works for both
A common question about AI-era programming languages is whether humans and coding agents want different languages — readable prose-like syntax for people, and a hyper-compressed or symbolic syntax (indentation-delimited formats, Lisp/S-expressions, or compact ASTs) for models.
We tested that hypothesis across 30 verified Effect 4 programs (150 verified reference files across 5 syntaxes) and 342 live cached-skill agent trials across three models (claude-sonnet-5-5, claude-haiku-5-5, and gpt-6.2-sol) with zero fine-tuning.
The results converge on one clear design rule:
- VibeLang reduces code size without paying an alien-syntax reasoning tax. Across 30 real Effect 4 programs, idiomatic
.vibeuses 24.2% fewer tokens (4,688vs6,183o200k_basetokens) and 27.5% fewer characters than strict Effect 4 TypeScript while keeping familiar TypeScript braces, control flow, and expressions. - Alien syntaxes shrink static code tokens, but hurt agents in practice. Pushing further into indentation-delimited (
vibe-toon,-42.9%static tokens) or S-expression (vibe-sexpr,-36.3%static tokens) formats forced reasoning models to spend dramatically more hidden thinking tokens (up to +412.5% on S-expressions —2.6×higher total cost and2.5×slower end-to-end) and caused smaller models (claude-haiku-5-5) to drop from 90.9% to 40.9% pass@1. - TypeScript-shaped VibeLang sits at the sweet spot for both audiences. Humans get shorter, flatter, scannable Effect programs without
Effect.gen,yield*,pipe, or class boilerplate. Agents keep all of their pretrained TypeScript intuitions, write ~23%–35% fewer code tokens, get ~6× faster native compile feedback (108–135 msvs693–800 msfortsc --strict), and match or beat Effect 4 TypeScript with a cached4,713-token skill file and zero model fine-tuning.
Why VibeLang helps humans
- Less ceremony, same Effect semantics.
error,service,effect function,try,catch,provide,schema,data, andmatchreplace nested generator and class scaffolding with flat statements that read top-to-bottom. - Failures and dependencies stay visible at a glance. A function signature like
User!UserNotFound!Usersputs the success type, expected error union, and required services directly in front of every code reviewer. - Zero tooling exile. Because VibeLang forks the TypeScript 7 compiler and emits ordinary Effect JavaScript, source maps, and
.d.vibe.tsdeclarations, developers keep their editors, linters, formatters, bundlers, debuggers, and.tsfiles alongside.vibe(Set up VibeLang).
Why VibeLang helps coding agents
- Compiler guardrails catch silent Effect bugs immediately. In the 30-task fault-injection suite (
benchmark-30/v1), 18 of 30 realistic LLM failure modes — discarded Effects, unhandled errors,awaitinsideeffectfunctions, unsafe ambient globals, non-exhaustivematcharms, and invalidrestoreplacement — are rejected at compile time in ~120 ms instead of leaking into runtime behavior. - Pretrained TypeScript intuition transfers intact. Because VibeLang is a TypeScript superset rather than an unfamiliar grammar, models do not burn reasoning tokens translating syntax rules in their head.
- Compact code and fast edit-check loops. Shorter files fit more context into an agent's window, generate fewer output tokens, and verify ~6× faster per edit through
vibelang agents check(Coding agents).
Offline 30-task reference baseline
Each of the 30 tasks in benchmark-30/v1 (6 categories × 5 tasks) ships verified references across 5 representations plus a realistic fault-injection control:
- Verified references:
30 / 30pass compile and behavioral checks in every representation (150 / 150total). - Fault-injection controls:
30 / 30rejected (18compile-time diagnostics,12runtime behavioral mismatches). - Lossless syntax round-trip:
30 / 30pass automated bidirectional conversion and re-verification.
Static token footprint (o200k_base, 30 paired programs)
| Category (5 tasks each) | Effect 4 TS | Human VibeLang | Compact TS-Vibe | Indent-Vibe (toon) | Lisp-Vibe (sexpr) |
|---|---|---|---|---|---|
| Typed Errors & Recovery | 1,170 | 790 (-32.5%) | 689 | 590 | 670 |
| Services & Layers | 937 | 659 (-29.7%) | 593 | 515 | 563 |
| Structured Concurrency | 671 | 478 (-28.8%) | 423 | 363 | 400 |
| Resource Safety & Streams | 822 | 590 (-28.2%) | 518 | 438 | 507 |
| Platform & Boundary Soundness | 822 | 669 (-18.6%) | 608 | 545 | 617 |
| Effect UI Components | 1,761 | 1,502 (-14.7%) | 1,188 | 1,082 | 1,182 |
Total (30 tasks, o200k_base) | 6,183 | 4,688 (-24.2%) | 4,019 (-35.0%) | 3,533 (-42.9%) | 3,939 (-36.3%) |
| Total characters | 23,982 | 17,391 (-27.5%) | 14,586 (-39.2%) | 12,899 (-46.2%) | 13,765 (-42.6%) |
| Gzip bytes | 10,975 | 8,427 (-23.2%) | — | 6,959 (-36.6%) | — |
On a representative tagged-error task (err-01), minified JSON-AST expanded tokens by +64.7% (247 vs 150 tokens for Effect 4 TS), while Human VibeLang dropped to 86 tokens (-42.7%).
Shipped VIP-82 Machine Mode (vibe convert --to=machine)
Using the native compiler's lossless 2-way converter (Human & machine syntax mode), converting all 30 human .vibe references directly with vibe convert --to=machine (keeping TypeScript/Vibe expressions and single-token keywords identical while compacting effect function → ef, uninterruptible/interruptible → unint/intr, and BPE-expensive whitespace) achieves:
| Compiler-verified representation (30 tasks) | o200k_base | cl100k_base | Characters | vs. Human .vibe | vs. Effect 4 TS |
|---|---|---|---|---|---|
| Effect 4 TypeScript | 6,183 | 6,165 | 23,982 | +31.9% | baseline |
Human VibeLang (.vibe) | 4,688 | 4,679 | 17,391 | baseline | -24.2% |
VIP-82 Machine Mode (--indent=1, default) | 3,960 | 3,944 | 14,878 | -15.5% | -36.0% |
VIP-82 Machine Mode (--indent=0, flat) | 3,822 | 3,807 | 14,340 | -18.5% | -38.2% |
node docs/user/benchmarks/agent-syntax/verify-machine-mode.mjs --write regenerates these rows (vip82MachineMode30Tasks in results.json) and checks, for all 30 tasks: 30/30 conversion at both indentations, 30/30 idempotence, 30/30 machine → human → machine byte for byte, 30/30 byte-identical .d.ts declarations, 30/30 byte-identical JavaScript, 30/30 expected runtime output, and 30/30 --syntax=human/--syntax=machine EK3014 enforcement. VIP-82 Machine Mode (3,960 tokens, 3,822 flat) lands within 21 tokens of the Lisp S-expression prototype (3,939 tokens) at one-space indentation and below it flat, while preserving TypeScript expression syntax.
Live cached-skill agent trials (342 trials)
Every model received identical task specifications, a prompt-cached language guide (Effect 4 TypeScript guide vs. VibeLang skill vs. experimental syntax guides), and up to 2 turns (turn 1 generation, plus turn 2 compiler/test feedback on failure). Zero fine-tuning was used for any language.
In addition to vibe-human, we tested vibe-prime, a second-iteration TypeScript-shaped variant that removes the top two compiler friction points uncovered in round 1 (writing try before catch and bare : T return annotations on effect functions — both now accepted into VibeLang via VIP-5 and VIP-1).
Frontier reasoning model (claude-sonnet-5-5, 22 tasks: 18 standard + 4 hard)
| Syntax | Pass@1 | Pass@2 | Hard (4) P@1 | Turn-1 Code Tok | Total Out Tok | Total Think Tok | Compile ms | Total E2E ms | Cached $ / 1k passes |
|---|---|---|---|---|---|---|---|---|---|
| Effect 4 TypeScript | 22/22 (100%) | 22/22 (100%) | 4/4 | 320.0 | 720.0 | 167.1 | 764 | 5,886 | $11.94 |
Human VibeLang (.vibe) | 20/22 (90.9%) | 22/22 (100%) | 4/4 | 247.7 (-22.6%) | 719.5 | 277.3 | 132 (5.8×) | 5,658 (-3.9%) | $12.17 |
TS-shaped Vibe (vibe-prime) | 21/22 (95.5%) | 22/22 (100%) | 4/4 | 208.8 (-34.8%) | 795.3 | 419.1 | 106 (7.2×) | 6,070 | $13.12 |
Indent-Vibe (vibe-toon) | 14/22 (63.6%) | 21/22 (95.5%) | 3/4 | 186.0 | 914.5 | 466.2 | 180 | 7,460 | $16.39 |
Lisp-Vibe (vibe-sexpr) | 17/22 (77.3%) | 22/22 (100%) | 3/4 | 219.3 | 1,942.1 | 1,464.8 | 148 | 14,564 | $30.92 |
Coding-focused model (gpt-6.2-sol, 10 tasks: 6 standard + 4 hard)
| Syntax | Pass@1 | Pass@2 | Hard (4) P@1 | Turn-1 Code Tok | Total Out Tok | Compile ms | Total E2E ms | Cached $ / 1k passes |
|---|---|---|---|---|---|---|---|---|
| Effect 4 TypeScript | 10/10 (100%) | 10/10 (100%) | 4/4 | 448.0 | 456.0 | 800 | 14,256 | $8.01 |
Human VibeLang (.vibe) | 9/10 (90.0%) | 10/10 (100%) | 3/4 | 348.3 (-22.3%) | 496.0 | 146 (5.5×) | 15,826 | $9.03 |
TS-shaped Vibe (vibe-prime) | 9/10 (90.0%) | 9/10 (90.0%) | 4/4 | 292.4 (-34.7%) | 332.7 (-27.0%) | 138 (5.8×) | 11,077 (-22.3%) | $6.98 (-12.9%) |
Indent-Vibe (vibe-toon) | 1/10 (10.0%) | 7/10 (70.0%) | 0/4 | 264.9 | 587.7 | 227 | 19,987 | $17.32 |
Lisp-Vibe (vibe-sexpr) | 8/10 (80.0%) | 9/10 (90.0%) | 2/4 | 317.5 | 516.3 | 174 | 15,580 | $10.69 |
Small fast model (claude-haiku-5-5, 22 tasks: 18 standard + 4 hard)
| Syntax | Pass@1 | Pass@2 | Hard (4) P@1 | Turn-1 Code Tok | Total Out Tok | Compile ms | Total E2E ms | Cached $ / 1k passes |
|---|---|---|---|---|---|---|---|---|
| Effect 4 TypeScript | 21/22 (95.5%) | 22/22 (100%) | 4/4 | 324.6 | 1,499.8 | 726 | 6,917 | $7.92 |
Human VibeLang (.vibe) | 20/22 (90.9%) | 21/22 (95.5%) | 3/4 | 247.0 (-23.9%) | 1,892.9 | 120 (6.1×) | 8,363 | $10.46 |
TS-shaped Vibe (vibe-prime) | 17/22 (77.3%) | 20/22 (90.9%) | 2/4 | 219.5 (-32.4%) | 2,364.8 | 126 (5.8×) | 10,337 | $13.66 |
Indent-Vibe (vibe-toon) | 9/22 (40.9%) | 16/22 (72.7%) | 2/4 | 189.9 | 2,809.0 | 184 | 12,732 | $20.45 |
Lisp-Vibe (vibe-sexpr) | 9/22 (40.9%) | 14/22 (63.6%) | 0/4 | 211.1 | 2,754.4 | 185 | 12,581 | $23.10 |
Bidirectional read + edit (claude-sonnet-5-5, 3 modification tasks)
Real coding-agent sessions spend more time reading and editing existing code than writing greenfield files. On 3 multi-step modification tasks:
- Human VibeLang passed
3/3by turn 2 (2/3pass@1) with 20.5% fewer input code tokens (292.0vs367.3) and 3.8× faster compile checks (206 msvs779 ms). - Compact TypeScript-shaped Vibe (
vibe-micro) passed3/3(100%) on turn 1 and beat Effect 4 TypeScript on input tokens (250.3vs367.3,-31.9%), total output tokens (963.7vs1,031.0,-6.5%), and compile time (129 msvs779 ms,6.0×).
How benchmarks directly improve VibeLang
Every failure in the 342 live trials was audited by diagnostic code. Two compiler rules accounted for most turn-1 VibeLang retries — both places where valid TypeScript intuition collided with a stricter VibeLang rule:
- Writing
trybeforecatch(try expr catch handler): Models naturally wrotetrybefore an effectful expression even when attachingcatch. VIP-5 was amended to maketryover acatchexpression idempotent rather than rejecting it. - Bare return annotations on
effectfunctions (effect function f(): T): Models naturally annotated pureeffectfunctions with: Tinstead of: T!!. VIP-1 was amended to accept bare: Tas shorthand forT!!oneffectfunctions.
When those two footguns were removed in vibe-prime, pass@1 jumped on claude-sonnet-5-5 (90.9% → 95.5%), claude-haiku-5-5 (40.9% → 77.3% vs vibe-micro), and gpt-6.2-sol (50.0% → 90.0% vs vibe-micro, beating Effect 4 TypeScript on total output tokens, latency, and cost).
Method and limits
- Pinned snapshot (2026-11-28): VibeLang
0.0.15(built from checkout),effect@4.1.6, TypeScript5.9.3(strict: true,module: NodeNext),o200k_baseviajs-tiktoken 1.0.21, run on macOS arm64. - No fine-tuning: VibeLang ran purely via an in-context prompt-cached skill (
4,713tokens) against TypeScript and Effect patterns deeply represented in model pretraining. - Snapshot variability: Live model pass rates, thinking tokens, and API latency change with model updates and provider load. Treat the live tables as one dated empirical snapshot (
docs/user/benchmarks/agent-syntax/results.json), not a permanent guarantee. - Tokenizer scope: Static token counts use OpenAI's
o200k_base; other tokenizers produce different exact numbers.