AI Trends

Northeastern University Study Finds Coding Agents Rarely Back Up State Before Modifying It

Rohan PaulUpdated Nov 28 09:49

AI summary

A Northeastern University paper finds that although coding agents can complete 86.1% of tasks, they save the original state before only 15.2% of potential data-loss points. The researchers built RegretBench, comprising 205 real-world case tasks, and proposed BackUpper, which inspects every tool call, changes rm operations into moves to the trash, and delegates complex cases to a small sub-agent. BackUpper covered all risk points and restored states to 92.2% similarity at an additional cost of $0.014 per task.

Why read this

SelectedAI score 78

The study quantifies coding agents' lack of backups before destructive operations and proposes a low-cost recovery solution at the tool-calling layer.

Topics

Tags

Body

New Northeastern University paper finds coding agents rarely back up what they change. That agents complete 86.1% of tasks but save the state they are about to destroy in only 15.2%.

Agents now upgrade packages, edit databases, and delete emails outside their working folder. Built-in harness backups cover only the workspace, so when users later need the old state, it is gone.

They built RegretBench, 205 tasks based on real cases where people regretted losing data. BackUpper, their fix, checks every tool call, turns rm into a move to trash, and sends harder cases to a small subagent.

Across 6 frontier models, agents completed 86.1% of tasks but backed up before the regret moment in only 15.2%. BackUpper covered every regret moment and restored state to 92.2% similarity, at $0.014 extra per task.

If your agent touches anything outside its workspace, add backups at the tool-call level instead of trusting the model to remember.

Source

Rohan Paul