Agent Misbehavior Alerts: Issues When an LLM Feature Burns Tokens Out of Pattern
Last verified on Nov 10, 2026.
An agent that misbehaves often does so quietly. It loops on a failing tool call, a prompt gets stuffed with a document ten times the usual size, a user script drives your assistant at machine speed. Each call returns a valid answer. What changes is the bill. The Sazabi agent sets up sensors that read your logs, and for LLM features one of them watches token use.
What is live
One signal feeds this category today: LLM spend spike. Token usage jumps by feature or by customer. The agent reads your logs, finds the events that record model calls, works out which fields carry the feature, the customer and the tokens, and writes and maintains the sensor. It also feeds the cost anomalies category, because the same jump is both a spend problem and a behavior problem.
Nothing else is claimed. An agent that calls an endpoint it has never used, or takes an action outside its job, is not covered today. What you get is the footprint of a runaway.
Example: a loop in a support agent
This is an example, not output from a real project. The service name and IDs are made up. Your support-agent service logs one line per model call:
2026-11-08T11:05:10Z INFO support-agent llm_call feature=ticket_reply customer=cust_4821 prompt_tokens=3120 completion_tokens=410 tool=search_kb
2026-11-08T11:05:14Z INFO support-agent llm_call feature=ticket_reply customer=cust_4821 prompt_tokens=3980 completion_tokens=395 tool=search_kb
2026-11-08T11:05:19Z INFO support-agent llm_call feature=ticket_reply customer=cust_4821 prompt_tokens=4850 completion_tokens=402 tool=search_kbThe question the sensor asks, in plain words: "Tell me when the tokens used per customer for a feature go far above what is usual." Each customer is judged on its own. One customer's loop fires without hiding in the total of everyone else.
The issue could be named "Ticket reply agent looping for cust_4821", with high severity. The analysis notes the same tool called again and again with a growing prompt, and the evidence is the call lines. You start from that instead of from the invoice at month end.
How you get told
The sensor firing records a signal, and an investigation decides whether it is real. A launch that doubles legitimate use may close without an issue. A loop opens one. You see severity, the component and the agent's analysis. You can then ask in the thread whether that customer has done it before.
Delivery rules send the Issue triggered notification to the right place, such as the team that owns the agent. Ignore or mute from the dashboard, Slack, Microsoft Teams or the CLI. Run sazabi signals list --type sensor to see raw firings.
Repeated spikes from the same loop fold into the issue while it is open.
What you need
- One log line per model call, carrying prompt and completion token counts.
- A field that tells groups apart. Feature and customer are the usual two.
- A supported log source; the OpenTelemetry integration is common for instrumented LLM calls.
What it does not cover
- Tool choice, scope or permission problems in an agent. Rogue behavior judged by what an agent did is not covered today.
- Prompt injection. A hijacked agent that stays within its usual token budget will not trip a spend sensor.
- Spend on the provider's side that is missing from your logs. If a call is not logged, it is not counted.
For the vendor-neutral view of how to catch these by behavior, read the guide to agent misbehavior and the LLM spend spikes guide. For metering, see pricing.
What Sazabi detects today
There are no monitors or alert rules to write: the Sazabi agent automatically sets up sensors for your project and maintains them over time. Sazabi opens an issue when one fires.
- LLM spend spike: Token usage jumps by feature or customer. Example: One customer's agent loop burns a week of budget in a day.
Frequently Asked Questions
What does Sazabi cover for agent misbehavior today?
One live signal: LLM spend spike, where token usage jumps by feature or customer. The Sazabi agent writes the sensor for the model calls it finds in your logs.
Does Sazabi detect an agent calling tools it should not?
Not today. Agents acting outside their normal scope is not covered. The live signal sees the cost footprint of a bad run, not the choice of tool.
Do I need to log token counts?
Yes. The sensor needs events that carry usage per call, plus a field such as feature or customer to tell groups apart. If your calls are not logged, there is nothing to compare.
Will it fire on a launch day?
A planned traffic jump still looks like a jump, so expect to dismiss some launch-day signals. The investigation closes without an issue when the rise is legitimate.
Sources
- What an issue carries, severity, lifecycle, folding of recurrences, response actions (accessed Nov 8, 2026)
- Issue triggered notification, channels and delivery rules (accessed Nov 8, 2026)
- Signals, managed investigation, issues arriving already investigated (accessed Nov 8, 2026)
- Listing sensor signals with the CLI (accessed Nov 8, 2026)