We Found a Runaway LLM Loop in Production — Here's What the Trace Showed
A single Extremis trace showed the same LLM span repeating in a loop. Here's what peekr's trace view revealed and how to catch unbounded agent loops before your users do.
Peekr Blog
Practical guides on building reliable, compliant AI agents — cost tracking, hallucination detection, HIPAA, GDPR, and more.
More posts
A single Extremis trace showed 38 identical LLM calls, 99 seconds, and $0.55 spent producing empty results. Peekr was evaluating its own judge. Root cause and fix in peekr 0.9.3.
June 11, 2026
A single Extremis trace showed the same LLM span repeating in a loop. Here's what peekr's trace view revealed and how to catch unbounded agent loops before your users do.
June 11, 2026
We pointed Peekr at our own memory system and found a single answer firing 122 LLM calls in one trace — a fan-out cascade that error rates, cost alerts, and N+1 detectors all missed. Here's why it was invisible, and the detector that surfaces it.
June 6, 2026
Running RAGAS hallucination scoring after every LLM call was adding 5–10s to our response times. Here's the async pattern that eliminates that latency entirely — and how Peekr now detects it automatically.
June 3, 2026
Our AI agent was taking 279 seconds to process a batch of documents. Peekr's trace waterfall showed exactly why in 30 seconds. Here's the bug, the fix, and what a 7.5× speedup looks like.
June 3, 2026
Federal Decree-Law No. 45/2021 applies to every AI agent handling personal data in the UAE. Here's what it requires, which output patterns violate it, and how to enforce compliance automatically in Python.
June 2, 2026
The Dubai Health Authority has specific rules for AI systems handling patient data and medical information. Here's what DHA requires, which LLM output patterns violate it, and how to enforce compliance in Python.
June 2, 2026
A clinical documentation startup needed to prove HIPAA compliance before signing an enterprise hospital contract. Here's how they built the evidence layer their auditor needed — without changing their agent code.
June 2, 2026
The DIFC Data Protection Law 2020 is GDPR-equivalent and applies to every AI system operating in or from Dubai's financial centre. Here's what it requires, how it differs from GDPR, and how to enforce it automatically in Python.
June 2, 2026
LangChain agents fail silently. Here's how to add trace-level visibility to every tool call, LLM invocation, and chain step — two lines of code, no wrappers required.
June 2, 2026
Most teams swap to a cheaper model when agents run slow. The trace usually tells a different story. Here's how to find the real bottleneck in your agent's latency profile.
June 2, 2026
How to build HIPAA-compliant AI agents in Python: what the Privacy Rule requires, which patterns to block, and how to enforce them automatically on every LLM call.
June 1, 2026
Saying 'HIPAA enforced' is easy. Here are the exact regex patterns, required disclosure rules, and prohibited output checks that run on every LLM call when you enable Peekr's HIPAA compliance pack.
June 1, 2026
Total LLM spend is a vanity metric. Cost per query is the number that tells you whether your AI agent is getting more expensive to run — and how to track it in Python with two lines of code.
May 31, 2026
Hallucination benchmarks measure what your model can do. Production monitoring measures what it actually does. Here's how to detect hallucinations on live traffic using sentence-level claim verification.
May 30, 2026
Free tier — 10k spans/month. No credit card.