When I look at what an agentic system costs to run, a good share of it is infrastructure, and none of that appears on the model provider’s invoice.
Three costs I look for:
1. Compute sized for the heaviest piece. If agents and their tools share one process, every agent gets sized for its heaviest tool. Agent Mesh splits the work into three workloads, and each one scales on its own driver:
| Workload | Primary resource driver |
|---|---|
| Entrypoint Executor | Concurrent user connections and SSE fan-out |
| Agent-Workflow Executor | Number of bound agents and their context size |
| Secure Tool Runtime | Memory of tool subprocesses (LibreOffice, ffmpeg, Chromium) |
A PDF-rendering tool needs memory in the Secure Tool Runtime. It doesn’t force a bigger Agent-Workflow Executor.
2. Rework after a failure. When a pod dies in the middle of a task, the expensive outcome is the user retrying and every agent in the chain running again. Agent Mesh puts requests on durable queues, so a production Solace event broker redelivers unacknowledged work to a surviving replica.
I wrote a blog post about this that delves into more details
Your Multi-Agent System Has a 20-Year-Old Bug
3. Work nobody needs anymore. Two queue settings bound this:
app_config:
max_message_redelivery: 1
respect_message_ttl: true
max_message_redelivery (default 1) stops a task that crashes its consumer every time from being redelivered forever. respect_message_ttl (default true) drops a request that ages out while the agent is down instead of letting it pile up.
To see the three workloads at work on your own machine, download the Solace Agent Mesh desktop app, where they run in a single process.
Docs:
Compute Resources
The Event Mesh Communication Layer
When you estimate what an agent costs to run, does the estimate include compute and retries, or only tokens?