Skip to content
Agents tracked: 440 Downloads (7d): 202M down 19.5% GitHub stars: 10.4M Releases (7d): 607 Agent status: all upSince last limit reset: Claude 28d · Codex 0d Updated Oct 21, 2026

Semgrep

Static analysis for many languages with rules that look like code.

Linting and formatting PyPI LGPL-2.1-or-later

Used in agent projects
3
0.2% of 1,622 Python repos built with AI coding agents
Gid Score
54 /100
#1193 of 3,794 tools, #26 in linting and formatting · ranking
In the catalog because
Public numbers
downloads and GitHub stars, added Oct 13, 2026; too rare in our project count to rank by use
Downloads
5.3M
PyPI, last 7 days, semgrep
GitHub stars
17.1K
1,112 forks · last push Oct 20, 2026

How Semgrep is used

Semgrep joined the catalog on its public numbers (5,313,263 downloads a week on PyPI and 17,141 GitHub stars), not on our project count: it is a dependency in 8 public GitHub projects of our scan, 3 of them set up for AI coding agents. The most used alternative in our scan is Bandit (12 projects). Projects that use it most often also use Pydantic (87.5%), python-dotenv (87.5%), PyYAML (87.5%).

Semgrep popularity over time

Top tools by Gid Score

Semgrep: downloads per weekPyPI, semgrep 5,218,155
Semgrep: GitHub starssemgrep/semgrep 17,141

Gid Score 54: downloads 79, use in agent projects 14, GitHub stars 59, downloads trend 52 (each 0-100). How it is calculated.

Often used with Semgrep

Pydantic87.5% of Semgrep projects · 10.1× more than average
python-dotenv87.5% of Semgrep projects · 9.5× more than average
PyYAML87.5% of Semgrep projects · 14.7× more than average
Rich87.5% of Semgrep projects · 24.5× more than average
Click75.0% of Semgrep projects · 30.0× more than average
FastAPI75.0% of Semgrep projects · 10.0× more than average
Jinja275.0% of Semgrep projects · 34.5× more than average
jsonschema75.0% of Semgrep projects · 46.1× more than average

Agent Skills for Semgrep

semgrep-rule-creator from trailofbits/skillsCreates custom Semgrep rules for detecting security vulnerabilities, bug patterns, and code patterns. Use when writing Semgrep rules or building custom static …
npx skills add trailofbits/skills --skill semgrep-rule-creator

Skills teach your coding agent how to use Semgrep well. Official means the pack comes from the same GitHub account as Semgrep. Read a skill before installing it: it can include scripts. All Agent Skills

Install

Packagepip install semgrep
Main stacksPython (7), React Native / Expo (1)
Example projectspresident-xd/revula, VulnBuster/agent

Alternatives to Semgrep

All linting and formatting

Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Semgrep are not listed here; they are in "Often used with".

Tool Gid Score Used in agent projectsDownloads / wk GitHub starsLicense
Bandit pypi
Security-focused static analyzer for identifying vulnerabilities in Python code.
57 12 (0.7%) 6.5M 8,325 Apache-2.0

More in Linting and formatting: ESLint Prettier Biome oxlint oxfmt Knip stylelint ESLint Import Resolver TypeScript

Is Semgrep right for your project? Ask AgentGid →