All case studies

Where reduction worked

Vercel

Deleted most of its text-to-SQL agent's tools and scaffolding

Stripped back to bash and the filesystem, the text-to-SQL agent went from an 80% to a 100% success rate and its worst query from 724 seconds to 141.

Removed: the specialised tools, prompt engineering, hand-written retrieval and validation layers of d0, Vercel’s internal text-to-SQL agent. What is left is the semantic layer as a directory of YAML, Markdown and JSON files, and bash to read it. “We deleted most of it and stripped the agent down to a single tool: execute arbitrary bash commands.”

Outcome: on five representative queries, success went from 4/5 to 5/5. The previous architecture’s worst case took 724 seconds, 100 steps and 145,463 tokens before failing; the file system agent answered the same query in 141 seconds, 19 steps and 67,483 tokens, and succeeded. Vercel’s headline figures are 3.5x faster and 37% fewer tokens. Five queries is a small benchmark, and the post prints the table rather than the summary.

The diagnosis is the useful part. None of the removed machinery fixed a failure the model had; it guarded against failures that were assumed. “We were doing the model’s thinking for it” — pre-filtered context, constrained options, a validator around every call, a patch for every edge case. “Every edge case meant another patch, and every model update meant re-calibrating our constraints,” the post says. The scaffolding had become the maintenance load it was meant to prevent.

Two qualifications sit in the post. The result depended on the semantic layer already being good documentation: “If your data layer is a mess of legacy naming conventions and undocumented joins, giving Claude raw file access won’t save you. You’ll just get faster bad queries.” And the version described runs on Claude Opus 4.5, with advice to build for the model you will have in six months, because a constraint that helps today becomes the liability next release. The code sample still passes an ExecuteSQL tool beside the bash one, so “a single tool” is the post’s framing more than the exact diff.

Source: Vercel, We removed 80% of our agent’s tools (22 December 2025)