Researchers Make Skill Granularity a Runtime Decision for Coding Agents
Fixed macro execution works only when the skill matches the task; making granularity adaptive turns brittle agent failures into recoverable ones. Developers building coding agents can apply the macro-to-micro fallback pattern to improve reliability without hand-tuning heuristics. The learned router beating a hand-written heuristic on the 12-task study shows the approach scales beyond scripted workflows.
Researchers propose treating skill granularity as a runtime decision for coding agents rather than a fixed design choice. For each task, the agent can use primitive tool calls, a macro skill, or a macro skill that falls back to primitive steps on failure. A controller selects the granularity based on task structure, execution state and earlier macro failures, while a finite-state executor handles fallback as an explicit transition. In a 12-task routing study, a learned router reached 100% success where a hand-written heuristic failed.
Nice work on using skills more effectively for coding agents.
(bookmark it)
In this work, researchers treat skill granularity as a runtime decision. For each task, the agent can use primitive tool calls, a macro skill, or a macro skill that falls back to primitive steps when it fails.
Fixed macro execution is efficient when the skill fits and brittle when it does not.
The controller picks the level from task structure, execution state, and earlier macro failures, and a finite-state executor handles the fallback as an explicit transition instead of an informal retry.
In a 12-task routing study, a learned router reaches 100% success where a hand-written heuristic fails. With macro-to-micro fallback, the agent recovers controlled macro failures that fixed granularity leaves unresolved.
https://t.co/Ze4OjNcK5S
Chat with Paper: https://t.co/yfLayeF1pT