What Is Delusional Prompting? How to Set Big Agent Goals
Delusional prompting means giving coding agents huge goals. Learn why it works, where it fails, and a council-of-judges prompt with a round limit.
For Engineering and Product Management

What is delusional prompting?
Delusional prompting means giving an AI coding agent a goal that feels unreasonably big, such as "make this 100x faster" instead of "make this faster." The idea went viral after engineer Lauren Tan posted that prompts should feel a little delusional. It works because a huge goal forces the agent to rethink the design instead of polishing the first slow thing it finds. It only works safely when something other than the agent decides whether the goal was met.
TL;DR
- Goal size changes behavior. "Make it faster" gets a quick 10 to 20% fix. "Keep going until you reach the performance floor" forces the agent to measure and rethink.
- Tan's examples included "delete half the code base without breaking anything" and "turn every bug we've ever fixed into a property test." These are goals you would never hand a human teammate.
- The bold goal is not what separates success from failure. What matters is whether an independent check decides when the goal is met.
- A safe version has a benchmark baseline on a production build, a council of judges on different models, a round limit, and an honest final report.
- In three real runs, the council caught bugs the agent introduced and numbers it overstated. One run correctly did not ship.
- Skip the technique when you can't measure the result, have no tests, are short on tokens, or the task is small and clear.
Why does a 100x goal beat "make it faster"?
Agents stop when they think they are done. If you say "make this faster," the agent finds the first slow thing, fixes it, gets maybe a 10 or 20% win, and reports success. From its point of view, that is success.
Say "keep going until you reach the performance floor," and a small tweak no longer satisfies the goal. The agent has to measure where the time actually goes. Is the library the problem? Can work move off the main thread? Can anything happen before the user even clicks? It has to question the design, not just the slowest line.
Addy Osmani, who quoted Tan's post, made a similar argument: the 10 to 100x version of your goal may be more reachable with today's models than it feels. A skill circulating for this technique, called "be delusional," puts the math plainly. Landing a third of the way to a 100x goal beats a 20% goal by an order of magnitude, as long as the target is locked to something that can't break and there is a real verification bar.
One reply under Tan's post joked that someone asked for CI to be 10x faster, got 8x, and felt betrayed. That 8x is a result you probably would not get by asking for "a bit faster."
Why does it work for some people and not others?
The replies to the original posts were mixed. Some people said it didn't work for them. Others pointed to token cost. The most useful replies were about verification:
- Keep the verification loop extremely tight, and the verification layer needs to be solid.
- "Delete half the codebase without breaking anything" is only as safe as what the tests can see. One person suggested breaking a few lines on purpose first, to confirm the test suite goes red.
- Another suggested keeping some tests hidden from the agent entirely.
The pattern is simple. Agents will happily claim success, and the numbers they report are usually their own. An ambitious goal needs a referee that is not the agent.
What does a safe delusional prompt look like?
Here is a template based on the prompt used in the three runs below. Swap in your own target and your own test commands.
Make [THING] as fast as possible and keep going until you reach the
performance floor.
Before you change anything, build a benchmark. Keep it in the repo and
record a baseline on a production build, cold and warm.
Keep the current behavior exactly the same.
After each round, run a council of three different models as judges.
Each judge reruns the benchmark itself, scores the work out of 10, and
lists what is still slow or broken. Keep going until every judge gives
a 9.5, for at most eight rounds, before you call anything done.
Run the type check, the unit tests, and the browser tests, and compare
any failure against the last clean commit.
At the end, report the best result you actually measured, even if you
missed the target, and tell me what you didn't verify.
Each line does a job:
| Line | Why it is there |
|---|---|
| "Goal is the floor" | Prevents the agent from stopping after the first easy win. |
| Baseline on a production build | In one run, the slow startup the agent worried about was mostly the development server. |
| Benchmark kept in the repo | Anyone can reproduce your numbers later. A benchmark that lived only in a temp folder drew public criticism. |
| "Keep behavior exactly the same" | This is the invariant that the big goal is locked to. |
| Three different models as judges | One model tends to like its own work. Different models disagree usefully. |
| Judges rerun the benchmark | The agent can't just quote its own numbers. |
| Compare failures to the last clean commit | Separates failures that were already there from failures you caused. |
| Maximum of eight rounds | Keeps the token bill under control. |
| "Report the best measured result" | Rewards honesty over a fake success. |
Panda Code, the app used in these runs, now has a council option built into its prompt bar. You set the target score, the maximum rounds, and the number of reviewers, and the lowest score counts, not the average. You can do the same thing by hand in any agent that supports multiple models or sub-agents.
What did three real runs look like?
These come from one developer's work on Panda Code. All numbers were reported by the agent, so treat them as indicative, not as lab results.
Run 1: a faster diff view. The agent built a benchmark first and researched whether to replace the diff library. It decided to keep it and tune it. It switched to a faster WebAssembly highlighter, moved highlighting off the main thread so text appears first and colors follow, and began fetching a file's diff when you hover over it. The judges found that the slow cold open was mostly the dev server, and that colors could lag almost a second behind the text on a large diff. In round two, they caught the agent reporting cold-open numbers that were too low. After eight rounds, the best score was 9.4 against a 9.5 target, and the agent said so. On a production build, a 4,000-line diff showed its first rows in 33 milliseconds, with colors at 181. A 30,000-line diff that used to fall back to plain text now renders properly. The agent also admitted it never launched the packaged app to check.
Run 2: memory use. The council found bugs in the agent's own changes. A new shared click handler blocked other clicks, and pull request diffs were downloaded again on every tab switch. Startup JavaScript dropped from 1,396 to 961 kilobytes, and idle heap from 4.62 to 3.95 megabytes. The best score was 8.5 out of 10, so the target was missed, and the agent stopped when rounds ran out. When the developer said "ship it," browser tests failed. Eight failures already existed on the last clean commit, but one was new: the new task screen never appeared. The release did not go out, which was the right outcome, since pushing the tag would have sent an automatic update to every user.
Run 3: the one that went wrong. The agent was asked to benchmark Panda Code against a competing app. It produced a card claiming 13.7x less UI work. The competitor's team pushed back, and the agent agreed the criticism was largely fair. The benchmark scripts lived only in a temp folder, the rival app ran on a development build, each test ran once, and idle memory was read at different times. A fair rerun with a production build, nine cold runs each, and the same reply size gave 2.8x, not 13.7x. A later round caught that earlier improvements compared runs from different sessions, where the same code measured 2.9 seconds in one and 2.2 in another. Comparing alternately in one session, total main thread time dropped only 2.5%. The release notes reported 2.5%, not a big speedup.
The lesson from all three: the goal can be delusional, but the gate can't be.
When should you not use delusional prompting?
- You can't measure the result. A "floor" means nothing without a number, and the agent will just tell you it's done.
- You have no tests. "Delete half the code base" without tests is just deleting half the code base.
- Tokens are tight. Every round runs several judges, and each judge reruns the benchmark.
- The task is small and clear. Just ask for the thing. Not everything needs a council.
What does this mean for you?
If you write code or manage people who do, the takeaway is to stop asking agents for small improvements when a measurable, ambitious target exists. Pick one thing you can count: page load time, build time, memory, test coverage. Ask for the floor, not a bit better.
If you don't write code, the same principle applies to any agent work. Decide what "done" means before you start, and have something other than the agent check it. Ask the agent to report what it did not verify. When someone shows you an impressive agent-produced number, ask whether the method is reproducible and who ran it.
Treat results as a draft until a second party confirms them. Run 3 shows how an impressive-looking figure can shrink from 13.7x to 2.8x once it is measured fairly.
Could you build a tracker for your agent runs?
A council run produces a lot of facts: the goal, the baseline, scores per round, what the judges flagged, and what stayed unverified. Most people leave that in chat logs. A small internal tool could store each run in one place. You could describe it in plain English to Remy, which builds full-stack web apps from a description, and ask for a form to log runs, a table of scores by round, and a flag for results that missed the target. It would give your team a record of what was actually measured, without another subscription.
Frequently Asked Questions
Is delusional prompting the same as just asking for more?
No. The big goal is only half of it. The other half is the guardrails: a baseline, an unchanged-behavior rule, independent judges, and a round limit. Without those, you are asking an agent to grade its own homework on a harder assignment.
Why use judges from different models?
One model tends to favor its own taste. Different models disagree in useful ways, and in these runs the judges caught bugs and overstated numbers that the working agent had missed. In Panda Code's built-in council, the lowest score counts, not the average.
What if the agent misses the target?
That is a normal outcome. In the runs above, the best scores were 9.4 and 8.5. What matters is that the agent reports the best result it actually measured and what it did not verify, and that you do not ship on a failed gate.
Can I use this without a benchmark?
Not safely. If nothing can measure the result, the agent decides alone when it is done. Build the measurement first, keep it in the repo, and record a baseline on a production build before any changes.
How we source, write, and correct our articles. Editorial standards
Related articles

What Is EGM AI? Google's Elephant-Goldfish Model Explained

Coding Agent Context Rot: How to Fix It With a Handoff File

Can You Trust AI Agent Benchmarks the Agent Reports Itself?
