DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to locate the tests that cover a specific behavior with Jevgrep

Ask which tests exercise a behavior so an agent can run or extend the right suite.

Short answer: Run npm install -g @dzhng/jevgrep to install the CLI; then run jg auth to save your provider key; run jg "Which tests cover retry behavior when a request times out?" . in the repository root. All steps.

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

  1. Run npm install -g @dzhng/jevgrep to install the CLI.
  2. Run jg auth to save your provider key.
  3. Run jg "Which tests cover retry behavior when a request times out?" . in the repository root.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer