Zenaique

What Replit Agent's app from scratch workflow tells you about agent specialisation in production

Flashcard·Medium·4.0 · 0·~30s·Asked atCoreweaveVellumVernacular Ai
Attempt it
TL;DR

Production specialisation in 2026 runs on tool surface, context shape, and prompt focus, almost never on fine tuned per role models; frontier generalists still beat smaller specialists.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Picture a small construction crew building a house. The same skilled person could in theory do everything, but on a real job site you have a planner who decides the layout, a framer who puts up walls, an electrician who runs wires, and a painter who paints. The framer is not a better human than the painter; they have different tools, different focus, and a different part of the blueprint in their head. They are all just very capable people in specific roles. Replit Agent works the same way. The same frontier model plays each role, but each role has its own tools, its own slice of the project, and its own job description. The differentiation is architectural, not biological.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Replit Agent is a useful case study because the public product surface makes the multi agent architecture visible: the build log shows distinct phases (architect, code generation, environment setup, debugger), each visibly handled by a different subagent. The architecture is a worked example of how production specialisation actually works in 2026.

This answer walks through the phase decomposition, names the three axes on which real specialisation runs, contrasts with the intuitive but wrong assumption that fine tuning per role is required, and ends with a practical rule for designing specialised subagents.

The phase based decomposition of Replit Agent

Building an app from a natural language spec is a sequential process with clearly distinct phases. Replit Agent reflects those phases as visible subagents in the build log.

Architect

Reads the user request, decides on the stack (framework, database, deployment target), and produces a structural plan: file layout, key dependencies, integration points. This is the highest level reasoning step; the output is a plan, not code.

Code generator

Reads the architect's plan and produces the actual code files. Has file write and edit tools, knows the chosen stack, and is prompted to produce minimal runnable code that matches the plan.

Environment setup

Installs dependencies, configures the database, runs migrations, sets environment variables. Has shell and package manager tools but does not write application code.

Debugger

Reads error output from failed runs and patches the code. Has log read and file edit tools and a prompt focused on minimal diagnostic patches rather than wholesale rewrites.

Why this decomposition

Each phase has a distinct success criterion (architect: a coherent plan; code generator: runnable files; environment setup: a working environment; debugger: a passing run). Each has a distinct failure mode (architect: incoherent stack choice; code generator: missing imports; environment setup: missing dependencies; debugger: making things worse). Splitting them lets each subagent be evaluated, prompted, and tooled for its specific job.

Axis 1: tool subset
Axis 2: context shape, Axis 3: prompt focus
The fourth axis that mostly does not win, and why
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.
Axis of specialisationWhat changesWhen it earns its keep
Tool subsetNarrower tool list per agentKeeps each agent under the 15 to 20 tool reliability threshold
Context shapeNarrower slice of workspace per agentReduces per turn cost and attacks lost in the middle
Prompt focusSpecific job and output format per agentSharper output than generalist prompts produce
Fine tuned per role modelDifferent model weights per agentRarely worth it in 2026; frontier generalists still win

Real products, models, and research that use this idea.

  • Replit Agent's 2025 and 2026 product surfaces an architect, code generator, environment setup, and debugger as visible phases in the build log, matching the architecture this question describes.
  • Cursor agent mode follows the same pattern with planner, search, editor, and shell subagents, all using the same frontier model with different tools and contexts.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you decide which phases of a workflow deserve their own subagent versus being absorbed into a neighbour?
A

A phase deserves its own subagent if it has a distinct tool surface, a distinct context slice, or a distinct prompt focus that the neighbour does not share. If a phase has none of these, it is a step in the neighbour's job, not a separate role.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Assuming production specialisation requires fine tuning a small model per role, and missing that the actual axes are tool subset, context shape, and prompt focus, all with the same frontier model under the hood.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • The phase based decomposition of Replit Agent and why it matches app building

  • The three axes of production specialisation (tool subset, context shape, prompt focus)

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Why AutoGen 0.4 makes TerminationCondition a first class primitive instead of leaving it to convention
Flashcard·Medium