Problems / AI systems, medium

The agent that thinks too much

An agent takes 12 model-and-tool steps per task. Steps multiply load, cost and failures.

Free to open. Runs in your browser, no sign-up.

Your goals

Success ≥ 95%, p99 ≤ 20 s.

The traffic

15 requests a second for 30 seconds: 100% task (reads).

The system

What each component does in this design, and what calls it. The simulator mimics each one from these settings.

ComponentIts job hereSettings
API gatewayAPI gatewayTraffic enters here.Calls Agent orchestrator.Gateways centralise auth, rate limits and routing so each service does not reimplement them.100000 slots · 600,000 calls/min
Agent orchestratorAgent orchestratorAPI gateway forwards to it.Calls LLM endpoint, Tool server.An agent loops: think, call a tool, read the result, repeat until done.300 slots · 12 steps
Tool serverTool / MCP serverAgent orchestrator calls it.Tools give the model actions such as search or database queries; each call is another round trip.40 slots
LLM endpointLLM endpointAgent orchestrator calls it.Latency has two parts: time to the first token, then a steady stream of tokens per second.120 streams · 4,000 calls/min

Hints

Try it first. Open one hint at a time if you get stuck.

Hint 1

Count model calls per task.

Hint 2

Agent steps run one after another.

One way to solve it

Cap the agent’s steps (“cap the agent at 4 steps”).

More ai systems problems