{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "nassim-arifette-jevgrep--scoped-json-search-for-automation",
 "repo": "nassim-arifette/jevgrep",
 "repo_url": "https://github.com/nassim-arifette/jevgrep",
 "repo_slug": "nassim-arifette-jevgrep",
 "title": "Run scoped searches that return JSON for scripts",
 "page_title": "How to run scoped searches that return JSON for scripts with Jevgrep",
 "summary": "Limit a search to chosen folders and read a validated JSON result with exit codes.",
 "who": "A developer or CI-minded engineer who wants a script or pipeline to run a behavior search over selected directories and act on the result.",
 "problem": "Pipelines need machine-readable output and a reliable way to tell a complete result from a partial one.",
 "outcome": "A validated JSON response limited to the chosen directories, with coverage information and an exit code that shows whether the result is complete.",
 "steps": [
  "Run `npm install -g @nassim-arifette/jevgrep` and complete `jevgrep init --global` and `jevgrep init` for the repository",
  "Run `jevgrep inspect` to confirm the eligible scope",
  "Run `jevgrep search --query \"How are permissions checked?\" --scope src --scope tests --json` (inferred, check the README)",
  "Read the exit code: `0` means complete, `3` means partial, and `2` or `4` mean a problem to handle",
  "Only add `--allow-partial` if a partial deterministic scan is acceptable for your workflow"
 ],
 "agent_prompt": "Run `jevgrep search --query \"<behavior question>\" --scope <folder> --json` in the repository at <repo path> and parse the JSON output. Verify that you check the exit code and report whether the result is complete or partial before drawing any conclusion.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Results are scored by a remote provider, so a complete JSON result still depends on that provider's scoring and an empty result is not proof that code does not exist.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js 24",
  "npm",
  "An API key for TypeSafe AI, Vercel AI Gateway or OpenRouter",
  "Permission to send eligible source excerpts from the target repository to the chosen provider"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.7,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nassim-arifette-jevgrep/scoped-json-search-for-automation/",
 "md": "https://dedupedai.com/use-cases/nassim-arifette-jevgrep/scoped-json-search-for-automation/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/nassim-arifette-jevgrep--scoped-json-search-for-automation.json",
 "api_version": "v1"
}
