ARFA routes coding agents between models by checking command outcomes
A new arXiv paper proposes recording what a terminal command should do, then using the gap between expectation and result to pick which model handles the next reasoning step.
In plain words
Agents that work in a terminal often cannot tell whether a command actually did what they intended. ARFA writes down the expected result before each command and scores how far reality deviates from it. That score decides whether a faster or slower language model handles the next step, saving time while keeping task success close to a slower-only setup.
What was announced
The authors evaluate ARFA against five other routing policies across two model pairs, using 100 InterCode NL2Bash tasks set aside for routing tests. Against a setup that always calls the slower model, ARFA cut average wall-clock time per attempt by 21.5% with Gemma and 14.4% with Qwen. Task success stayed comparable: the Gemma pairing solved 37 tasks versus 28, and the Qwen pairing solved 42 versus 41, according to the paper.
The reported gains depend on the comparison baseline. Against learned routing that sees only observations, the Gemma configuration solved more tasks but needed more time, while Qwen gained one extra solved task at a nearly identical average time. The authors also note that fewer slow-model calls do not automatically lower mean task time, and that in one ablation a structured handoff beat a bounded visible history on time and tokens while solving 28 versus 29 tasks.
What it does not show
- The evidence is the paper's abstract only; full methods, task details and peer review status are not available.
- Results come from 100 InterCode NL2Bash routing tasks and two model pairs, so they may not transfer to other agents, models or environments.
- The abstract reports the authors' own measurements; no independent replication is cited.
Sources
Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 4 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.