Skip to content
All writing

AutoResearch, the loop I use to refine almost everything

Andrej Karpathy described an idea last year that stuck with me. The shape is simple. You have a thing you want to improve. You write an evaluator that scores any version of that thing. You let an LLM propose edits. You score the result. If the new score beats the old, you keep the edit. If not, you revert. Loop until the score stops moving.

That's it. The whole framework is twenty lines of Python around an Anthropic SDK call.

But the leverage is enormous. Anywhere I have a thing I can score, I can now refine it without doing the refining work by hand.

old: spend an afternoon iterating on a workout, end up with my-best-guess v3
new: write the evaluator once, let the loop run, get my-best-guess v17 by dinner

The framework

Four iterations per run by default. Fourteen rules in the scoring rubric. 150 points total. Each iteration the LLM gets the current version plus the rubric, proposes an edit, and gets re-scored. The scaffolding logs every iteration so I can see why the final version is shaped the way it is.

I tested it against a Murph prep program. Twelve weeks of conditioning and strength work leading up to the May workout. The v4 output scored 150 of 150 on the rubric I'd written. That's not me grading my own homework, that's a deterministic evaluator I'd locked in before the run started.

Where I actually use it

Workout programming. This is the primary use. EDSO (our rules-based programming engine) generates a base program. AutoResearch refines it against tier-specific rubrics, athlete profiles, recovery windows. The base program is correct. The refined program is good.

Competitive audits. Drop in three competitor websites and a rubric of what makes a positioning page work. The loop produces an audit that's sharper than what I'd write by hand because I'm not anchored on what the first competitor did well.

Site selection for retail. Given a list of candidate locations and a rubric (foot traffic, demographic match, lease terms, proximity to anchor tenants), the loop ranks them and explains the reasoning per criterion.

License and permit analysis. Different domains: business licensing, contractor licensing, hospital readmission risk, property tax appeal, court litigation risk, traffic accident discovery. Each one is a separate AutoResearch project. Same loop, different rubric.

Anything I'd otherwise iterate on by hand. A grant proposal, a client pitch, a system prompt for an agent, a workout I want to A/B against my own intuition.

What makes the rubric work

The whole framework lives or dies on the quality of the evaluator. Three things matter.

The rubric has to be deterministic. "Is this good?" doesn't work. "Does this program prescribe a deload at week 4, 8, 12, and 18?" works. Every rule should have a yes/no answer the LLM can check.

Each rule needs a weight. Some rules are foundation, others are nice-to-have. The 150-point allocation forces me to commit to what actually matters before the loop runs.

The rubric is the spec. Once you write the rubric you've defined what "good" means for that artifact. The loop just makes the cost of producing "good" close to zero.

What I learned writing the framework

The bottleneck shifts upstream. When the implementation cost of refining something drops to zero, the question becomes "do I know what I'm trying to optimize for." Which is, of course, the question I should have been asking the whole time.

Most things I refine by hand have an implicit rubric. Writing it down explicitly is uncomfortable because it makes my taste legible. It's also the most useful thing I've done for my own thinking this year.

Karpathy was right. This pattern generalizes to anything you can score. The cost of writing the evaluator is paid once. The benefit compounds every time you run the loop.

If you have an artifact you keep refining by hand, a workout, a doc, a pitch, a system prompt, talk to me. Autosterea wires this loop into your workflow so the refining stops being your weekend.

First published on ravikantdewangan.com.

Tell us what eats your week.

A free 20-minute call. We'll show you what we would take off your plate.

Book a call