Skip to content
mentoor

Topic 4 of 5 · 5 min read

Cutting multi-agent cost without losing quality

Goal: Choose a model tier, caching and output limit for each role in a multi-agent system that cuts cost but keeps the quality checks.

Cut cost role by role: give each agent the cheapest model, context and output that still passes its quality check, and keep the checks that guard the final answer. Cutting everywhere at once is how teams ship a cheaper system that quietly gets worse.

Check yourself · 1 of 3

For prompt caching to save money across workers, the shared instructions should be:

Choose one answer

Why it matters

Most multi-agent spend sits in a few roles, usually the workers, since there are many of them and they loop. Savings there are large. Savings in the final reviewer are small and risky.

The levers

  1. Cheaper model tier for narrow workers. Searching, extracting fields or classifying often works on a small tier. Keep a stronger model for planning and final judgement. Compare tiers on the provider's pricing page.
  2. Prompt caching for the shared prefix. If every worker starts with the same long instructions or reference text, cache it. Cache reads are billed at a fraction of normal input price, 0.1x of the base rate on Claude per its pricing page. The prefix must be identical and placed first.
  3. Short worker outputs. Ask for a structured summary of 200 words, not an essay. The lead reads it, and every later turn re-reads it. Set a max output limit as well.
  4. Trim tool output. Return the 2k tokens the worker needs, not the whole page.
  5. Batch processing for work that can wait. Batch APIs, such as OpenAI's and Anthropic's, run jobs asynchronously at a lower price. Good for overnight evaluation or bulk classification, not for a user waiting.
  6. Fewer workers. Two well-briefed workers often beat six overlapping ones. Remove any worker whose output the lead rarely uses.

Protect quality

Before changing a role, run a fixed set of 20 to 50 real tasks through the old and new setups and compare scores or reviewer judgments. Change one role at a time. Keep tests, validators and the final review in place; they are what stops a cheaper worker from shipping errors.

Before and after

Role Before After
Searcher x6 large model, free-form 1,500-word output small model, 200-word structured output, shared prefix cached
Planner large model large model
Final reviewer large model large model

Only the high-volume, low-judgement role changed.

What goes wrong

  • Downgrading the reviewer first. The check that catches mistakes is where weak models cost most.
  • Caching a prefix that changes. A timestamp at the start of the prompt breaks the match, and nothing is saved.
  • Batching an interactive task. Savings arrive with hours of delay.
  • No before/after test. You cannot tell saved money from lost quality.

Examples

Shared prefix that did not cache

Every worker prompt begins Current time: 2026-12-02 14:03:11 followed by 8k tokens of shared guidelines. The time changes each call, so the 8k prefix never matches. Moving the time line to the end makes the guidelines a stable prefix, and cache reads begin to appear in the usage report.

Right-sizing a role

A field-extraction worker reads invoices and returns six fields. A small tier scores 97 of 100 on 50 held-out invoices, the large tier 98. The small tier cuts that role's cost sharply, and the downstream validator that checks totals stays in place.

Key points

  • Optimize per role: high-volume, low-judgement workers first, planner and final reviewer last.
  • Cache an identical shared prefix placed at the start of the prompt; a changing timestamp up front defeats it.
  • Short structured worker outputs and trimmed tool results shrink every later turn's input.
  • Use batch processing only for work that can wait, not for a user who is waiting.
  • Change one role at a time and compare old and new setups on a fixed set of real tasks.

Common mistakes

  • Downgrading the planner or final reviewer first because they are easy to find.
  • Putting changing text, such as the time, at the start of a prompt that you expect to cache.
  • Switching every role to a cheaper model at once without a before and after test.
  • Batching a task a person is waiting for.

Check yourself · 2 of 3

Which role is the safest to move to a cheaper model first?

Choose one answer

Check yourself · 3 of 3

A nightly job classifies 50,000 support tickets and nobody needs results before morning. What is the best cost lever?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic