What it is
Semgrep Guardian is a plugin for AI coding agents that brings Semgrep's code, dependency and secrets scanning to the moment code is generated. It bundles an MCP server, hooks that fire on every file write, and skills. In the week of October 26, 2026, Semgrep made Guardian Policies and local developer rules generally available, so security teams choose which rules Guardian enforces separately from CI scans, and developers can add their own.
Key features
- Write-time scanning. Hooks run a scan whenever the agent writes a file; since mid-October, scans run in the background so the agent no longer pauses for each one.
- Dependency firewall. Guardian blocks malicious or hallucinated packages at the network layer before the agent can install them on a developer laptop.
- Secret blocking. Credentials are caught before they are committed, and Guardian sets environment variables so keys stay out of version control.
- Policies and local rules. Org rules come from the Policies page or Semgrep Editor, while developers can drop rule files into a guardian-rules folder, up to 50 per scan.
Who it's for
Security and platform teams at companies where developers rely on Claude Code, Codex, Cursor or Windsurf, and who want guardrails enforced before code reaches a pull request. It suits regulated teams that need a record of what agents generated and which checks ran.
Pricing
30-day free trial, then a paid plan (Guardian price not listed); Teams: Code $30, Secrets $15 per contributor/month
The pricing page does not list a separate Guardian price. Release notes say new organizations can start a 30-day free trial and then upgrade to a paid plan. For context, the Teams plan lists Code and Supply Chain at $30 and Secrets at $15 per contributor per month, and the Free Edition covers up to 10 contributors.
Pricing checked November 13, 2026 on the official pricing page
Limitations
Guardian's price after the trial is not published, so expect a quote. On Windows, the Codex integration requires WSL, and GitHub Copilot CLI support is still a public beta on macOS and Linux. Each scan runs at most 1,000 organization rules and 50 local rules, and the newest rule controls target the Claude Code and Codex plugins first.
Alternatives
- Aikido Security — Broader platform covering code, cloud, runtime and AI pentests with a free developer tier, rather than a plugin focused on coding agents.
- ClickHouse Security — Agentic SIEM for investigating security logs after the fact; it watches production events instead of code as it is written.
Our take
On paper, Guardian targets a real gap: agent-written code often skips the review habits teams rely on, and catching secrets and bad packages at write time is cheaper than catching them in CI. Teams already paying for Semgrep can trial it with little friction. Others may want a published price first, and should confirm their agent of choice is fully supported.
Based on Semgrep's public documentation, pricing page and release notes, not a hands-on review. Written by Alex Morgan.
Official links
- Semgrep Guardian website
- Semgrep Guardian pricing
- Guardian Policies and local developer rules become generally available