█

AI/TLDR

Buy me a coffee
Buy me a coffee

Mantis

Google's toolkit of security skills and a reference harness that let AI coding agents find, reproduce and patch vulnerabilities in a codebase

Security AgentsOpen source
Language
Python
License
Apache-2.0
$npx skills add google/mantis
IN SHORT

What is Mantis?

Mantis is an open-source toolkit from Google for running security reviews with AI coding agents. It sits in the Security Agents category of the Agents & Automation tools and is open-source, written in Python and licensed Apache-2.0. To get started: install the skills into your coding agent.

Overview

Mantis is an open-source toolkit from Google for running security reviews with AI coding agents. It has three parts: a `skills/` directory of skills an agent loads on demand, covering threat modelling, research, review, patching and reporting; a `reference/` harness built on Google's Agent Development Kit (ADK) that runs those skills as a pipeline; and an `action/` GitHub Action that runs the harness over a pull request. The README describes the skills as the method and the harness as a working starting point meant to be adapted. It is written in Python and licensed Apache-2.0.

The pipeline reads a repository's version-control history for past vulnerabilities, builds a structural index and security summaries of the code, writes a threat model, and turns it into research hypotheses for individual agents (or simply scans every file). Findings are then deduplicated, reviewed and critiqued for production viability to cut hallucinations, reproduced anywhere from a static guess to a unit test or a mock server inside a sandbox, combined into exploit chains, patched in an adversarial loop that checks the fix, and given a severity from a calibration rubric so humans see the most critical risks first. A reflection step stores what each round learned, and the `mantis-advise` skill uses that knowledge base during later development.

The README is explicit about limits. Mantis generates and executes code autonomously and should only run in isolated, restricted environments; all findings must be verified by a security expert before they are reported, and unverified AI reports must not be mass-filed to open-source maintainers. The pull-request GitHub Action is marked untested end to end and should not gate merges. Mantis is not an officially supported Google product and is intended for demonstration rather than production use.

What it does

  • Nineteen `mantis-*` skills for the whole review loop, from history mining, structural indexing and threat modelling through research, dedupe, critique, reproduction, chaining, patching, calibration and reporting
  • An ADK reference harness with `configure.py` auto-detection, a `run.sh` launcher, plain-language `--focus` hints, path exclusions, parallel campaigns and token budget caps
  • Research graph synthesis: pass an `--objective` and the harness designs a custom agent-graph topology for that audit goal
  • Sandbox options for reproducers, from static-only to microsandbox, gVisor (`runsc`) containers without network access, or Google Compute Engine VMs
  • An MCP server that gives any MCP-capable coding agent a deterministic `mantis_check_change` verdict on each diff and a background `mantis_scan_change` audit
  • A per-repository knowledge database that can be exported into the repo and imported on the next run, so later scans and the advise skill build on earlier findings

Getting started

Mantis can be used two ways: install the skills into a coding agent and run the stages yourself, or run the ADK reference harness as an automated pipeline. The README says to use it only in an isolated environment and recommends Docker plus gVisor for running AI-generated reproducer code.

Install the skills into your coding agent

The agent README says Mantis works with Gemini CLI, Antigravity CLI, Google ADK and other coding agent frameworks, and installs the skills with the skills CLI.

bashbash
npx skills add google/mantis

Or install the reference harness

Install python3-venv, then run the install script in `reference/`. Authenticate Application Default Credentials if you use Vertex AI.

bashbash
cd reference && ./install.sh
gcloud auth application-default login   # only for Vertex AI

Configure and check the setup

The configure script detects available models and sandboxes (`--interactive` starts a wizard instead), then runs a fast preflight and a live reachability probe.

bashbash
python3 scripts/configure.py --auto
python3 scripts/configure.py --test --probe

Launch a review campaign

Point `run.sh` at a file or directory. Optional flags steer the planner, leave vendored code out, or cap the token spend.

bashbash
./run.sh path/to/code
./run.sh path/to/code --focus "look for IDOR"
./run.sh path/to/code --exclude vendor,testdata
./run.sh path/to/code --max-tokens 2M

Run the stages by hand inside an agent

With the skills installed, each stage is a slash command run in order, from the knowledge base and threat model through research, review, reproduction and the final report at `workspace/report/review_packet-latest.md`.

texttext
/mantis-architecture
/mantis-threat-model
/mantis-plan
/mantis-researcher
/mantis-dedupe
/mantis-review
/mantis-critic
/mantis-reproduce
/mantis-report

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Give a coding agent a structured, multi-stage security review of a codebase you own, with reproducers and candidate patches for a security engineer to verify
  • Keep a security check running beside everyday AI-assisted coding by wiring the Mantis MCP server into Gemini CLI, Claude Code or Cursor
  • Use the skills and ADK harness as a template for an in-house review pipeline adapted to your own stack, coding standards and risk tolerance

How Mantis compares

Mantis alongside other open-source security agents tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
REA★ 485kOpen-source CLI and MCP server that lets coding agents reverse engineer apps locally, decompiling native binaries via Hopper or Ghidra and analysing JavaScript/Electron apps, recording each finding as reproducible evidence.
PentAGI★ 35.3kPentAGI is a self-hosted AI security platform that plans and runs penetration tests autonomously using a team of agents and 20+ built-in pentesting tools.
PentestGPT★ 16.7kAn open-source agent that uses large language models to run penetration tests and solve security challenges, either fully autonomously or with a human in the loop.
HexStrike AI★ 14kAn MCP server that gives an AI agent a single interface to 150+ installed security tools — Nmap, Nuclei, SQLMap, Ghidra, Hashcat and more — so it can drive reconnaissance, scanning and binary analysis itself.
IDA Pro MCP★ 13.6kAn MCP server and IDA Pro plugin that exposes decompilation, cross-references, renaming and type editing to an LLM client, letting an agent read and annotate a binary inside your IDA database.
CAI★ 9.9kCAI (Cybersecurity AI) is an open-source Python framework for building AI agents that automate offensive and defensive security tasks like recon, vulnerability discovery, and exploitation.
AiSOC★ 8.6kA self-hostable AI Security Operations Center that ingests security telemetry, correlates detections into incidents and has LLM agents triage them, logging every step to an auditable ledger.
Mantis★ 2.9kGoogle's toolkit of security skills and a reference harness that let AI coding agents find, reproduce and patch vulnerabilities in a codebase