DuckDB v2.0 CLI agent mode cuts agent-read tokens by 59% on TPC-H benchmarks

josh_wills · x · 2026-10-10

DuckDB v2.0 CLI ships an agent mode that optimizes terminal output for AI coding agents: compact Markdown tables, explicit truncation notices, early aborts of runaway queries, JSON error reporting, and upfront cost announcements for long queries. Claude Code answered all 22 TPC-H questions correctly across 132 runs, with tokens read dropping from 123.6k to 50.8k (-59%). Net cost savings were only 0.5% since each turn re-reads a large system prompt, and runs took slightly more turns (237 vs 224).

Original post →

More from coding & agent

coding & agent channel →