Teaching Coding Agents to do Spreadsheets - Nuno Campos, Witan Labs
Jul 8, 2026 · 19:09
Nuno Campos from Witan Labs explains how his team spent four months teaching coding agents to master spreadsheets, raising accuracy from 50% to 92% on a financial analysis benchmark. Key failures included a rigid three-agent architecture and standalone representations like SQL and XML. The breakthrough was replacing 15 separate tools with a single JavaScript repo tool offering persistent state and code-mode semantics, enabling agents to combine multiple operations in one call and drastically reduce timeouts. The team built high-fidelity formula and rendering engines to close the verification loop, and added domain knowledge prompts to focus the model. For evaluation, they moved from LLM-as-judge to deterministic comparisons using golden spreadsheets. Campos urges practitioners to replace many tool calls with real scripting languages, invest in feedback loops, and regularly revisit interfaces as model capabilities evolve.