HerAgent: A Block-Level Checkpointing Harness for Coding-Agent Environment Setup
Xiang Li, Siyu Lu, Federica Sarro, Claire Le Goues, He Ye
Abstract
Modern coding agents rely on establishing executable software environments before they can perform software engineering tasks such as testing, debugging, and patch validation. Existing setup agents typically control progress at either single-command or whole-script granularity, making recovery either too local to remove polluted state or too coarse to preserve useful progress. We present HerAgent (Harness EnviRonment Setup Agent), a block-level harness for coding-agent environment setup. HerAgent's main contribution is semantic setup blocks: a single progress-control abstraction used for execution, validation, checkpointing, repair, and rollback. Evaluated against six prior agents on four environment-setup datasets, HerAgent improves setup success in every comparison, achieving the largest gains on Installamatic-Bench (52.0% to 85.0%) and SetupBench (46.3% to 70.4%). It also reduces setup costs by up to 94.5%, showing that block-level progress control improves reliability and efficiency.
Create a lesson
Related papers
Reliable Mining of Heterogeneous AI Coding-Agent Data: Context-Aware Prediction and Resource-Aware Ranking
Shared title terminology · Haoran Yu, Lifei Liu, Danping Zhang
GHAgentCI: A Dataset of Coding-Agent Invocations in CI Workflow Histories
Shared title terminology · Daniel Ogenrwot, Jorge Gonzalo Delgado Cervantes, Woojoong Kim et al.
Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Shared title terminology · Sandeep Dhuri
How developers split roles among them and a coding agent and what "collaboration" means
Shared title terminology · Linus Ververs, Helya Dadkhah, Lutz Prechelt
SWE-Recreation: Benchmarking Coding Agents for Software Recreation
Shared title terminology · Zhiyao Xu, Zhanjie Ding, Hongyao Yu et al.
Characterizing and Detecting Unfaithful Work Reports by Coding Agents
Shared title terminology · Wenhao Yang, Runzhi He, Minghui Zhou et al.