Lesson 1 of 4 · 30 min

Multi-Agent App Development: How the Process Works

Why one large prompt fails and a crew of narrow agents works.

XDQ Tutor · AI guide

Hello. In this lesson I will take you through 3 ideas, one at a time.

  1. Why one agent is not enough
  2. The seven roles
  3. Where people sit

Why it matters: Why one large prompt fails and a crew of narrow agents works. After each idea I will ask you one quick question.

Why one agent is not enough

The short version: A single AI agent asked to build a whole app tends to drift.

A single AI agent asked to build a whole app tends to drift. It makes a design choice on screen one, forgets it by screen six, and patches the gap with new code. The output runs, but nobody can maintain it. The cause is context: one agent cannot hold the plan, the design system, the data model and the test results at the same time.

A crew fixes this by giving each agent one job and one output. The planner writes the plan. The designer produces screens. The builder writes code against both. Each output is small enough to check, and each agent starts from the checked output of the one before it.

Quick check

Why does a single agent building a whole app tend to produce unmaintainable code?

The seven roles

The short version: A practical crew has seven roles.

A practical crew has seven roles. The planner turns the brief into screens, flows and a data list. The designer draws each screen in the brand. The builder writes the app code. The data agent defines the database, the APIs and the admin panel. The tester writes and runs tests. The security agent reviews code and settings. The launch agent prepares store listings and release builds.

The order matters less than the handoffs. Every role reads a named input and writes a named output. If you cannot say what file an agent reads and what file it writes, the role is not defined yet.

Quick check

What makes an agent role well defined?

Where people sit

The short version: Agents prepare work.

Agents prepare work. People approve it. In the process XDQ Labs runs for App Studio, an engineer reviews the output of every stage and the client signs off the screens before any code is written. That is not a courtesy. Design mistakes are cheap to fix on a screen and expensive to fix in code.

Treat the review gate as part of the pipeline, with a named owner and a time limit. A gate with no owner becomes a queue, and a queue becomes the reason the build is late.

Key takeaways
  • One agent per job, one output per agent
  • Handoffs are files, not conversations
  • Every stage has a named human reviewer
  • Design is approved before code starts
Try it

Take an app you know. Write the seven roles down the page and, beside each, the one file it reads and the one file it writes. Mark the two handoffs where a mistake would cost the most.

That is the lesson.
Mark it complete to track your progress on this device.
← CourseCourse overviewNext lesson →How to Write an App Build Sheet for AI Agents