DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use Semgrep: what you can do with it

What is Semgrep? Semgrep is a fast static analysis engine for finding bugs and vulnerabilities in source code and dependencies. Rules look like the code you already write, it supports 30+ languages, and it runs from the CLI, in CI on pull requests, or as an MCP server for AI coding assistants.

How do I use it? Install with pipx install semgrep; then run semgrep -e '$X == $X' --lang=py path/to/src, using your own source path; read each match, which is a Python comparison with identical sides and a possible bug. Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

3 use cases

Quick start with Semgrep

  1. Check you have what it needs: Python and pip, or pipx, uv, Homebrew or Docker; A project directory to scan; Optional free Semgrep account for extra rules.
  2. Open semgrep/semgrep on GitHub and read the README and license.
  3. Install with pipx install semgrep
  4. Run semgrep -e '$X == $X' --lang=py path/to/src, using your own source path
  5. Read each match, which is a Python comparison with identical sides and a possible bug
  6. Change the pattern and rerun to look for other shapes

These steps come from our top use case, Search your code for a bug pattern in one command, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for semgrep/semgrep

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Security and science

About this repo

  • Who it is forDevelopers and security engineers who want code scanning in the terminal and in pull requests.
  • Why it is hot17k stars, talked about in 2 AI sources we track
  • LanguageC
  • Sourcegithub.com/semgrep/semgrep ยท Back to Hot repos

Requirements

  • Python and pip, or pipx, uv, Homebrew or Docker
  • A project directory to scan
  • Optional free Semgrep account for extra rules

Add this badge to your README

Maintain Semgrep? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/semgrep/semgrep.svg)](https://dedupedai.com/use-cases/semgrep-semgrep/?utm_source=github&utm_medium=badge&utm_campaign=semgrep-semgrep)

HTML

<a href="https://dedupedai.com/use-cases/semgrep-semgrep/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=semgrep-semgrep"><img src="https://dedupedai.com/badge/semgrep/semgrep.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about Semgrep

What is Semgrep?

Semgrep is a fast static analysis engine for finding bugs and vulnerabilities in source code and dependencies. Rules look like the code you already write, it supports 30+ languages, and it runs from the CLI, in CI on pull requests, or as an MCP server for AI coding assistants. It is an open-source project on GitHub: https://github.com/semgrep/semgrep.

How do I use Semgrep?

Install with pipx install semgrep; then run semgrep -e '$X == $X' --lang=py path/to/src, using your own source path; read each match, which is a Python comparison with identical sides and a possible bug. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is Semgrep for?

Developers and security engineers who want code scanning in the terminal and in pull requests.

What can I do with Semgrep?

3 use cases so far, for example: Search your code for a bug pattern in one command; Scan a project for vulnerabilities with Semgrep ci; Give your AI coding assistant Semgrep scans over MCP. Each has steps and a copy-paste agent prompt.

What do I need to run Semgrep?

Python and pip, or pipx, uv, Homebrew or Docker; A project directory to scan; Optional free Semgrep account for extra rules.

What are alternatives to Semgrep?

Other hot AI repos in Security and science: Failproofai, Codex Security, Chgnet, Mace, Syft.

Is Semgrep safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.