Prompt Kit

Auto-Improving Agents — v2 editorial revision Prompt Kit

Markdown

Prompt Kit: Auto-Improving Agents and the Hard Takeoffs Nobody's Watching

This kit doesn't teach you what auto-improvement is — the article does that. These three prompts get you to the point where you could hand a problem to a meta-agent by forcing you through the prerequisite work most teams skip: defining what "better" means concretely, stress-testing that definition against gaming, and auditing whether your infrastructure can actually support the loop.

How to use this kit

Run these in order if you're starting from scratch. Prompt 1 defines your optimization target. Prompt 2 attacks the metric you just defined. Prompt 3 checks whether your current infrastructure can support the loop. Each prompt produces artifacts that feed the next one.

Run them individually if you already have pieces in place. Already have a metric? Skip to Prompt 2. Already deploying agents with logging? Start with Prompt 3 to see what's missing. Each prompt stands alone.

Best run in a thinking-capable model like ChatGPT, Claude, or Gemini — these require sustained multi-turn reasoning where the AI needs to push back on vague answers, and thinking models are better at holding you to a standard across a long conversation.

Be honest with the prompts. They're designed to tell you "you're not ready yet" if you're not. That's the useful answer. A premature "you're good to go" wastes far more time and money than an honest "here's what's blocking you."


Prompt 1: The Karpathy Triplet Diagnostic

Job: Walks you through defining the three prerequisites for auto-improvement on a specific system you name — the editable surface, the metric, and the time budget — and refuses to let you proceed until each is concrete and scorable.

When to use: When you have a system you suspect could benefit from automated optimization but haven't yet defined what "better" means precisely enough to hand it to a machine. This is your first step regardless of role.

What you'll get: Either a draft program.md-style specification ready to hand to an optimization loop, or a specific list of what's blocking you with concrete next steps to resolve each blocker.

What the AI will ask you: The system you want to optimize, how it works today, what success currently looks like, what you can isolate for experimentation, how you measure outcomes now, and what a five-minute experiment would look like in your domain.


Prompt 2: The Metric-Gaming Pre-Mortem

Job: Takes a metric you've defined (from Prompt 1 or your own work) and adversarially generates every way an autonomous agent could inflate that metric without delivering real business value.

When to use: After you've defined what you want to optimize, before you let any automated loop run against it. This is the "looks identical to actually improving, right up until the moment it doesn't" check.

What you'll get: A categorized attack surface of gaming vectors, a set of holdout scenarios and secondary metrics that would catch each one, and a concrete evaluation diversity plan you can implement alongside your primary metric.

What the AI will ask you: Your primary optimization metric, what business outcome it's supposed to represent, how it's computed, what data it touches, and what your current eval suite looks like.


Prompt 3: The Trace Infrastructure Audit

Job: Evaluates what reasoning trace infrastructure you currently have (or don't have) on your agent deployments and tells you exactly what's missing before auto-improvement would work.

When to use: When you're deploying agents now (or planning to) and want to know whether your logging, tracing, and observability would give a meta-agent enough signal to make targeted improvements — not random mutations.

What you'll get: A gap assessment with every missing trace component listed, rated by severity, with specific build-or-buy recommendations for each gap.

What the AI will ask you: What agents you're running, what gets logged today, how traces are stored and accessed, whether you capture reasoning chains or just outcomes, and what tools you're using for observability.