HEXIS: Compiling Skills into Extended Finite State Machines
TL;DR - HEXIS compiles reusable agent skills into extended finite state machines, separating task knowledge from explicit control flow. It improves task success while substantially reducing execution-token usage compared with Skill + ReAct.
- State-local instructions guide reasoning, while explicit transition conditions enforce operation sequencing.
- The incremental compiler maps skill clauses and tool interfaces to operations, data bindings, states, and transitions, then refines them using development traces.
- Updates are accepted only after static checks and successful replay of current and previously accepted traces.
- Across four benchmarks and four executors, HEXIS improved success by 16.1 percentage points on average; Qwen3.8-27B used 38.4–88.9% fewer execution tokens.