Give an agent one tool: exec
Phil Schmid argues agent harnesses are collapsing dozens of tools into a single sandboxed code runner.
Instead of one JSON tool call per turn, the model sees typed declarations (declare namespace tools) and writes a short script that chains calls, filters results in memory and returns only a one-line text() summary. His worked example makes 55 API calls in a single turn.
Factory switched Droid 1.0 to this Code Mode and gained 3.5 points on Terminal-Bench 4 while cutting model spend 15%. Framer's new harness runs the code as it streams and cut tool steps by 43%.
