Skip to content
Wave 1 White PaperSource: deftai/bode docs/RESULTS.md
Track 2 CSVTrack 5A CSV

BODE: Governance With a Negative Cost

Paired Stock vs. BODE trials across Claude Haiku 4.5, Claude Sonnet 4.6, Claude Opus, Pi Grok-4.7, and Antigravity showing that plan-before-write governance cuts agent cost by 28.9% to 54.4%, reduces prompt tokens by up to 67.6%, speeds completion by up to 34.4%, and eliminates 96.2% of raw shell calls while holding 100% task completion.

5-Turn Real Repo−54.4%
$1.38 → $0.63 (2.2× cheaper)
Hard XL Pooled (n = 32)−28.9%
28/32 wins · p = 0.0002
Wall Time (Adversarial / XL)−34.4%
−28.1% real repo · −18.8% Hard XL
Raw Shell Calls−96.2%
131 → 5 · p = 0.000015

1. 5-Turn Persistent Real-Repo Sessions (Track 5A)

Five sequential engineering turns inside one persistent session on a real cloned copy of the BODE TypeScript monorepo (43 .ts files, live tsc --noEmit, live vitest, mid-session regression injection between Turns 2 and 3).

Download CSV
Harness / ModelArmPassTotal CostCost ΔWall TimeTool / ShellPrompt Tokens
Antigravity (agy)stock-agy5/5$1.3820baseline462.7s49 / 223,110,357
Antigravity (agy)agy-bode5/5$0.6301-54.4%332.8s (-28.1%)22 / 31,008,689 (−67.6%)
Claude Sonnet 4.6stock-claude5/5$1.4521baseline192.2s31 / 12—
Claude Sonnet 4.6claude-bode5/5$0.9056-37.6%177.6s (-7.6%)26 / 0—
Pricing disclosure for Antigravity stream-json telemetry

Antigravity reports exact token counts (input, cache read, and output). USD is shown at Gemini Pro $2 / $0.20 / $12 per 1M tokens. Across alternative pricing schedules ($1.25/$10 to $5/$25), the cost reduction holds between −51.5% and −56.0%. Both BODE arms won 5/5 individual turns on cost.

2. Real-World SWE Hard-Tier Suite (Track 2, 64 measured trials)

Four deterministic XL tasks: x1-monorepo-breaking-api (36-file 5-package migration + protected generated files), x2-git-bisect-regression (25-commit archaeology), x3-distributed-trace-deadlock (20,000-line JSONL trace forensics), and x4-mini-compiler-feature (lexical closures + let rec).

Download CSV
ModelPairsPassStock CostBODE CostCost Δ (p)WinsWall ΔCalls Δ
Claude Haiku 4.588/8 (100%)$0.0147$0.0084-42.6% (0.0013)8/8-37.0%-50.4%
Claude Sonnet 4.688/8 (100%)$0.4367$0.3025-30.7% (0.0081)7/8-6.0%-66.5%
Claude Opus88/8 (100%)$0.2375$0.1694-28.7% (0.0014)8/8+7.3%+20.6%
Pi Grok-4.788/8 (100%)$0.1153$0.0917-20.4%5/8-37.7%-63.2%
Pooled All 4 Models3232/32 (100%)$0.2010$0.1430-28.9% (0.0002)28/32-18.8%-55.6%

3. Wall-Clock Speed & Turn Compression

Because BODE batches multi-file inspection, transformations, and verification into single typed TypeScript cells instead of dozens of sequential tool round-trips, latency drops alongside token spend:

Adversarial Governance Track (36 trials)
−34.4% wall time (39.2s stock → 25.7s BODE pooled across Opus, Sonnet 4.6, and Grok-4.7; Grok-4.7 ran 2.7× faster at 69.1s → 26.0s).
5-Turn Real-Repo Session (Antigravity)
−28.1% wall time (462.7s → 332.8s) with −55.1% fewer tool calls (49 → 22).
Hard XL SWE Pool (n = 32 pairs)
−18.8% wall time (83.1s → 67.5s, p = 0.0136), −34.2% fewer model turns (19.8 → 13.1, p = 0.0131), and −55.6% fewer tool calls (15.3 → 6.8, p = 0.0014).

4. Shell Minimization Suite (Track 4, 236 live trials)

Evaluating 25 governed built-in tools (fs.*, git.*, proc.*, web.*, poll()) across 4 shell-heavy tasks (s1–s4, n = 32 paired trials) plus a full 4-model Hard XL regression check.

Download CSV
ArmPass RateRaw Shell CallsShell ΔAvg CostCost ΔAvg Wall
bode-base (pre-expansion)4/32 (13%)15——failed 28/32 under readonly sh—
Stock (Bash / stock-pi)32/32 (100%)131baseline$0.0966baseline18.5s
bode-full (graduated, 25 built-ins)32/32 (100%)5−96.2%$0.0623−35.5% (p = 0.000015, 28/32 wins)15.7s (−15.3%)

Zero shell calls were needed on local server healthcheck (s3) and async worker polling (s4) across all 4 models. Hard XL SWE regression showed zero card-cost drag (+0.9%, p = 0.8927).

Appendix: Savings Calculator Method & Limitations

How deft.co projects budget savings

Direct mapping from measured paired-trial cost deltas to monthly spend and effective rate-limit stretch.

For a user-entered monthly coding-agent spend S and a measured fractional cost reduction r, projected monthly savings equal S × r and effective rate-limit/budget multiplier equals 1 / (1 − r):

  • Conservative (28.9%): Pooled Track 2 Hard XL SWE result across 4 models (1.41× budget stretch).
  • Midpoint (37.6%): Track 5A 5-turn persistent real-repo session on Claude Sonnet 4.6 (1.60× budget stretch).
  • Real-Repo Ceiling (54.4%): Track 5A 5-turn persistent real-repo session on Antigravity (2.19× budget stretch).

Limitations: Savings scale with task complexity and multi-turn session depth. On trivial single-turn 1-minute tasks, standing-card and thinking-token overhead can erase or slightly reverse cost savings (e.g., +14.2% on small 1-minute Antigravity shell tasks before dropping to −31.9% on Hard XL and −54.4% on 5-turn repo sessions). Benchmarks cover Claude, Grok, and Antigravity model families in controlled paired runs; real team savings depend on repo size, prompt caching behavior, and task mix.