Pranav

Projects

I gave agent improvement a training loop.

Improving an agent or a rule set is usually tweak, run, look, repeat, with no record of what was tried and no clean way back. AutoPilot turns that into a forward pass, a loss, a backward pass and a step, with checkpoints and rollback.

Stack
Python
Status
Public prototype
Year
2026

The idea

The system being improved is a module, and what it may change (a prompt file, a config, source code) are its parameters. An evaluator scores a batch of runs and writes structured feedback into each parameter, where a model would keep its gradient. An optimizer reads that feedback and edits the parameter. The optimizer can be a deterministic rule or a coding agent such as Claude Code.

The improvement loop
Film

Run. Candidate 1 runs forward; the loss gathers feedback.

Fig. 1A schematic run of AutoPilot: two candidate changes, one kept and one rolled back.

What I designed in

A change is accepted only when a policy gate passes. Otherwise the experiment rolls back to the last accepted epoch, restored from content-addressed snapshots. Every command that changes state must give a reason, and the reason is written to an append-only journal next to the decision it explains.

How far it goes

It is a public prototype with tests, a command-line interface and three runnable examples: regex rules tuned with no model calls, a prompt tuned by an agent, and a trainer over several modules. I have not published benchmark or production results from it. The code and examples are in the repository linked below.

Why a framework

Loops such as Karpathy’s autoresearch show that keeping improvements and discarding regressions works, but they leave the rules for keeping, logging and reverting in a prompt. AutoPilot puts those rules in typed code, where they can be tested.