Factory Droid cuts agent tool calls from 312 to 2 model requests by generating scripts instead

daniel_mac8 · x · 2026-10-30

danielmac8 highlights an efficiency technique from FactoryAI's Droid agent: instead of routing every tool call back through the model, Droid has the model write a script that runs the calls (in parallel where possible), with loops and checks handled in code, returning only what the script prints. One Linear task dropped from 312 tool calls to just 2 model requests and 61K tokens. The core insight: an agent harness's job is to talk to your computer, and the natural language of computers is code, not one-at-a-time LLM tool calls.

Original post →

More from coding & agent

coding & agent channel →