Google Token Misuse Detector
3 steps1 pieces6 Sources
Google has introduced a Token Misuse detector within its Agent Anomaly Detection service, currently in Private Preview on the Gemini Enterprise Agent Platform. This tool addresses a critical flaw in traditional cost management: fixed token caps cannot distinguish between abusive AI agent sessions and legitimate heavy usage by power users, such as attorneys drafting complex memos or teams performing due diligence. Instead of counting tokens, the detector analyzes session behavior to identify three specific waste patterns: token spikes (demanding unreadable output), recursive meta-summaries (reworking previous answers instead of sources), and infinite loops (generating variations without completion).
The system employs a two-stage pipeline to maintain efficiency. A lightweight statistical screen evaluates all traffic for indicators like token usage escalation across LLM calls. Only sessions flagged by this initial pass undergo deeper analysis by Gemini, which determines if the activity is abuse or honest work. This process runs approximately two minutes behind the agent's execution, ensuring no added latency or blocking of real-time operations.
In simulated tests involving legal document-review workflows, Google reported that enabling the detector raised abuse recall from 29% to 76% and precision from 94% to 98%, with zero false positives among simulated power users. However, Google notes these results are specific to document-review agents; token growth patterns may differ in code-generation or data-pipeline contexts. The company recommends using targeted guardrails based on findings—such as capping single-turn output length or limiting follow-up turns that add no new source material—rather than implementing flat session caps.
How it got here
December 3, 2026: Google Senior Software Engineer Kevin Islas announced the Token Misuse detector in a blog post, detailing its integration into Agent Anomaly Detection on the Gemini Enterprise Agent Platform.
developers.googleblog.com ↗