Skip to content

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 .vibe uses 24.2% fewer tokens (4,688 vs 6,183 o200k_base tokens) 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 and 2.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 ms vs 693–800 ms for tsc --strict), and match or beat Effect 4 TypeScript with a cached 4,713-token skill file and zero model fine-tuning.

Why VibeLang helps humans

  1. Less ceremony, same Effect semantics. error, service, effect function, try, catch, provide, schema, data, and match replace nested generator and class scaffolding with flat statements that read top-to-bottom.
  2. Failures and dependencies stay visible at a glance. A function signature like User!UserNotFound!Users puts the success type, expected error union, and required services directly in front of every code reviewer.
  3. Zero tooling exile. Because VibeLang forks the TypeScript 7 compiler and emits ordinary Effect JavaScript, source maps, and .d.vibe.ts declarations, developers keep their editors, linters, formatters, bundlers, debuggers, and .ts files alongside .vibe (Set up VibeLang).

Why VibeLang helps coding agents

  1. 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, await inside effect functions, unsafe ambient globals, non-exhaustive match arms, and invalid restore placement — are rejected at compile time in ~120 ms instead of leaking into runtime behavior.
  2. 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.
  3. 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 / 30 pass compile and behavioral checks in every representation (150 / 150 total).
  • Fault-injection controls: 30 / 30 rejected (18 compile-time diagnostics, 12 runtime behavioral mismatches).
  • Lossless syntax round-trip: 30 / 30 pass automated bidirectional conversion and re-verification.

Static token footprint (o200k_base, 30 paired programs)

Category (5 tasks each)Effect 4 TSHuman VibeLangCompact TS-VibeIndent-Vibe (toon)Lisp-Vibe (sexpr)
Typed Errors & Recovery1,170790 (-32.5%)689590670
Services & Layers937659 (-29.7%)593515563
Structured Concurrency671478 (-28.8%)423363400
Resource Safety & Streams822590 (-28.2%)518438507
Platform & Boundary Soundness822669 (-18.6%)608545617
Effect UI Components1,7611,502 (-14.7%)1,1881,0821,182
Total (30 tasks, o200k_base)6,1834,688 (-24.2%)4,019 (-35.0%)3,533 (-42.9%)3,939 (-36.3%)
Total characters23,98217,391 (-27.5%)14,586 (-39.2%)12,899 (-46.2%)13,765 (-42.6%)
Gzip bytes10,9758,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_basecl100k_baseCharactersvs. Human .vibevs. Effect 4 TS
Effect 4 TypeScript6,1836,16523,982+31.9%baseline
Human VibeLang (.vibe)4,6884,67917,391baseline-24.2%
VIP-82 Machine Mode (--indent=1, default)3,9603,94414,878-15.5%-36.0%
VIP-82 Machine Mode (--indent=0, flat)3,8223,80714,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)

SyntaxPass@1Pass@2Hard (4) P@1Turn-1 Code TokTotal Out TokTotal Think TokCompile msTotal E2E msCached $ / 1k passes
Effect 4 TypeScript22/22 (100%)22/22 (100%)4/4320.0720.0167.17645,886$11.94
Human VibeLang (.vibe)20/22 (90.9%)22/22 (100%)4/4247.7 (-22.6%)719.5277.3132 (5.8×)5,658 (-3.9%)$12.17
TS-shaped Vibe (vibe-prime)21/22 (95.5%)22/22 (100%)4/4208.8 (-34.8%)795.3419.1106 (7.2×)6,070$13.12
Indent-Vibe (vibe-toon)14/22 (63.6%)21/22 (95.5%)3/4186.0914.5466.21807,460$16.39
Lisp-Vibe (vibe-sexpr)17/22 (77.3%)22/22 (100%)3/4219.31,942.11,464.814814,564$30.92

Coding-focused model (gpt-6.2-sol, 10 tasks: 6 standard + 4 hard)

SyntaxPass@1Pass@2Hard (4) P@1Turn-1 Code TokTotal Out TokCompile msTotal E2E msCached $ / 1k passes
Effect 4 TypeScript10/10 (100%)10/10 (100%)4/4448.0456.080014,256$8.01
Human VibeLang (.vibe)9/10 (90.0%)10/10 (100%)3/4348.3 (-22.3%)496.0146 (5.5×)15,826$9.03
TS-shaped Vibe (vibe-prime)9/10 (90.0%)9/10 (90.0%)4/4292.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/4264.9587.722719,987$17.32
Lisp-Vibe (vibe-sexpr)8/10 (80.0%)9/10 (90.0%)2/4317.5516.317415,580$10.69

Small fast model (claude-haiku-5-5, 22 tasks: 18 standard + 4 hard)

SyntaxPass@1Pass@2Hard (4) P@1Turn-1 Code TokTotal Out TokCompile msTotal E2E msCached $ / 1k passes
Effect 4 TypeScript21/22 (95.5%)22/22 (100%)4/4324.61,499.87266,917$7.92
Human VibeLang (.vibe)20/22 (90.9%)21/22 (95.5%)3/4247.0 (-23.9%)1,892.9120 (6.1×)8,363$10.46
TS-shaped Vibe (vibe-prime)17/22 (77.3%)20/22 (90.9%)2/4219.5 (-32.4%)2,364.8126 (5.8×)10,337$13.66
Indent-Vibe (vibe-toon)9/22 (40.9%)16/22 (72.7%)2/4189.92,809.018412,732$20.45
Lisp-Vibe (vibe-sexpr)9/22 (40.9%)14/22 (63.6%)0/4211.12,754.418512,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/3 by turn 2 (2/3 pass@1) with 20.5% fewer input code tokens (292.0 vs 367.3) and 3.8× faster compile checks (206 ms vs 779 ms).
  • Compact TypeScript-shaped Vibe (vibe-micro) passed 3/3 (100%) on turn 1 and beat Effect 4 TypeScript on input tokens (250.3 vs 367.3, -31.9%), total output tokens (963.7 vs 1,031.0, -6.5%), and compile time (129 ms vs 779 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:

  1. Writing try before catch (try expr catch handler): Models naturally wrote try before an effectful expression even when attaching catch. VIP-5 was amended to make try over a catch expression idempotent rather than rejecting it.
  2. Bare return annotations on effect functions (effect function f(): T): Models naturally annotated pure effect functions with : T instead of : T!!. VIP-1 was amended to accept bare : T as shorthand for T!! on effect functions.

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, TypeScript 5.9.3 (strict: true, module: NodeNext), o200k_base via js-tiktoken 1.0.21, run on macOS arm64.
  • No fine-tuning: VibeLang ran purely via an in-context prompt-cached skill (4,713 tokens) 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.