Researchers compile agent traces into typed workflows for cheaper, faster recurring tasks
A new paper proposes turning successful LLM agent runs into reusable graph-based programs, so repeated digital tasks no longer require a full agent loop on every execution.
In plain words
AI agents that handle computer tasks often repeat the same routine with different details, and running the whole agent each time is costly. The paper's authors suggest recording a successful run, converting it into a structured graph, and letting a lightweight engine replay that graph. The model is only invoked at steps that genuinely need it, cutting cost and time.
What was announced
The authors, writing on arXiv, argue that much agent work is repetitive: users repeatedly request the same kind of change, such as moving an alarm or rescheduling a meeting, with new data but a familiar procedure. Their answer is an intermediate representation, a directed graph whose nodes are typed by output space: EXECUTE nodes handle computation and tool calls, DECIDE nodes make one bounded choice among declared candidates, and GENERATE nodes cover open-ended output. A compiler agent converts successful traces into this form, and an engine then runs the graph, calling a model only where a node requires one, so deployments keep neither the agent loop nor its context.
Testing used AppWorld, a benchmark of multi-step app tasks. Workflows were compiled from one agent's traces and evaluated on held-out instances. The team reports the compiled workflows solved every instance at 98 times lower cost and 76 times faster per run. Compilation took three to five minutes per workflow and broke even after 31 to 50 executions. These figures come from the paper's own evaluation and have not been independently confirmed.
What it does not show
- Evidence is limited to the paper's abstract; the full methodology, baselines and failure cases are not visible here.
- Reported speed and cost gains come only from the authors' own AppWorld evaluation and are not independently confirmed.
Sources
Source-support review completed 1 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 1 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.