跳到正文
arXiv cs.AI· Xu Li, Simon Yu, Minzhou Pan, Yiyou Sun, Zhaorun Chen, Bo Li, Weiyan Shi·· 13 小时前AI 评分58

Back Up Before You Regret:测量编码智能体的备份意识并自动化备份

Back Up Before You Regret: Measuring Backup Awareness and Automating Backup in Coding Agents

AI 导读

论文提出 RegretBench,一个包含 205 个可执行任务的基准,用于评估编码智能体是否会识别即将修改的状态并提前备份。六个前沿模型的智能体平均完成 86.1% 的任务,但仅 15.2% 在关键时刻前做了备份,说明任务完成能力不等于备份意识。

正文 · 原文

View PDF HTML (experimental)

Abstract:Coding agents now complete tasks autonomously, modifying real-world state such as artifacts, software environments, and configurations along the way. Yet they show limited backup awareness: recognizing that an action will modify state that may later be needed, and preserving it beforehand. To evaluate backup awareness, we introduce RegretBench, a benchmark of 205 executable tasks grounded in regret moments reported on platforms such as this http URL, GitHub, and Stack Overflow, where users explicitly regretted not preserving state they later needed. Across six frontier models, agents complete 86.1% of tasks on average yet back up before these moments in only 15.2%, showing that task completion ability does not imply backup awareness. Because it is hard to predict which changes will be regretted, we propose BackUpper, a harness plug-in backup layer that checks every tool call and preserves affected state before modification. It combines rule-based strategies for common operations with a lightweight subagent for complex cases, and its rule table can expand with subagent decisions over time. On RegretBench, BackUpper covers every regret moment action and restores states with 92.2% average similarity to the original. Achieving this costs only $0.014 per task, with 7x fewer tokens than the main-agent self-backup baseline. When users have preferences on what to back up, BackUpper can also narrow its scope accordingly, matching human annotations on whether an action is worth preserving with an 84.5% F1 score. These results suggest that agents can keep actions reversible at low cost while respecting users' preferences.
Subjects: Artificial Intelligence (cs.AI); Software Engineering (cs.SE)
Cite as: arXiv:2610.28934 [cs.AI]
  (or arXiv:2610.28934v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.28934

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Xu Li [view email]
[v1] Tue, 20 Oct 2026 21:13:31 UTC (2,585 KB)

来源:arXiv cs.AI · arxiv.org