{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "dzhng-jevgrep--trace-behavior-before-agent-edits",
 "repo": "dzhng/jevgrep",
 "repo_url": "https://github.com/dzhng/jevgrep",
 "repo_slug": "dzhng-jevgrep",
 "title": "Find the code behind a behavior before an agent edits it",
 "page_title": "How to find the code behind a behavior before an agent edits it with Jevgrep",
 "summary": "Ask a repository question and get files, leads, and source excerpts to start an unfamiliar change.",
 "who": "A developer new to a codebase who has been asked to change a behavior but does not know which files implement it.",
 "problem": "Coding agents spend part of every unfamiliar task finding the right files, and the developer lacks a starting point.",
 "outcome": "A stdout summary with a compact file list, selected source with line references, and declaration and call locations to guide the change.",
 "steps": [
  "Run `npm install -g @dzhng/jevgrep` to install the CLI.",
  "Run `jg auth` and choose your provider and key.",
  "Run `jg skill` from the project where your agent works.",
  "Run `jg \"How are telemetry events recorded and sent?\" ./my-project` with your own question and path."
 ],
 "agent_prompt": "Use the jevgrep skill in this repository to run `jg` with the question \"<question about the behavior>\" against <target path>. Report the files, line references, and source excerpts it returns, and confirm each cited file exists before you propose any edit.",
 "agents": [
  "claude-code",
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Jevgrep returns evidence for the agent to judge, not a generated answer or a guarantee that every relevant file was found.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "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"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Eligible source from the search root is sent to the provider you selected, and the credential filter is best-effort, so choose a root you intend to share."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/dzhng-jevgrep/trace-behavior-before-agent-edits/",
 "md": "https://dedupedai.com/use-cases/dzhng-jevgrep/trace-behavior-before-agent-edits/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/dzhng-jevgrep--trace-behavior-before-agent-edits.json",
 "api_version": "v1"
}
