AutoAgent: Self-Optimizing AI Agents
- Source
- x.com
- Publisher
- Kevin Gu
- Author
- Kevin Gu
- Date

Context
AutoAgent turns changes to an agent's operating software into scored experiments. Kevin Gu's release account separates the agent doing a task from another agent that revises its prompts, tools and coordination logic after examining failures.
The repository defines an editable and a fixed adapter. A person supplies the research direction and evaluation tasks; the optimizing agent proposes changes, runs the tests, and keeps or discards changes according to the score. This moves repetitive implementation experiments into an automated loop while leaving the definition of success in the evaluation supplied by the builder.
- The is deliberately bare: the task agent starts with nothing but a bash tool, and the meta-agent spins up thousands of parallel sandboxes to edit the harness, run tasks, read the failure traces, keep what improved and revert what did not.
- The tricks the meta-agent invented on its own read like senior engineering habits: spot-check single tasks instead of the whole suite, build deterministic self-checks with a separate turn budget for verification, write per-task unit tests, dump overflowing output to files.
- Meta-agents overfit by inserting rubric-specific prompting so the task agent can game the metric. The guard is forced self-reflection: 'if this exact task disappeared, would this still be a worthwhile harness improvement?'
- Meta-agent quality propagates downward, because harness edits are inspired by the meta-agent's own tooling. Codex made a poor meta-agent — it ignored the never to stop improving, and the task agents it produced gave up too early.
- Harness — The software that sends a model its context, recognizes tool calls, runs or refuses them, returns results and keeps the record.
- eval — A repeatable test for AI quality — a set of tasks plus scoring — used the way software teams use test suites, because model output is too variable to judge by eyeballing.
- Setup — The combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.
- Instruction — A statement in the context that tells the model how to behave or what to do; module 3's first layer.
“every other entry on those leaderboards was hand-engineered. ours wasn't.”
“we discovered agents are better at understanding agents than we are”
“being good at a domain and being good at improving at that domain are different capabilities”
“no team can hand-tune hundreds of harnesses. a meta-agent can”

