Building with AILesson 30 of 80

Module 3 · Structure, tools and the loop

Multiple agents, and the honest cost

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 10 of 11 in this chapter

This chapter’s goalDesign a schema and a tool surface a model can actually follow, write an agent loop with a step budget and a validated boundary at every hop, and say for each failure in that loop whether it should be retried, escalated to a human, or must stop the run.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

What people mean by it

The usual architecture is an orchestrator that decomposes a task and hands pieces to workers, each with its own prompt, its own tools and its own context, whose results the orchestrator combines.

Sometimes this is better. Often it is a single agent redrawn as a diagram, at three times the cost, and the honest question is which one you have.

The one thing it buys: context isolation

The strongest argument for splitting is not specialisation. It is that each worker starts with a clean, short context.

A single agent researching six suppliers accumulates everything it has read. By supplier four it is carrying 60,000 tokens, every step is expensive, and the material about supplier one is competing for attention with the current question. Six workers each read about one supplier in an 8,000-token context and return a 300-token summary. The orchestrator sees 1,800 tokens instead of 60,000.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Multiple agents, and the honest cost’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/multi-agent-when-worth-it (Accessed: 29 November 2026).