Perdura: The Model Decides, the Runtime Keeps State
Language-model agents work inside a harness, the loop that builds the model's context and executes its actions. As models grow stronger, how much should the harness still do? Today it keeps a transcript, a record of what happened, and leaves the model to work out at every step what holds now. We argue for a division of labor: the model decides, and the harness keeps the state of the task. The division holds for any task when actions are code, as in CodeAct: the state they create is the state of a running program. Perdura is a CodeAct harness whose runtime keeps this state and shows the model a projection of it. Against four widely used harnesses, Perdura lies on the score-cost Pareto frontier in seven of eight model-benchmark settings. Without its state mechanisms, a strong model holds its score within run-to-run variation at 11-38% higher cost, and a runtime killed mid-task resumes from its stored state.
Authors
- Kaichen Huang
- Zhiyu Yang
- Bo An
- Hanqing Wang
- Shuo Wang
- Haoyu Wang
- Zhen Wang
Institutions
- The University of Texas at Dallas (US)
- Nanyang Technological University (SG)
- Shanghai University of Finance and Economics (CN)
- Nanjing University (CN)
- Tsinghua University (CN)
Publication Details
- Journal
- arXiv
- Published
- 2026-12-03
- Primary Topic
- Software Engineering Research
- Type
- preprint