According to Google, typical AI code scanning suffers from hallucinated bugs and weak true-positive rates below 7%. Mantis aims to improve on this by combining industry-standard agentic techniques, such as critic and review agents, with sandboxed reproduction of vulnerabilities to ground findings in real evidence.
The framework does not blindly scan files. Instead, it analyzes repository history, previous security fixes, architecture, and threat models. It summarizes files into a hierarchical tree containing directory- and repository-level context, which Google says reduces token usage by 85% while retaining important structural information.
Mantis uses a strategist agent to evaluate high-level code structure, threat models, and dependency graphs, alongside research agents that examine raw source files in depth, tracing data flows, control flows, and sanitization logic. The system is organized as a modular skill suite with over 15 tools that can be executed sequentially or in parallel. Stages communicate by reading and writing to a shared state stored on disk.
The framework supports multiple AI models and allows combining different models for different phases of the scanning pipeline. Mantis is part of Google's internal effort to find and fix vulnerabilities at machine speed.