Agent Behavior as Code: Efficient and Robust LLM Agents with Programmatic Specifications
PLPeng Qi, Chunliang Lyu, Gang Li, Fabian Chan, Cheng Chang, Ignacio Cases, Will Lu
PLPeng Qi, Chunliang Lyu, Gang Li, Fabian Chan, Cheng Chang, Ignacio Cases, Will Lu
+1
ABCAgent specifies an LLM agent's runtime behavior as a symbolic program (e.g., Python with neural functions), edited by the model for flexibility, ensuring deterministic execution without premature variable binding. On benchmarks including GAIA, GSM-Symbolic, tau2-bench, and WorkArena, it matches neural agents in accuracy while improving robustness (e.g., 71.9% vs. 47.4% Pass^4 on tau2-telecom), generalization to task variants, and efficiency with up to 7x lower cost. A derived program solves 92.6% of GSM-Symbolic and 20.1% of augmented GAIA variants without new authoring.

arXiv ·
· October 4, 2026