Skip to content

AI Compass / Knowledge cards

Self-improving loop with locked checks

Checked Automation Prompting

In March 2026, Andrej Karpathy showed with AutoResearch how an agent runs experiments on its own overnight: change code, measure, keep improvements, discard the rest. According to the README, the file with the evaluation stays unchanged, and the agent edits only a single file. AI LABS transfers this to Claude Code. The checks, that is, the check rules, are locked, and only the working instructions may change. Otherwise what often happens with optimisers happens: the agent improves the measurement instead of the result.

What it is for

A recurring task gets better with every round without you sitting next to it. The yardstick stays yours.

Steps

  1. Check whether the task fits. According to the video, four conditions must hold: the task comes up often, your quota is sufficient, the result is clearly measurable, and the agent can run it itself. Only one feature per loop, never a whole app.
  2. Capture the project knowledge in a skill so that every run starts from the same state. In the video it is called project-context.
  3. Have the checks written and go through them with the agent until you approve each one.
  4. Move the checks into a folder of their own, lock changes there and commit everything. In Claude Code, the lock works with a deny rule in the settings, for example "deny": ["Edit(/checks/**)"]. The syntax comes from the docs, not from the video.
  5. A build agent with fresh context works with two files: a results file and the working instructions program.md.
  6. After each round, the self-improvement may only rewrite the “How to work” section in program.md, never the checks.
  7. Set a budget or round limit (my own assessment). At the end, check what the checks do not cover: in the video, all 11 checks were green, yet the order form had not been tested at all.

Limits

Sources

Status

Checked 17 October 2026 · Maturity new (pattern available, basis AutoResearch is public; results in the video only from the creator)

Want to try this with your team? That’s what the AI Lab is for. See the AI Lab