A single narrow column of text lines running off the top and bottom of the frame, with a handful of lines highlighted in amber.
AI Engineering

The thousand-line prompt

November 13, 20263 min read

Vibe coding gave me toys, so I went the other way and wrote prompts several thousand lines long. They got me closer. Here is why closer was never going to be right.

agent-harnessharness-engineeringprompt-engineeringvibe-coding

Here's a sentence I typed to my agent harness recently: "Update the table in all of our apps to support per-column filters."

Two hours later, 17 repos had done it. Exactly right. Full test coverage, built to pattern, across every OS and every UI framework CodeLifter uses.

That's the punchline of this series. But it didn't start that way. It started with vibe coding that produced toys, and then with prompts several thousand lines long.

Vibe coding, the way the internet does it

I watched people online type ultra-simple requests and get back an app. A tiny, single-feature app, with no proper auth, no real security, and mediocre UX. Fine for a demo. Not something you'd ship.

When I tried vibe coding, mine came out the same way. The model filled every gap with the most generic choice available. Nothing it produced looked like software I'd put my name on.

So vibe coding felt silly. It wasn't a way to build real products. It was a way to build screenshots.

The thousand-line prompt

So I went the other way and leaned on experience. If the model was filling gaps with generic choices, I'd leave no gaps. I wrote huge specs and prompts: architecture rules, auth and security requirements, coding standards, naming conventions, how we structure tests, which UI framework does what, the edge cases I'd been burned by. They grew to several thousand lines.

It worked, mostly. The results got much closer to what I'd build myself. But it was the laundry problem from Part 1 in its purest form: the entire pile, dumped on one worker, with a 40-page manual stapled to it.

A prompt that size has no structure the model can act on. Rules for the iOS app sit next to rules for the database layer. Every time, the model has to work out which of thousands of lines matter for this task. Closer isn't the same as right, and each new rule made the pile bigger.

The same rules drawn two ways. On the left, one long prompt with every rule mixed together. On the right, the rules sorted into design system, desktop, web, mobile, and testing and security.
The same rules drawn two ways. On the left, one long prompt with every rule mixed together. On the right, the rules sorted into design system, desktop, web, mobile, and testing and security.

The real problem

The prompts weren't too short or too vague. They were doing a job that a prompt can't do.

I was using one block of text to hold everything the harness should hold: the decomposition, the per-partition rules, the tools, the patterns, the checks. All of it was flattened into a single pile and handed over at once. That's why more detail didn't help. Adding lines to an unsorted pile just makes a bigger pile.

Vibe coding wasn't the problem either. A one-line request fails when nothing stands behind it. When the sorting, the rules, and the patterns live in the harness, one line is all the agent needs. That's how one sentence becomes 17 repos done right.

Next up, in Part 3: how I took that thousand-line prompt apart and rebuilt it as a harness.

Series
Sorting the Laundry

Six posts on what a year of building with agents taught me: the model is the hands, and the rules you write down around it are the part worth investing in. From thousand-line prompts to one-sentence changes across every app I own.

  1. Part 1This morning I realized I'm teaching an agent to think the way I sort laundry
  2. Part 2The thousand-line prompt
  3. Part 3Building the harness
  4. Part 4Faster with less work
  5. Part 5From vibe coding to harnessed coding
  6. Part 6Where this leaves us

Loading discussion…

Written by

Andrew @ CodeLifter

All Posts