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.
- /greprules:scan
- Selecting rule packs for the files you edited
- Fetching python-security from greprules.io
- Running Opengrep on this machine
- Writing results for the agent to review
- Claude reviews the findings and suggests fixes.
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-pluginsThen, in a session
/greprules:configure
/greprules:scanInstall
codex plugin marketplace add greprules/greprules --sparse .agents/plugins --sparse plugins/codexEnable greprules under Plugins in the Codex app, or /plugins in the CLI. Then:
$greprules-configure
$greprules-scanInstall
hermes plugins install greprules/greprules --enableThen
/greprules configure
/greprules scanInstall
curl -fsSL https://greprules.io/install.sh | shScan
greprules scan --changed
greprules scan . --sarif --output result.sarifAutomatic 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
Rules onlyNothing else is fetched.
Rule feedback, only if you approveA false-positive report or a new rule proposal.
Your machine
Your agent edits code
Scan the files it edited, your Git changes, a path, or the whole repository.
Rules picked for your code
Matched by language and framework. Fetched packs are pinned, so the next scan uses the same rules.
Opengrep runs locally
Results are written under .greprules/ in your project. JSON and SARIF output for CI.
Your agent reviews
It reads the findings and suggests fixes in the same conversation.
Find rules for your stack
Search greprules.io by
- CVE
- CWE
- Language
- Framework
- Rule slug
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.