Who it is forA team that wants a first security scan of an existing repository.
The problemNobody has checked the codebase and its dependencies for known vulnerable patterns.
The outcomeA report of findings in your source code and its dependencies.
What you need first
- Python and pip, or pipx, uv, Homebrew or Docker
- A project directory to scan
- Optional free Semgrep account for extra rules
Steps
- Install with
uv tool install semgrep - Run
semgrep loginto create your account and log in, which is optional but unlocks more rules - Go to your app's root directory
- Run
semgrep cito scan the project - Triage the findings and fix the real ones
Prompt for your agent
With semgrep/semgrep installed via `uv tool install semgrep`, run `semgrep ci` in my project root and group the findings by severity with a suggested fix for each.
Caveat. The README says registry configs report pseudonymous rule metrics; use --metrics=off to disable them.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for semgrep/semgrep and "Scan a project for vulnerabilities with Semgrep ci"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer