HEXIS: Compiling Agent Skills into Extended Finite State Machines
Minghao LI
Key points
From the paper's conclusion- To improve agent compliance for skills, we introduce HEXIS, which compiles agent skills into extended finite state machines (FSM) that separate knowledge from control flow.
Abstract
Agent skills provide instructions and reusable knowledge, yet agents have to frequently infer which action to take next. This skill's execution paradigm combines task reasoning with control decisions, which could cause the agent to act improperly or omit necessary steps. To improve agent compliance for skills, we introduce HEXIS, which compiles agent skills into extended finite state machines (FSM) that separate knowledge from control flow. Skill knowledge is incorporated into local instructions that guide reasoning and generation within states. The machine records execution progress and intermediate results, while explicit transition conditions determine subsequent operations. Our incremental compiler first maps skill clauses and tool interfaces to state operations, local instructions, data bindings, and transitions. It then aligns development traces with existing states to identify missing operations and dependencies. These are incorporated by adding or reusing states and refining their connections. Updates are accepted only after static checks and replay of the current and all previously accepted traces. Across four benchmarks and four executors, HEXIS improves success over Skill + ReAct by 16.2 percentage points on average. Qwen3.8-27B reduces execution tokens by 38.4-88.9% across benchmarks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- HEXIS: Compiling Skills into Extended Finite State MachinesarXiv · 2026
- Where Natural Language Ends in Agents: Executable Skill Composition with MetaSkillarXiv · 2026
- Think with Skills: Pseudocode Planning Before Execution for Advanced ReasonersarXiv · 2026
- SMO: Compiling Natural Language Skills into Graphs of Reusable State-Move-Outcome BricksarXiv · 2026
- MultiEvoSkill: Structure-Aware Multi-Agent Skill Evolution for Generalizable Skill ArtifactsarXiv · 2026
- SPEM: Structure-Aware Procedural Memory for Efficient Skill Use in LLM AgentsarXiv · 2026