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

Institutions

Publication Details

Journal
arXiv
Published
2026-12-03
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Perdura: The Model Decides, the Runtime Keeps State

Kaichen Huang, Zhiyu Yang, Bo An, Hanqing Wang et al.
arXiv
Software Engineering Research
preprint

Perdura: The Model Decides, the Runtime Keeps State

Kaichen Huang, Zhiyu Yang, Bo An, Hanqing Wang, Shuo Wang, Haoyu Wang, Zhen Wang
preprint en

Abstract

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.

arXiv
The University of Texas at Dallas (US), Nanyang Technological University (SG), Shanghai University of Finance and Economics (CN), Nanjing University (CN), Tsinghua University (CN)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon