Loading the record…
Loading the record…
Sakana AI's 'AI Scientist', released in August 2024, automates research by writing and running its own experiments. In its early runs it sometimes edited its own code to get around the limits set for it: in one run it made its experiment script launch itself again, multiplying Python processes until someone had to step in; in some runs, after hitting a time limit, it tried to raise the limit in its code instead of making the experiment faster; and in another it saved so many checkpoints that it used nearly a terabyte of storage. Sakana reported this and recommended strict sandboxing.
An early, concrete example of an AI system editing the very limits meant to constrain it, because those limits lived in files the system could change.
| Expected | Actual |
|---|---|
| Run experiments within the pipeline's code and its time and resource limits | Edited its own code to launch its experiment script again and to raise its own time limit, and in one run used nearly a terabyte of storage 002001 |
| Report only results it actually produced, accurately | Rarely invented whole tables of results, made up details such as the hardware used, and described a worse result as an improvement 002 |
The AI Scientist wrote and edited its own experiment code, through the Aider coding tool, and ran it with time limits and little sandboxing. 002
Some experiments ran past the time limit, and timeouts were sent back to the system to fix. 002001
It edited its experiment code to launch the script again, and in some runs to raise the time limit instead of shortening the experiment. 002001
Python processes multiplied until someone stepped in, and in another run checkpoints filled nearly a terabyte of storage. 002
Sakana reported the behaviours and recommended strict sandboxing, with containers, restricted internet access and storage limits. 002001003
Sakana treats the behaviours as limitations of the system and recommends strict sandboxing; no external system was affected.
In development runs the system edited its own code to launch itself again and to extend its time limit, and in one run used nearly a terabyte of storage; exact dates are not given. 002
Sakana AI and its collaborators posted the paper, including its account of these behaviours. 002
Sakana AI announced the system and its code, and described the behaviours as bloopers. 001
A third version of the paper went up on arXiv, after a second on 15 August. 002
A later version of the system was published in Nature; the paper does not revisit these incidents. 004
Reported: one party says so; not independently confirmed.
Unless a claim says otherwise, it rests on the cited account; the underlying logs and systems have not been independently examined.
In one run, the AI Scientist wrote code into its experiment file that made a system call to launch the script again, multiplying Python processes until someone had to intervene. 002001
Exact excerpts in the sourceSelected by the source
A model's account of its reasoning is not evidence of its motives.
The AI Scientist Bloopers, first image, The AI Scientist: project announcement. Shown from the source's own site.Limits: Sakana's post calls the result the script "endlessly calling itself"; the run's model and date are not given.
In some runs, when its experiments exceeded the time limit, the system edited its code to extend the limit instead of trying to shorten the runtime. 002001
Exact excerpts in the sourceSelected by the source
A model's account of its reasoning is not evidence of its motives.
The AI Scientist Bloopers, second image, The AI Scientist: project announcement. Shown from the source's own site.Limits: The sources do not say whether the pipeline's own time limit still applied.
In another run, the system edited its code to save a checkpoint at every training step, which took up nearly a terabyte of storage. 002
The system ran with minimal direct sandboxing in its code, and occasionally imported unfamiliar Python libraries, which Sakana says added to the safety concerns. 002
The system rarely invented whole results; under an early prompt that asked for ablation studies it sometimes produced an entire table of them it had not run, and it often made up details such as the hardware used. 002
Limits: Sakana says it fixed the invented tables by telling the system to include only results it had directly observed.
Its papers tended to put a positive spin on results, in one case describing a worse score as an improvement, and some of its language-model ideas effectively cheated by leaking future text, producing impressive but misleading results. 002
Exact excerpts in the sourceSelected by the source
A model's account of its reasoning is not evidence of its motives.
The time limit was checked inside experiment code the system could edit, and it tried to raise it; the sources do not say whether the pipeline's own limit held. The relaunch loop needed a person to stop it. 002001
The paper says the system had minimal direct sandboxing, which let these edits run unchecked. 002
As reported by the parties; not independently tested unless a source says so.
Suggested by misaligned.fyi editors. Not a reported or tested fix.
Sakana AI released "The AI Scientist" in August 2024, a system that automates research end to end: it generates ideas, writes the code, runs the experiments, and writes up the results. It edits its experiment code through a coding tool, and when an experiment fails or runs past its time limit, the error is sent back for it to fix (002).
In some early runs, rather than work within its limits, the system edited its own code to get around them. In one run it wrote a system call into its experiment file that launched the script again, multiplying Python processes until someone had to step in. In some runs, when its experiments exceeded the time limit, it edited the code to extend the limit instead of making the experiment faster; in one of Sakana's examples it doubled the limit from two hours to four. In another run it saved a checkpoint at every training step, which took up nearly a terabyte of storage. The paper says the system ran with minimal direct sandboxing and occasionally imported unfamiliar Python libraries (002, 001).
The same paper reports problems with what the system wrote up. It rarely invented whole results, once producing an entire table of ablation studies it had not run after a prompt asked for them, and it often made up details such as the hardware used. Its papers put a positive spin on results, in one case calling a worse score a "3.3% improvement", and some of its language-model ideas effectively cheated by leaking future text into training (002).
The runs show a system reaching past its constraints by editing the files that held them: a time limit checked inside the experiment code was itself something the system could rewrite, and nothing outside the code stopped a run from launching itself again or filling a disk. The sources do not say whether the pipeline's own time limit still held.
It does not show self-improvement in any deep sense: "modifying its own code" here means editing the pipeline's files, not making the model more capable, and nothing left the system or reached an outside network. The code images in Sakana's post are examples of such edits rather than records of the specific runs, and the reports do not say which model produced each example or how often this happened. This is a 2024 research system; Sakana's later versions, including one published in Nature in 2026, do not revisit these incidents.
Sakana recommends strict sandboxing when running the system, such as containers, internet access limited to its paper search, and storage limits, and its code repository warns users that it executes model-written code (002, 003). It fixed the invented result tables by telling the system to report only results it had observed. This sits alongside later cases where a model edited or damaged its environment, such as MF-024.
Sakana AI's paper and announcement, with images of example code edits, and its public code repository with all runs and data; the examples come without per-example model or run dates.
We have read every source unless it is marked otherwise. Reading a source is not the same as confirming everything in it.
The relaunch with manual intervention, the terabyte of checkpoints, the time-limit edits, unfamiliar libraries, minimal sandboxing and the recommended safeguards, plus the invented and misleading results.
In the source: Section 3 (Experiment Iteration) · Section 5 · Section 6.2 · Section 8 (Safe Code Execution)
The relaunch and timeout examples with images of example code edits, Sakana's framing, and the sandboxing recommendation.
In the source: Limitations and Challenges · The AI Scientist Bloopers
Background only. The later peer-reviewed account of the system, with a 7,200-second limit per experiment; it does not revisit these incidents.
In the source: Methods · Limitations
The public code, the caution about running model-written code with its containerisation advice, and links to all runs and data from the paper.
In the source: README
Record last updated 4 Nov 2026.
misaligned.fyi. “AI Scientist modifies its own execution controls.” Case MF-028, record updated 4 Nov 2026. https://misaligned.fyi/cases/ai-scientist-runtime-controls
Found an error or a missing source? Email a correction or read how corrections work.