Skip to content
All posts
  • 2 min read
On this page

Fill the agent gaps

Agents fill every gap your prompt leaves open with the most generic thing they can come up with. So let them ask you, and prototype everything, before they build.

It's been a few years since I started experimenting with agents and trying to squeeze the best out of them. Through all those attempts, a bunch of patterns kept coming back, no matter how smart the agent got. The most annoying one, and the one we don't think about a lot even though it always sneaks in, is design gaps.

Agents fill every gap your prompt doesn't address with the most generic, sloppy thing they can come up with.

Every prompt has gaps

Take the prompt from my last post:

Build a small reading-list web app: I paste a link with a title, see my list, mark items as read, and filter to unread only. Data must persist across restarts. Full vertical slice: UI, API, storage.

It reads like a full spec, but it makes only a handful of the decisions the app needs. The rest are open, from the database schema to the buttons on the UI.

5 decisions in the prompt, 10 left open.10 guesses. The agent fills every gap with its default, and you meet them in the output.10 answers. The agent asked about the data and the API, and prototyped the UI, before any code.

Datapersists across restartswhere it's storedthe schemaduplicate linksa missing title
APIadd a linkmark as readroute shapesvalidation errors
UIthe listunread filterlayoutempty statebutton labelswhat read looks like
The decisions behind the reading-list prompt, from the data up to the UI. Flip between the views to see who makes the ones the prompt left open.

The agent doesn't leave those gaps empty. It fills each one with its default, and you meet those defaults in the final output, as decisions you never agreed to.

People ask, agents guess

We humans close these gaps by default. When we get stuck, we ask, and we iterate. Agents don't. Even when you try to drive them to ask, they slip, a lot.

A person
asks, then iterates
An agent
picks the generic default
Told to ask
asksslips, guesses
Three builds from the prompt to the output, each reaching a decision the prompt didn't make.

Seal the gaps first

Once I understood this pattern, I knew I needed a workflow where the fine-grained details get decided before the build. Around that time, Matt Pocock's grill-me skill came out: a relentless interview to sharpen a plan or design. Then I found Design-First Collaboration, an article by Rahul Garg on Martin Fowler's site, with the same idea from the design side: the agent asks you about the design decisions first, so the final output doesn't carry the consequences of things you never agreed to.

So I kept improving AB Method around one idea: seal the gaps with cement, so the structure is solid at the end.

I think the best outcome you can get from a plan comes from letting the agent ask you, and prototyping everything along the way, from the database schema to the buttons on the UI. That way you get a decent result from the agent, and not slop everywhere.