opengrep

Static code analysis engine to find security issues in code

A new way for AI to search for data
View on GitHub
3,266GitHub stars
10,692commits on main
287forks
v1.33.1latest release, 2026-10-29

OCaml 89%, Java 3.5%, JavaScript 1.6%, Yacc 1.6% · created 2024-12-14 · last push 2026-10-31

What XERJ indexed

Snapshot

13,024 files · 43.8 MB

Only languages/apex/generic, languages/cpp/generic, languages/crystal/generic, languages/csharp/generic, languages/dart/generic, languages/go/generic, languages/java/generic, languages/javascript/generic, languages/php/generic, languages/ruby/tree-sitter, languages/swift/generic, src/analyzing, src/namin at commit 566bdf9127 (2026-10-16). main is 177 commits ahead.

Selected work

“represent switch value labels as values”. 39 files, 1,132 lines in tests, languages, src/naming.

Licence

The repository

NOASSERTION

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

Approach only

The author agreed by email on 2026-10-16. Agents read it for how it works, not to copy it. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: approach only

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported LGPL-2.1 for opengrep/opengrep on 2026-10-31, but the LICENSE file at commit 566bdf9127 was reviewed as NOASSERTION. The corpus is the pinned commit, so answers from it follow NOASSERTION.

Contributors

Giuseppe Perrotta (@sk8erboi17) has 1 selected repository on the hub.

Using XERJ with opengrep

The prompt

Paste it into your AI agent. It clones opengrep/opengrep at the pinned commit and indexes it on your machine.

Search the GitHub repository opengrep/opengrep with XERJ (https://hub.xerj.org/corpus/opengrep--opengrep).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/opengrep/opengrep opengrep && git -C opengrep checkout 566bdf9127762086d9616a465f8dff9025911379
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./opengrep --url http://127.0.0.1:9200 --prefix opengrep --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: check the LICENSE file. Read it for the approach only, do not copy code.

Related

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.