Melo Labs

← All articles

How to use Haiku in everyday SDD without overspending

2026-11-08

sddhaikuguidecostagents

The plain version of the study “SDD with Haiku only”. If you want the scientific rigor, read the technical article. This is what it means for someone who wants to use Haiku tomorrow.

In one sentence

Haiku does the job of writing documents (PRD, technical spec, tasks) almost as well as Sonnet for about 1/5 of the price. On code, it works well when you put it in a process with tests and correction; alone, it fails more. The study does not prove it is worse or equal on code. And in a real project it is almost never only the AI: with an engineer reviewing, this is a good path to start with.

What we tested

We ran the full cycle (PRD, technical spec, tasks and code) 198 times on a real open-source project, h3, with Haiku 5.5 and Sonnet 5.5, and checked the code with hidden tests the model never saw. Three AI judges, without knowing which model wrote each document, scored the documents.

What we found

Cost per run and per accepted result

1. Cost. Haiku with the process below cost US$ 0.22 per run, against US$ 1.23 for Sonnet. Counting only the runs where the code passed the tests, it is US$ 0.31 against US$ 1.36.

2. Documents. On TechSpec and Tasks scores, Haiku was practically tied with Sonnet: less than 1 point apart, out of 35 and 25. Note: the judges did not see the original request, so this measures text quality and structure, not “faithful to the request”.

3. Code. Here is the map by task (green always passed, red almost never):

Hit map by task

Code deficit with and without the edge case

The recipe that worked best

Six-step recipe

  1. A clear, short request. Say what the feature does, with the exact names (functions, options, response formats) and expected behaviors. The vaguer the request, the more the model invents.
  2. Haiku writes the documents. PRD, technical spec and tasks. This is where it pays off most for the price.
  3. Automatic document checks. A simple script checks what a human does not need to: whether headings follow the agreed format, whether the files and lines cited exist, whether every PRD requirement is covered by a task. If it fails, give Haiku the real errors, at most twice. In practice the gate rarely failed (3 of 234 documents), so it is a cheap safety net.
  4. Tests first. Ask Haiku to write tests from the spec, run them and watch them fail, and only then implement.
  5. Correction loop with real output. Run tests, typecheck and lint, and give the model what the command actually printed, for up to 3 rounds.
  6. A person reviews. And if the code still does not pass the tests, hand the task to a larger model (Sonnet). Note: this last step is a suggestion. The study did not test real escalation (the study’s cascade never escalated).

Steps 1 to 5 are what was measured. Step 6 is the natural conclusion, but it is still a hypothesis.

And the engineer in all this?

In a real project, the AI does not run alone. There is a person behind it: who writes the request, reads the documents, looks at the test results and decides what to do. In the study, nobody intervened, on purpose, to measure the raw model. It is a hard test: no error was caught by a person.

That changes the reading. Haiku’s main error was a forgotten edge case (asking for a route that does not exist and getting the error in the right format). That is the kind of thing a code review, or one more line in the request, usually catches before production. With an engineer in the process:

MomentWhat the person does
RequestWrites it with exact names and remembers the edge cases
DocumentsReads the spec and the tasks and fixes what looks off
TestsChecks that the tests Haiku wrote cover what matters and adds what is missing
When something failsDecides whether to fix the request, adjust the code or hand the task to a larger model
DeliveryReviews the result, as with any colleague

Our reading, optimistic: Haiku does the heavy lifting, fast and cheap, and the person guarantees final quality. Mind the difference: this is reasoning from the data, not something the study measured. Measuring “Haiku plus engineer” is the next step.

What is not worth it

To start tomorrow

What we do not know yet

We tested one project (TypeScript, three features). The conclusion on code is still open, and the document rubric has limitations. But the path (Haiku on documents, tests first and correction on code, and a person reviewing) is cheap, showed results in several cases and fits how real teams work. The technical article has the numbers, the intervals and everything that may be wrong.


The experiments, data and conclusions are mine. The writing was AI-assisted and reviewed by me.

The experiments, data and conclusions are the author's. The writing is AI-assisted and reviewed by him.