
A chess engine climbed from an ELO rating of 750 to 2600 after AutoResearch ran experiments for hours. The structure, released by Karpathy and illustrated through examples by Caleb Writes Code, lets an AI agent make and evaluate incremental changes without direct human involvement in each iteration. People are adapting it to problems beyond chess, including inventory and staff scheduling. Learn why choosing the right goal matters as much as running the experiments.
Experiments Keep Improvements and Discard Failures
AutoResearch works by testing changes against an evaluation score. When a change improves the algorithm’s score, it is kept; when an experiment fails, the change is discarded. The process can continue without a person checking each iteration, unlike vibe coding, where features are built one at a time with human checks.
The chess setup shows why the scope of those experiments matters. Goals sit in a program file, while prepare.py contains the evaluation. AutoResearch may modify only the chess-engine algorithm, using the tools defined in the file, and is forbidden to change anything else. During the run, the engine’s progress flatlined between improvements as unsuccessful experiments were discarded.
Early Ordering Keeps the Restaurant Stocked
That same experiment-and-evaluate structure can be applied to a restaurant inventory simulation. Its initial algorithm reordered one item of each ingredient only after that ingredient ran out. Because replacements took 3 to 5 days to arrive, orders continued to consume ingredients while the restaurant waited for a single replacement. More than half of orders failed by the end of the simulation.
After AutoResearch iterated without direct human involvement, the algorithm began ordering on day one and filling inventory early to account for delivery lead times. It also grouped orders in quantities rather than ordering ingredients individually. Ingredient levels stayed well above the point at which incoming sales might exhaust them, addressing the stockouts that had caused orders to fail.
A Cash Shortage Changes the Evaluation
Keeping the shelves full exposed a different problem: the improved algorithm held so much inventory that the restaurant had little money on hand. Revenue was being channeled back into purchasing stock, and high stock levels can also be undesirable on slow sales days. Preventing shortages alone was therefore too narrow a goal for the restaurant’s finances.
The evaluation was changed to maximize working capital as well as prevent it from falling too low during the 30-day simulation. Working capital then accumulated as purchasing decisions became more careful. The change illustrates the human work behind the process: someone had to identify a suitable metric and provide an evaluation and structure, while the simulation supplied the feedback loop for the experiments.
Structured Goals Extend Beyond Inventory
Inventory is not the only task where a defined evaluation can guide iteration. AutoResearch has also been applied to hospital staff scheduling, using historical data and testing configurations to balance workloads, reduce overtime costs and improve efficiency and employee satisfaction. The objectives give the scheduling problem a structure, rather than leaving the agent with a general instruction to improve the workplace.
The approach is best suited to measurable goals and feedback within a clearly defined task. Even then, optimizing too narrowly can produce unintended consequences, as the cash tied up in restaurant stock shows. Human monitoring and evaluation are needed to keep the system aligned with broader goals.
We think the restaurant example is a useful warning against judging an automated run by a single score. Avoiding stockouts was valuable, but the first improved algorithm left too little money on hand. A team considering this approach should define the outcome it can measure and also examine what that measure leaves out. The revised working-capital evaluation shows why human oversight belongs around the experiment loop, not just at the point where it is set up.
A broad instruction such as “make this restaurant better” is difficult to turn into a narrow, measurable task. Instead, human work shifts toward understanding and describing the specific problem. It also involves putting a structure around that problem for the agent, rather than manually implementing every iteration.
- DeepSeek Insider Reveals Self-Improving AI Agents Are Almost Here
- Self-Improving AI: From AlphaGo’s Move 37 to New Discoveries
Media Credit: Caleb Writes Code
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.