# Setta: smart agents do stupid things. We break the habit.

Setta makes sure the agents and AI workflows in your product aren't doing stupid things on your API bill or your GPUs. It reads every run, finds the waste and the repeat mistakes, proves each fix in simulation on your real traffic, and keeps your AI workloads current as models and prices change.

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.

## 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.

## Five things we find in almost every product agent

1. **Bloat.** Every tool definition rides on every call, used or not. Example fix: `tools: 41 definitions on every call` becomes `tools: the 3 this step uses, the rest on demand`.
2. **Cache breakers.** One field near the top rewrites the cache for every customer. Example fix: `system: "Today is {now}. Tenant {id}." …` becomes `system: stable prefix first, the timestamp after it`.
3. **Repeat errors.** The same failing call and retry, account after account. Example fix: `crm.search → 401 → retry → 401` becomes `refresh the token before the call → 200`.
4. **Re-learning.** Every run looks up the same config and schema again. Example fix: `get_schema · get_config · get_schema` becomes `schema and config in the starting context`.
5. **Stale setups.** Workarounds a newer release made redundant, still running. Example fix: `"Reply ONLY in valid JSON" + a repair retry` becomes `native structured output`.

The example fixes are illustrative, not measured results.

## 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.

## Keep your agents clean and current

1. Read every run: LangSmith, Langfuse, OpenTelemetry, provider logs, or the gateway in front of your own models.
2. Find the patterns above, across every run.
3. Replay each fix on your traffic, cache-aware, priced on held-out runs with a lower bound.
4. Ship it as a prompt, tool or config change, behind an A/B test with rollback.

When a new model, provider or price lands, the fix goes back to replay.

Self-hosted models: vLLM, SGLang and NIM endpoints count the same. Saved tokens come back as GPU capacity.

## Questions we keep getting

### What does Setta actually do?

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.

### Other tools already flag waste. How is this different?

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.

### Doesn’t provider caching already handle this?

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.

### Will it change what my agents do for customers?

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.

### We host our own models. Does this apply?

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.

### What do you need from us?

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.

### How does pricing work?

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.

## Guides

- [Where AI agents waste tokens, and how to find it in your traces](https://setta-ai.com/guides/where-agents-waste-tokens) ([markdown](https://setta-ai.com/guides/where-agents-waste-tokens.md)): 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](https://setta-ai.com/guides/prove-llm-savings-before-you-ship) ([markdown](https://setta-ai.com/guides/prove-llm-savings-before-you-ship.md)): 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)](https://setta-ai.com/guides/agent-cost-tools-map) ([markdown](https://setta-ai.com/guides/agent-cost-tools-map.md)): 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](https://setta-ai.com/guides/agent-cost-per-customer) ([markdown](https://setta-ai.com/guides/agent-cost-per-customer.md)): 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.

## Free audit

- **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. Request the audit at https://setta-ai.com/#cta
