TraceCompiler: Skill-Guided Mining and Compilation of LLM Agent Traces into Mostly Deterministic Workflows
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Tool-using language-model agents repeatedly rediscover procedures they have already executed, producing traces that mix reusable structure with retries, exploration, accidental ordering, and repeated lookups. We present TraceCompiler, a skill-guided system that mines clusters of noisy agent traces and compiles them into executable, mostly deterministic workflows. It admits an inter-tool dependency only when a consumer argument contains a value attributable uniquely to an earlier producer; every hard edge carries an auditable evidence tuple, and ambiguous relations are marked suspected and impose no ordering constraint. Bindings are classified as constants, user inputs, copied outputs, transforms, or residual LLM decisions. On T1, a mechanized form of the rule recovers producer-consumer dependencies at 0.928 precision and 0.943 recall over 15,775 def-use edges of its training split, against 0.711 F1 for adjacency and 0.712 for a frequency-thresholded directly-follows measure on identical data; the compiler skill run blind reaches 0.992 on 250 of those edges. On AppWorld we replay released trajectories in the deterministic simulator to recover masked return values and measure the rule against 563 token edges at 0.993 precision - a self-consistency check, since replay injects tokens by a related heuristic. We compile two recurring intents: a Venmo money-request intent reduces 34 observed API calls to 11 runtime calls and, under leave-one-out execution against the benchmark's own state tests, passes 15 of 21, the failing fold escalating rather than acting because its required branch was never observed; and a Spotify/Todoist intent the compiler correctly refuses to compile, because an irreversible side effect is under-determined. We measure call reduction but not offline compilation cost, so we claim no net efficiency result.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 19 of its 33 references that are in the map. First posted on arXiv 3 Aug 2026.
Builds on
19 of 33 references.
Closest ancestors · 5
Same direction, newest first
- 2026AgentTrails: Towards Trust and Reuse for Agentic Tasks21 Jul
- 2026Agentic Compilation: Mitigating the LLM Rerun Crisis for Minimized-Inference-Cost Web Automation8 Apr
- 2026Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Serving19 Mar
- 2025Agentic AI Process Observability: Discovering Behavioral Variability26 May
- 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents26 Jul
Other references · 14
- 2024Agent Workflow Memorycited by 342
- 2023An LLM Compiler for Parallel Function Callingcited by 170
- 2025Memp: Exploring Agent Procedural Memorycited by 88
- 2020Discovering Object-Centric Petri Netscited by 28
- 2026SkillCraft: Can LLM Agents Learn to Use Tools Skillfully?cited by 28
- 2025ToolMind Technical Report: A Large-Scale, Reasoning-Enhanced Tool-Use Datasetcited by 27
- 2020Process Mining Meets Causal Machine Learning: Discovering Causal Rules from Event Logscited by 15
- 2025T1: A Tool-Oriented Conversational Dataset for Multi-Turn Agentic Planningcited by 14
- 2021Process Discovery Using Graph Neural Networkscited by 7
- 2026Lifting Traces to Logic: Programmatic Skill Induction with Neuro-Symbolic Learning for Long-Horizon Agentic Taskscited by 7
- 2026PreAct: Computer-Using Agents that Get Faster on Repeated Taskscited by 4
- 2026GRADE: Graph Representation of LLM Agent Dependency and Executioncited by 4
Built on by
Citing papers per year: 2026: 3.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Insights Generator: Systematic Corpus-Level Trace Diagnostics for LLM Agents
- 2026Automata from Agent Traces: Failure and Next-Step Prediction
- 2026TraceDance: An Automated System for Building Agent Behavior Benchmarks from Real-World Agent Deployment Traces
- 2026Execution-First Synthetic Tool-Use Trace Generation for LLM Agents
- 2026Semia: Auditing Agent Skills via Constraint-Guided Representation Synthesis
- 2026From Failure to Mastery: Generating Hard Samples for Tool-use Agents
- 2026Auto: The AGI Compiler
- 2026Fail Loudly: An Auditable Runtime for Agentic Data Analysis