Lesson 6 of 8 · 6 min read
Sizing an Agent System: Tokens, Concurrency and Cost on One Page
An agent system can be sized from a few assumptions. Input tokens per task are the stable prefix times the steps plus a history term that grows with the square of the steps. Peak arrival rate times run duration gives concurrent runs (Little's law), which sizes workers, sandboxes and connections. Peak rate times tokens per task gives tokens per minute to compare with rate limits. Cost per successful task divides cost by the success rate. Long runs dominate, so size with the distribution of steps, not the average.
Get full Premium access · $25
All 19 topics with every worked answer, all lessons and courses, the full practice bank, and anything new that appears during your access.
6 months · One payment · No auto-renewal
Practise it as an interviewer asks it
How do you approach an agentic system design interview? Give the method you would use on any prompt.What does an agent task cost? Show where the tokens, the seconds and the money go in one run, and what you would cut first.ReAct, plan-and-execute, or an explicit state graph: pick one for a refund workflow.When does a second agent pay for itself?Design a customer support agent that can issue refunds.Design a shopping agent that can complete purchases while the user is away.
From the blog
AI Agent Engineering, September to November 2026: 20 Changes Every Agent Engineer Should KnowMaking Agents Cheaper and Faster in Late 2026: Prompt Caching Changes, Compaction APIs, Tool Retrieval and Off-Peak TiersRunning AI Agents on Google Cloud in Late 2026: Agent Runtime, Agent Compute Engine, Agent Substrate and Cloud Run