All posts

GuideDevfab Team9 min read

How to choose the AI model for each step of development

How to choose the AI model for each step of development: match research, planning, coding, review and docs to the right kind of model, then check cost per task.

How to choose the AI model for each step of development

Short answer: Split your work into steps (research, planning, building, review and testing, docs), then name what each step needs: deep reasoning, speed, image input or long context. Start every step on one general-purpose model, move planning up to a reasoning model, move routine edits down to a fast one, and check the cost per task after each run.

Research, plan, build, test and docs steps, each with its own model setting, on a software production line

You picked one model, set it as the default, and used it for everything. The planning was thin, the renames were slow, and the bill was larger than the work.

Different steps fail in different ways. A plan fails on missing reasoning. A rename fails on nothing at all, so paying for deep reasoning there is waste.

In this guide, you'll learn:

One example runs through the page: a veterinary clinic scheduler for a client agency.

Why one model for everything falls short

Vendors now offer more models than most teams can test. Cursor's model table lists models from several providers (Cursor docs). GitHub Copilot offers models from OpenAI, Anthropic, Google, Microsoft, Moonshot AI and xAI, with availability that depends on plan and surface (GitHub Docs).

Tools are also moving toward per-step choice. Kiro offers an "Auto" setting that routes per task (Kiro). Cline lets you set different models for its Plan and Act modes (Cline docs). Amp says it picks each model "for what each model is best at" (Amp manual).

GitHub's own advice is a good base: start with a general-purpose model, move to a reasoning model when a task grows complex, and use a fast model for simple edits. It also notes that models use credits at different rates (GitHub Docs: model comparison).

Step by step

Step 1: Map the steps your work goes through

Write down the stages a feature passes through, in order. For most business apps that is research, planning, building, review and testing, deploy and docs.

Vet clinic example: learn how clinics book visits, plan the scheduler, build the booking form and the staff calendar, test double-booking rules, then write the front-desk guide.

In Devfab these steps already have owners. The team map shows seven agents: Researcher, Planner, Coordinator, Developers, Blueprint, QA agent and Deploy.

Illustration: Devfab's seven-agent team map with the Planner highlighted, the step where a stronger model pays off

Step 2: Name what each step needs

Give each step one main need. Use plain labels:

StepMain needWhat a weak choice looks like
ResearchBreadth, long contextMisses the domain's key terms
PlanningDeep reasoningPlan skips a flow or a rule
Building screensImage input, speedLayout drifts from the sketch
Routine codeSpeed, low costSlow and expensive for simple edits
Review and testingCareful reasoningApproves what it should question
DocsClear writingManuals that use developer words

Vet clinic example: planning needs reasoning because of rules like "a surgery slot blocks the vet for the whole block." The booking form only needs a fast model.

Step 3: Start every step on one general-purpose default

Don't tune everything at the start. Put every step on a general-purpose model first. GitHub calls this kind of model "a good default when you don't have specific requirements."

Run one real feature end to end. Note where output was weak. That tells you which steps to change, instead of guessing.

Step 4: Move research and planning up to a reasoning model

The plan is where a wrong guess costs the most. A missed rule in the plan becomes missed code, missed tests and a missed line in the manual.

Use a reasoning-focused model for research and planning first. GitHub lists deep reasoning for work like debugging "complex issues with context across multiple files."

In Devfab, research runs before the Planner. The Researcher maps key terms, best practices and competitors for that kind of app, then suggests a prototype. After that, a person approves the plan. A stronger model at these two steps gives the reviewer a better plan to judge.

Step 5: Move routine edits down to a fast model

Renames, small refactors, form fields and boilerplate rarely need deep reasoning. GitHub's fast category is for "quick edits, utility functions, syntax help."

Vet clinic example: adding a "species" field to the pet record and its form is a fast-model job. Changing how surgery slots block the calendar is not.

Aider shows another split. Its architect mode lets one model propose a change and an editor model turn it into file edits. The docs note the trade-off: two requests can take longer and cost more (Aider docs).

Step 6: Give review and testing a second opinion

A reviewer that wrote the code tends to agree with itself. Where your tool allows it, give review or QA a different model from the one that built the feature.

In Devfab, the QA agent runs UI and flow tests (screens, buttons and user journeys clicked end to end) plus logic tests. You can choose the model for each agent or keep Devfab's default, so the QA agent's setting can differ from the developers'.

Vet clinic example: a flow test books a visit, reschedules it and checks that the old slot is free again. That check should come from a model that did not write the booking code.

Step 7: Read the cost per task after a run

A model choice is only good if the result is worth what it spent. Look at cost per task, not just the monthly total.

Devfab logs cost after a run, per task and per project. That makes the effect of each model choice visible. If the docs step costs as much as planning, you know where to move down.

Illustration: Cost logged after a run for three vet scheduler tasks, used to compare model choices per step

Step 8: Write the choice down and re-check it

Keep a short table: step, model setting, reason, date. Revisit it when your tool adds or retires models, when prices change, or when a step starts failing more often.

Vendors change model lists often. Amp replaced its "Dial" with a model selector in November 2026 (Amp news). Kiro added new models in the same month (Kiro changelog). Your table keeps those changes from slipping in unnoticed.

Common mistakes

  1. Top model everywhere. It feels safe and costs the most where it helps the least.
  2. Cheapest model for planning. Savings at the plan become rework in code and tests.
  3. Tuning before measuring. Change one step at a time, after a real run shows the weak spot.
  4. Same model writes and reviews. You lose the second opinion that review is for.
  5. Ignoring image input. Screen work from sketches needs a model that reads images. GitHub notes the benefit is lost where there is no image input.
  6. No record. Without a note, nobody knows why the docs agent uses a costly model.

Checklist

  • [ ] Steps listed in order, from research to docs
  • [ ] One main need named per step
  • [ ] A general-purpose default set everywhere first
  • [ ] Research and planning moved to a reasoning model
  • [ ] Routine edits moved to a fast model
  • [ ] Review or QA on a different model from the builder
  • [ ] Cost per task read after a run
  • [ ] A dated note of each choice and its reason

For how to read those cost logs, see How to track AI cost per task and per project. If you are weighing billing models too, read per-seat vs usage-based AI pricing.

FAQ

Should I use the most capable model for every step?

No. The strongest reasoning models help most where a wrong guess is expensive, such as research and planning. Routine edits, renames and boilerplate rarely need them, and they use more credits or tokens. Match the model to the step, then check the cost after a run.

Which AI model does Devfab use?

Devfab doesn't ask you to pick one model for everything. You can choose the model for each agent or keep Devfab's default. Cost is logged after a run, per task and per project, so you can see what each choice spent.

Is it worth using a different model for code review?

Often, yes. A reviewer that did not write the code is more likely to question it. Some tools already split work between models, such as Aider's architect mode, which uses one model to propose a change and another to write the edits.

How often should I revisit my model choices?

Whenever your tool adds or retires models, when prices change, or when a step starts failing more often. Keep a short note of which model each step uses and why, so a change is a decision and not an accident.

Want each agent on the model that fits its step? You can choose the model for each agent or keep Devfab's default, and cost is logged after each run. Try the Devfab Beta

Frequently asked questions

Should I use the most capable model for every step?

No. The strongest reasoning models help most where a wrong guess is expensive, such as research and planning. Routine edits, renames and boilerplate rarely need them, and they use more credits or tokens. Match the model to the step, then check the cost after a run.

Which AI model does Devfab use?

Devfab doesn't ask you to pick one model for everything. You can choose the model for each agent or keep Devfab's default. Cost is logged after a run, per task and per project, so you can see what each choice spent.

Is it worth using a different model for code review?

Often, yes. A reviewer that did not write the code is more likely to question it. Some tools already split work between models, such as Aider's architect mode, which uses one model to propose a change and another to write the edits.

How often should I revisit my model choices?

Whenever your tool adds or retires models, when prices change, or when a step starts failing more often. Keep a short note of which model each step uses and why, so a change is a decision and not an accident.