{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "leepokai-jev-guard--guard-claude-code-tool-calls",
 "repo": "leepokai/jev-guard",
 "repo_url": "https://github.com/leepokai/jev-guard",
 "repo_slug": "leepokai-jev-guard",
 "title": "Guard Claude Code tool calls with deny and ask decisions",
 "page_title": "How to guard Claude Code tool calls with deny and ask decisions with Jev Guard",
 "summary": "Add a pre-tool check to Claude Code that blocks destructive commands and asks before risky ones.",
 "who": "A developer using Claude Code on a real project who wants auto-style approvals without trusting every command the agent proposes.",
 "problem": "Claude Code can run shell commands and edits on its own, and a single destructive or off-task command can damage a workspace before anyone reviews it.",
 "outcome": "Each Claude Code tool call is scored with the session context, destructive calls are denied, risky calls show an approval prompt, and results are scanned for injected instructions.",
 "steps": [
  "Run `npm i -g jev-guard`",
  "Run `jev-guard key \"…\"` with your TypeSafe, Vercel AI Gateway or OpenRouter key",
  "Run `jev-guard install claude`",
  "Start Claude Code and run a harmless command, then run `jev-guard check Bash '{\"command\":\"rm -rf ~/\"}'` to confirm the deny output"
 ],
 "agent_prompt": "Install jev-guard from the leepokai/jev-guard repo for Claude Code on this machine, then run `jev-guard check Bash '{\"command\":\"rm -rf ~/\"}'` and report whether the output starts with DENY. Do not run the destructive command itself.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README says the guard calls a Jev model for each tool call, so you need a provider key and network access before any decision is made.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "javascript",
 "requirements": [
  "Node.js and npm, to install the jev-guard package or run the install commands",
  "One provider key: a TypeSafe key from console.typesafe.ai, a vck_ Vercel AI Gateway key, or an sk-or- OpenRouter key",
  "The coding agent you want to guard, installed on the same machine"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/leepokai-jev-guard/guard-claude-code-tool-calls/",
 "md": "https://dedupedai.com/use-cases/leepokai-jev-guard/guard-claude-code-tool-calls/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/leepokai-jev-guard--guard-claude-code-tool-calls.json",
 "api_version": "v1"
}
