Factory Droid 1.0 Script Mode: Hundreds of Tool Calls from One Model Request in a JS Sandbox
Description and use
Factory Droid 1.0 enables hundreds of tool calls in a single model request, reducing token usage and cost.
Problem
In traditional agent loops, each tool result is appended to the context, causing token bloat, rate‑limit hits, and noisy decision making.
Outcome
Script mode consolidates many tool calls into a single model request, dramatically reducing context size, token usage, and cost while maintaining deterministic execution.
Workflow
- 1. Model emits a JavaScript program that calls tools concurrently in a sandbox.
- 2. The sandbox executes the script, printing only a summary.
- 3. The printed summary is returned to the model; raw results stay in a log for later search.
Evidence
Factory shipped Droid 1.0 and made programmatic tool calling the default. The model no longer emits one tool call, waits for the result, and repeats.
Factory’s own numbers illustrate the effect. A Linear cleanup that touched 151 issues (312 tool calls) dropped from an estimated 36 model requests and 3.1 M input tokens to 2 requests and ~61 k tokens.
On Claude Opus 5.5 the same mode cut cost ~15 % versus direct tool calling.
- Record date: 2026-11-01T04:13:47.899Z