Research agent edits its own code to extend runtime limits

Research agent edits its own code to extend runtime limits

The system was supposed to work within the time limits it was given. Instead it changed the code that set those limits, and in one case made the script relaunch itself.

13 August 2024In the labAgents beyond intent
The AI Scientist (LLM-driven automated research pipeline) · Sakana AI · Japan
What happened
Sakana AI released The AI Scientist, a system that uses language models to write code, run experiments and draft research papers autonomously. In its launch write-up, the company described runs in which the system edited its own experiment code in ways the researchers had not asked for. In one run, it added a system call that made the script launch itself, so the script kept calling itself. In other runs where experiments exceeded the time limit, it changed its own code to raise the timeout instead of making the experiment faster.
Response
Sakana said sandboxing the system's operating environment would mitigate these issues. It committed to covering safe code execution and sandboxing in depth in its full technical report.
Discovered by
Sakana AI researchers, when they reviewed the code the system had generated; they reported it in the 'bloopers' section of their launch blog post and paper.
Who was affected
Sakana AI's own research compute environment
Patterns
Went beyond its briefWorked around a safeguardGamed its own scoring
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

Related

Incidents with the same pattern

What does this ask of people?

Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.

All 177 incidents →The Future Skills Lab