Compiling the agent.
Most of what an agent does is deterministic, and today you pay a model to rediscover it on every run. Watch one successful run, distill the deterministic path into a typed program, and the model is called only where judgment matters. Futamura wrote this down in 1971: specialize an interpreter to a fixed program and a compiled program falls out. We built that for agents, and it has carried production traffic since April 2026.
Two tiers, like a JIT
Tier 1 freezes a successful run into a typed program: goal, ordered tool calls with templated arguments, declared input and output schema. The model executes it instead of planning it. Tier 2 turns the same trace into executable code that calls the tools directly, with no model in the loop. 346 programs compiled so far, 303 tier 1 and 18 tier 2. The shift Yohei Nakajima calls the "AGI compiler" is running here today.

Model calls per run
Each compiled program measured against its own source session: median model calls fall from 5 to 3, tool calls from 4 to 2. The planning is compiled away; the judgment stays.
Off one compile
Compilation is a single model pass over a trace the platform already recorded, so tier 1 is cheaper than interpreting from the second run onward and converges on a 40% saving.
Tool-call errors
2.6% of tool calls fail on a compiled program against 5.7% in an interactive session, and completion holds at 95.4% with nobody watching. Only argument shapes that already worked get shipped.
None. This layer did not exist five years ago: there was no agent loop to compile. Everything here is new work, which is why it carries the only production numbers on this page.
Path determinism sits at 34% run-weighted across 1,534 production runs: a frozen program still lets the model wander, and one program took 170 distinct tool paths across 385 runs. Tier 2 removes that by construction but covers 18 of 346 programs, and it has no guards yet. When a tool renames a field, a compiled program should trip a precondition and deoptimize back into the interpreter mid-run. It does not yet.









Artificial Analysis · Jan 2026