Smart agents do stupid things.
We break the habit.
Setta reads every run, finds what your agents get wrong on repeat, and proves each fix on your own traffic before it ships. On API bills and on your own GPUs.
- Unproven fixes
- 0 each one replayed first
- Your team’s time
- ~30 min to export traces
- Audit report
- 5 days and you keep it
§ I
Agents do stupid things on repeat, and nobody sees it.
Each run looks fine. The waste only shows across thousands of them, and in a product it runs once for every customer.
§ II
Five things we find in almost every product agent.
- 01/05
Bloat
Every tool definition rides on every call, used or not.
− tools: 41 definitions on every call+ tools: the 3 this step uses, the rest on demand
- 02/05
Cache breakers
One field near the top rewrites the cache for every customer.
− system: "Today is {now}. Tenant {id}." …+ system: stable prefix first, the timestamp after it
- 03/05
Repeat errors
The same failing call and retry, account after account.
− crm.search → 401 → retry → 401+ refresh the token before the call → 200
- 04/05
Re-learning
Every run looks up the same config and schema again.
− get_schema · get_config · get_schema+ schema and config in the starting context
- 05/05
Stale setups
Workarounds a newer release made redundant, still running.
− "Reply ONLY in valid JSON" + a repair retry+ native structured output
§ III
Token savings aren’t bill savings.
Every fix is replayed on your own traces, with the prompt cache modeled, before we recommend it. A trim that breaks the cache shows up as the cost increase it is.
- Replays, doesn’t guess
- Your traces, step by step. No tokens spent.
- Cache-aware
- Writes, reads and evictions, priced per provider.
- Checked against your bill
- Rebuilds what you paid before it projects.
- Lower bound only
- Priced on held-out runs. Rejected fixes listed.
§ IV
Keep your agents clean and current.
- i.Read every runLangSmith · Langfuse · OTel · provider logs · your gateway
- ii.Find the patternsthe five patterns above, across every run
- iii.Replay each fixyour traffic · cache-aware · lower bound
- iv.Ship itprompt, tool or config change · A/B test · rollback
New model, provider or price? The fix goes back to replay.
§ V
Questions we keep getting.
Setta reads the production runs of the agents and AI workflows in your product and finds what they keep getting wrong or carrying for nothing. It replays each candidate fix on your real traffic in a simulator, priced to your bill, and ships only what holds up. When a new model, provider or price lands, it runs the loop again for your agents.
They estimate savings from token counts. Setta replays your traffic under each fix, models the prompt cache, and checks that the replay reproduces what you actually paid before it projects anything. Savings are priced on held-out runs with a lower bound, and the method is in every report. Token savings and bill savings often disagree; we show you which one you’re getting.
We don’t duplicate it. Caching doesn’t drop tools nobody calls or the same failed call run after run, and one volatile field near the top of the prompt can quietly rewrite the cache on every call. The audit shows what’s left after caching, even if it’s nothing.
Not without proof. Fixes that change your agents’ tool decisions in the replay are rejected, and the report lists them. What ships goes out behind an A/B test against unoptimized traffic, with instant rollback.
Yes. Your vLLM, SGLang or NIM endpoint is an API like any other, and Setta treats it like a provider’s. We don’t tune the serving stack; we cut the tokens and calls each run needs. The payoff is capacity instead of a smaller invoice: more runs per GPU, lower latency, a later hardware purchase, and stable prompt prefixes that raise your server’s prefix-cache hit rate.
A sample of production traces, one to four weeks, from LangSmith, Langfuse, OpenTelemetry, provider logs, or the gateway in front of your own models. That covers any framework, managed-agent platform or home-grown loop. The export takes about 30 minutes. The audit runs under NDA, there’s nothing to install, raw traces are deleted afterwards, and nothing is used for training.
The audit is free, and you keep the report. What comes after depends on what the audit proves. If the math isn’t clearly in your favor, don’t buy.
§ VI
Guides.
- Where AI agents waste tokens, and how to find it in your traces
Most agent token waste comes from six patterns that only show up across many runs. How to find each one in LangSmith, Langfuse, OpenTelemetry or provider logs, and how to price it correctly.
- How to prove LLM cost savings before you ship: trace replay and cost simulation
Token estimates don't predict the bill. How to prove a prompt, tool, caching or model change saves money by replaying production traces in a cache-aware simulation, checked against your actual bill.
- AI agent cost tools, mapped by category (November 2026)
A neutral map of the tools that cut AI agent and LLM costs, by category: provider features, gateways and routers, compression, observability, trace analyzers, FinOps, serving optimizers and replay simulation. What each does and when it fits.
- How to measure AI agent cost per customer in a SaaS product
How to attribute LLM and agent cost to each customer of a SaaS product: what to tag, how to price cached tokens and shared prefixes, self-hosted GPU cost, and how to bring the cost down once you can see it.
§ VII
See what your agents do on repeat.
- For
- Teams with agents in production
- You send
- A trace export, about 30 minutes
- You get
- Proven savings, what to fix first, what we rejected
- When
- 5 business days
- Price
- Free
You send a trace export. There’s nothing to install.