Security scans for your agent.

GrepRules gives Claude Code, Codex, and Hermes SAST rules matched to your code. The plugin fetches rules from the open registry and runs Opengrep locally, so your agent can review findings and suggest fixes.

  1. /greprules:scan
  2. Selecting rule packs for the files you edited
  3. Fetching python-security from greprules.io
  4. Running Opengrep on this machine
  5. Writing results for the agent to review
  6. Claude reviews the findings and suggests fixes.
An example session in Claude Code

Add it to your agent

Choose your agent below. The plugin installs the GrepRules CLI and Opengrep. Run configure to check your setup, then scan.

Install

/plugin marketplace add greprules/greprules
/plugin install greprules@greprules
/reload-plugins

Then, in a session

/greprules:configure
/greprules:scan

Automatic scans at the end of an agent's turn are off by default. Turn them on with configure.

Your code stays on your machine

greprules.ioThe open registry

Your machine

  1. Your agent edits code

    Scan the files it edited, your Git changes, a path, or the whole repository.

  2. Rules picked for your code

    Matched by language and framework. Fetched packs are pinned, so the next scan uses the same rules.

  3. Opengrep runs locally

    Results are written under .greprules/ in your project. JSON and SARIF output for CI.

  4. Your agent reviews

    It reads the findings and suggests fixes in the same conversation.

Find rules for your stack

Each rule page shows

  • License
  • Source
  • Validation status
  • Quality score

Public rules can be browsed and fetched without signing in.

Browse the rules
Indexed rules
6,960
Rule fetches
14M

As of November 18, 2026, from greprules.io

Know what is open source

View on GitHub
CLI and agent plugins
Apache-2.0, developed in the open on GitHub.
Registry, schemas, and docs
Registry pages, schemas, manifests, and project docs are public. Provally runs the hosted registry and API.
Rules
Rules carry their own licenses. Check the license on a rule's page before you reuse it.

Scan your next code change.

Free and open source. Scan locally and review findings with your agent.