ReTrace: Distilling Tool-Using Agents into Planner-Free Workflows A paper titled ReTrace presents a method that converts natural-language standard operating procedures and a few logged LLM agent runs into reusable code-driven workflows in which code, not an LLM, selects each next step. On 79 procedures from the authors' production platform, ReTrace workflows reached 93.8% completion versus 96.8% for the agent at 24% lower cost per task, and on τ²-Bench they reached 75.8% task success (agent: 80.6%) while running in 1.3s instead of 170s. Three rounds of repair on training failures lifted k=2 workflows from 66.7% to 81.2%, and on eight SOP-Bench procedures repair from labeled training failures raised ReTrace from 80.6% to 87.8% at 0.40s per task, compared to 85.5% in 46.6s for the agent. Papers https://huggingface.co/papers ReTrace: Distilling Tool-Using Agents into Planner-Free Workflows Abstract ReTrace converts natural-language SOPs and logged LLM agent runs into reusable code-driven workflows that cut cost and latency while maintaining competitive task success. deepseek-ai/DeepSeek-V4.1-Flash https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash Business process automation runs the same Standard Operating Procedure SOP again and again on new inputs. Large Language Model LLM