FlashScript: Compiling Recurring Agent Workflows into Reusable Neuro-Symbolic Programs
On the map: LLM agents and tool use → Agent skill learning and evolution also fits: Software engineering coding agents
Abstract (arXiv)
Many agent tasks recur with new data or small changes, yet agents regenerate their reasoning and actions on each run, producing different results. Distilling a prior run into a skill helps the agent avoid earlier mistakes, but it still re-runs the full process each time, so runs can vary and incur that cost. We compile a successful agent run into a reusable neuro-symbolic program (NSP) with a set of guidelines we call FlashScript. Actions and data transformations become code, instance-specific values become parameters, and decisions that need model judgment become LLM calls. We identify three layers where these calls belong and three techniques that replace most of them with code. The compilation does not remove nondeterminism; it localizes it, so the deterministic program and its neural calls can be reviewed and tested separately. Across 120 WorkBench analytics tasks with Claude Haiku 4.5, the NSPs were correct and made identical tool calls on every run, using about 70 times fewer input tokens and a third of the runtime of a skill-guided agent whose runs were inconsistent. In a composite version of the tasks, the skill-guided agent's accuracy fell to 23%, and its output inconsistency increased, while the NSPs remained correct and identical across all runs. The NSPs successfully generalized to all 108 unseen instances of the same templates. Our findings suggest that NSPs from agent trajectories can be considered cumulative software assets for end-users to test, maintain, and reuse in their recurring workflows.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent skill learning and evolution, one of 16 directions in LLM agents and tool use. Builds on 24 of its 41 references that are in the map. Submitted 24 Oct 2026.
Builds on
24 of 41 references.
Closest ancestors · 1
Same direction, newest first
Other references · 23
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,131
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 1,067
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 1,000
- 2022PAL: Program-aided Language Modelscited by 685
- 2023ViperGPT: Visual Inference via Python Execution for Reasoningcited by 678
- 2022Visual Programming: Compositional visual reasoning without trainingcited by 579
- 2024Agent Workflow Memorycited by 482
- 2023Efficient Guided Generation for Large Language Modelscited by 244
- 2022Binding Language Models in Symbolic Languagescited by 234
- 2023An LLM Compiler for Parallel Function Callingcited by 217
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 116
- 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 99
11 more
- 2024AutoGuide: Automated Generation and Selection of Context-Aware Guidelines for Large Language Model Agentscited by 90
- 2024WorkBench: a Benchmark Dataset for Agents in a Realistic Workplace Settingcited by 65
- 2026JEV-as-a-Judge: Accept When Confident, Escalate When Unsurecited by 65
- 2024Semantic Operators: A Declarative Model for Rich, AI-based Data Processingcited by 39
- 2026PreAct: Computer-Using Agents that Get Faster on Repeated Taskscited by 8
- 2026SKILL-DISCO: Distilling and Compiling Agent Traces into Reusable Procedural Skillscited by 8
- 2026TraceCompiler: Skill-Guided Mining and Compilation of LLM Agent Traces into Mostly Deterministic Workflowscited by 8
- 2026When Agents Disagree With Themselves: Behavioral Consistency as an Uncertainty Signal for LLM Agentscited by 5
- 2026InconLens: Interactive Visual Diagnosis of Behavioral Inconsistencies in LLM-based Agentic Systemscited by 2
- 2025A Roadmap for Tamed Interactions with Large Language Modelscited by 1
- 2025Specification and Detection of LLM Code Smellscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Neuro-Symbolic Computer Use: Learning Reusable Policies for Reliable and Efficient Execution
- 2026Compile Away Uncertainty: Self-Evolving Agent Skills via Programmatic Compilation
- 2026Auto: The AGI Compiler
- 2026SkillZip: Evaluation-Free Skill Compression for Self-Evolving Agents by Discovering Reusable Structure
- 2026AgentFactory: A Self-Evolving Framework Through Executable Subagent Accumulation and Reuse
- 2026SkillSmith: Compiling Agent Skills into Boundary-Guided Runtime Interfaces
- 2026Subagents vs Agent Skills: Executing Reusable Knowledge for Long-Horizon Agentic Tasks
- 2026Dynamic Agent Skills: A Lifecycle Survey and Taxonomy of Evolving Skill Libraries