Credentials. Test and source files in the searched root are sent to the selected provider, so exclude sensitive paths with --exclude when needed.
Who it is forA maintainer preparing a fix who needs to know which tests already cover a behavior such as retries on timeout.
The problemTest coverage for one behavior is spread across folders, and grep on a guessed name often misses it.
The outcomeA list of relevant test files and excerpts that show which tests cover the behavior, ready for the agent to run or extend.
What you need first
- Node.js 22+ on macOS, Linux, or Windows
- An API key for Vercel AI Gateway, TypeSafe, OpenRouter, OpenCode Zen, or a custom TypeSafe-compatible endpoint
- A local checkout of the repository you want to search
- A coding agent such as Claude Code or Codex to run the installed skill
Steps
- Run
npm install -g @dzhng/jevgrepto install the CLI. - Run
jg authto save your provider key. - Run
jg "Which tests cover retry behavior when a request times out?" .in the repository root. - Read the returned file list and excerpts, then open the cited test files to confirm they match.
Prompt for your agent
In the repository at <target path>, run `jg` with the question "Which tests cover <behavior>?" and list each returned test file with its line references. Verify that each listed file exists and contains the test before you run the suite.
Caveat. The README describes the output as evidence, so a test that looks relevant still needs to be opened and read before the agent relies on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for dzhng/jevgrep and "Locate the tests that cover a specific behavior"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer