semgrep

officialscriptablepopularsecuritybrew

Semgrep · Static analysis, security scanning, and code rules from the terminal.

$ brew install semgrep
One-liner to try
$ semgrep scan --config auto

Agent pack

Copy into an agent

A markdown-ready setup brief with install, verify, safe starting commands, and guardrails for AI agents.

Open .md
Readiness
Great for agents · 75/100
Verify
semgrep --version
Agent URL
/cli/semgrep/agent.md

Quick reference

Installbrew install semgrep
Verifysemgrep --version
First commandsemgrep scan --config auto

About

The official CLI from Semgrep. Static analysis, security scanning, and code rules from the terminal. Supports structured output — good for scripts and agents.

Example workflow

1. semgrep scan --config auto

Alternatives worth considering