opengrep
Static code analysis engine to find security issues in code
What XERJ indexed
Snapshot
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
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
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
- Where does opengrep handle “represent switch value labels as values”?
- What does languages do in opengrep?
Inside the indexed corpus
- 13,024 files, 43.8 MB in total, about 3.4 KB per file.
- The selected commit changed 39 of those files (0.3%).
- Languages by size: OCaml 89%, Java 3.5%, JavaScript 1.6%, Yacc 1.6%, Python 1%.
- On GitHub since 2024-12-14, last push 2026-10-31, 10,692 commits on main.
- The pin is 177 commits behind main; the corpus answers from the pinned code, not the newest.
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
- Index a monorepo so your agent stops reading the whole repo The pinned tree has 13,024 files.
- Batch lookup CVE and GHSA IDs offline in one query The hub files it under Security and vulnerabilities.
- Best MCP servers for local code search in 2026, compared
- Best grep alternative for AI coding agents (2026)
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
Giuseppe PerrottaSecurity and vulnerabilities corporacatala-law-langripe-lang/ripesyaiful6/tapakMarcosAsh/protocol-emulator
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.