Source control for coding agents: links each commit to the agent session that produced it, and lets multiple agents share one project memory.
dzhng/jevgrep
A CLI that finds relevant code by natural-language question, returning files, leads and source excerpts for coding agents.
- Stars
- 3,198
- Forks
- 245
- Open issues
- 10
- Last commit
- 6 hours ago
What is it?
Jevgrep (the `jg` command) answers questions about a codebase such as "How are telemetry events recorded and sent?" by returning relevant file locations, reading leads and verbatim source excerpts in one stdout response. It uses the Jev model to judge relevance across folders, files and declarations, so a coding agent can start from the right code instead of spending steps on manual search.
It explores the repository hierarchy, selects files using content previews, and identifies useful source units with surrounding context. Declaration parsing covers Python, TypeScript/JavaScript, Go and Rust, with other text handled by a fallback. Searches send eligible source to the provider chosen during setup, and default filtering skips ignored, hidden, binary and obvious credential files.
The tool runs on Node.js 22+ across macOS, Linux and Windows, and supports Vercel AI Gateway, TypeSafe, OpenRouter, OpenCode Zen or a custom TypeSafe-compatible endpoint. A `jg skill` installer adds an agent skill to detected coding agents such as Claude Code, Codex and OpenCode.
Key features
- 01Answers natural-language questions about where behavior lives in a codebase.
- 02Returns a file list, source excerpts with line references and declaration locations.
- 03Parses declarations for Python, TypeScript/JavaScript, Go and Rust.
- 04Respects ignore files and filters hidden, binary and credential-like files by default.
- 05Includes `jg files` to count files a search would read, without a network request.
Use cases
- Locating authentication or request-handling logic in an unfamiliar repository.
- Finding which tests cover a specific behavior before changing code.
- Giving a coding agent starting context for a cross-file change.
Quick start
- 1
Install the CLI globally with npm
npm install -g @dzhng/jevgrep - 2
Save your provider API key with auth
jg auth - 3
Install the agent skill so your coding agent knows how to use jg
jg skill - 4
Ask a question about a repository
jg "How are telemetry events recorded and sent?" ./my-project
Things to know
- Requires Node.js 22+ and an API key from a supported provider such as Vercel AI Gateway or OpenRouter.
- Sends eligible source content to the selected external provider, and sensitive-file detection is best-effort only.
- Most useful for questions spanning unfamiliar files; direct reads or rg may suffice for known symbols.
Featured in Repolode Weekly
- Issue #2 · A Rust headless browser for agents, and typed .sql imports
Ask in plain language where some behavior lives in a codebase and get back a file list, source excerpts with line references and declaration locations, aimed at coding agents. Declarations are parsed for Python, TS/JS, Go and Rust.
In collections
Topics
FAQ
- What is jevgrep?
- A CLI that finds relevant code by natural-language question, returning files, leads and source excerpts for coding agents. Jevgrep (the `jg` command) answers questions about a codebase such as "How are telemetry events recorded and sent?" by returning relevant file locations, reading leads and verbatim source excerpts in one stdout response. It uses the Jev model to judge relevance across folders, files and declarations, so a coding agent can start from the right code instead of spending steps on manual search.
- Is jevgrep free to use? What license does it have?
- jevgrep is open source under the MIT license. Check the license terms before using it in commercial products.
- Is jevgrep still maintained?
- Actively maintained. The last commit to jevgrep was on Nov 7, 2026.
- What can I use jevgrep for?
- Locating authentication or request-handling logic in an unfamiliar repository. Finding which tests cover a specific behavior before changing code. Giving a coding agent starting context for a cross-file change.
- How do I install jevgrep?
- Install the CLI globally with npm: npm install -g @dzhng/jevgrep Save your provider API key with auth: jg auth Install the agent skill so your coding agent knows how to use jg: jg skill Ask a question about a repository: jg "How are telemetry events recorded and sent?" ./my-project
- Where can I get jevgrep?
- The source code and installation instructions are on GitHub: https://github.com/dzhng/jevgrep
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A privacy-first CLI for semantic code search with local embeddings, call-graph tracing, and an MCP server for AI coding agents.
A collection of CLI tools, skills, hooks, and plugins that add productivity features to Claude Code and other CLI coding agents.
Configures AI coding agents like Claude Code, Cursor, OpenCode and Codex with persistent memory, shared workflows, skills and MCP servers.
Local-first desktop workbench that runs multiple coding agents in parallel, each in its own git worktree, with diffs, editor, terminals and PR actions in one window.
An open-source MCP server that lets coding agents like Claude Code, Codex and Cursor message each other, claim files and share task state locally.