Code Mode beats tool calling at 16 tools
The author tested four tool-calling methods across twelve tasks and five models to determine when Code Mode is worth using over normal tool calling. The tests found that Code Mode becomes cheaper and faster than standard tool calling at a crossover threshold of roughly sixteen tools for single-step tasks, and yields exponential cost and speed improvements for item-heavy fan-out tasks. Open article →