December 2, 2026

Aashish Singla

What We Learned Rebuilding One App Four Ways With an AI Coding Agent

Four AI coding agent methods compared by cost per run and quality score

Anyone using an AI coding agent has to decide how much process to put around it. You can hand the agent a spec and let it build. You can give it tools to study the system it’s replacing. Or you can run a full multi-agent pipeline, with many helper agents working alongside it. Each step up costs more, and it isn’t obvious which steps are worth it.

To find out, we asked an AI coding agent to rebuild the same note-taking desktop app eight times: four methods, two runs each. We tracked what every run cost; the full whitepaper has every number. A separate AI agent then scored each finished app. It only saw renamed copies with our process notes removed, so it didn’t know which method had built which app.

We expected the heaviest process, the full multi-agent pipeline, to produce the highest-scoring app on our 100-point rubric, which covered features, tests, security, error handling and whether the app built cleanly. It didn’t. The pipeline cost about eight times as much as a lighter method and scored slightly lower. Along the way, we learned which extra steps were worth paying for, and found a security gap that applies to far more than meeting apps.

What we learned

The most expensive method wasn’t the best one

The full multi-agent pipeline cost $49.73 per run, almost eight times as much as REA-Direct at $6.22. It also scored lower than both lighter methods. More agents and more steps didn’t buy a better app: the pipeline scored above plain prompting on average, but not by enough to be sure, and it scored below REA-Direct and Hybrid.

Plain prompting produced the weakest app

When Claude Code received the specification and was left to build the app on its own, the result scored lowest. The other methods performed better, suggesting that some structure around the coding process makes a measurable difference. We’ve written before about why structure still matters in AI coding.

Security showed the biggest difference between methods

The strongest security results came from the Hybrid workflow. Before building, the agent had to define a set of must-have security rules and write tests to verify each one. Both Hybrid apps passed all ten of our security checks; none of the other six passed all ten without a generous reading of one check.

Prompt injection was the most common security failure

A meeting app sends the transcript to an AI model to write the summary. But a transcript is just what people said on the call. If the app passes it to the model as if it were instructions, anyone on the call can steer the model. Someone could say “ignore your previous instructions” and the model may follow it, for example by changing what it writes in the summary. Five of the six apps built without Hybrid’s rules-and-tests step had this flaw.

The fix is to keep the model’s instructions separate from the text it’s working on, and to tell it to treat that text as information, not commands. OWASP’s guidance on prompt injection gives the same advice. The same risk applies to any software that feeds outside text to an AI model: support tickets, emails, chat logs and shared documents.

Studying the original app first seemed to help

The two methods that examined the original app scored an average of 26 out of 30 on features. The two that didn’t scored 22 and 23.5. There is an important limitation here: both methods that studied the original also ran the app with live API calls during development. The experiment cannot separate the effect of studying the app from the effect of testing against a live instance.

Each method ran only twice, which is too few to be sure these results would hold for other apps or setups. Treat them as early evidence.

How we tested four AI coding agent methods

The target was a local meeting-notes app. The rebuilt version had to record and transcribe meetings on the device, generate AI summaries from notes and transcripts, answer questions about individual notes, and retrieve events from the macOS calendar.

The agent could inspect the original app but could not reuse its code, prompts, images or text. In other words, the agent could learn what the app does, but had to write every line itself. Engineers call this a “clean-room” rebuild.

All eight runs used Claude Opus 5.5 in Claude Code, on the same machine, with identical specifications and technology stacks. All four methods ran at the same time in each of two batches, so time of day and machine load affected them equally. We tested four methods:

  • Baseline: Plain Claude Code, given the specification without additional tools or process.
  • REA-Direct: Used our Reverse Engineer Anything (REA) tools to study the original app before building.
  • Pipeline: Used a full code-modernization plugin with many helper agents.
  • Hybrid: Combined REA, five plugin agents, a rules-and-tests checklist, and an early end-to-end test.

The scoring agent built each app, ran its tests and walked through a real usage scenario involving a note, an audio recording, a transcript and a live AI summary. The summary also had to remain available after the app was restarted.

The scores

The Hybrid method averaged 87.5 out of 100, REA-Direct 85.0, Pipeline 83.5, and Baseline 78.5. Hybrid scored highest, but we can’t call it the winner. When two scorers rated the same app, their scores differed by three points on average and by up to seven. The gaps between Hybrid, REA-Direct and Pipeline fall within that range, so they could come from the scorer rather than the method. What we can say is narrower. Hybrid beat plain prompting clearly in both batches, by 11 points and then 7. REA-Direct beat it in both batches too, though only by 2 points in the second.

What the extra process cost

The cost gap was far bigger than the quality gap. Pipeline wrote 8.6 times as many tokens as REA-Direct, and one Pipeline run spun up 409 helper-agent sessions. Here is what each method paid for every point it gained over Baseline:

Method Average score (of 100) Cost per run Cost per point above Baseline
Baseline
78.5
$4.91
(reference)
REA-Direct
85.0
$6.22
about $0.20
Hybrid
87.5
$18.91
about $1.56
Pipeline
83.5
$49.73
about $8.96

The plugin is designed to stop at checkpoints so a person can review the work and approve the next step. In our test, nobody was there to do that, so the agent approved every step itself. These figures show what the pipeline costs when it runs without human review. They don’t tell you how well the plugin works when someone checks each stage, as it’s meant to be used.

For more on why AI bills grow while token prices fall, see our earlier post.

The other security failures

Apart from prompt injection, the failures were the kind a code review would catch. One Baseline build stored the API key in a text file instead of the macOS Keychain. One REA-Direct build shipped without a Content Security Policy. Every one of these apps passed its own test suite; the tests just never looked for these problems. That gap is what AI-governed test design is meant to close.

Where the test falls short

Two runs per method is a small sample, so we can only see big effects. We tested one mid-sized app with one model and one stack. A large legacy system could behave quite differently. The costs are API-equivalent estimates, not real bills. A cleaner follow-up would test REA and the plugin separately instead of stacking them.

The full report is in our whitepaper with every run, score and cost.