ccvet is a PreToolUse hook that auto-approves low-risk tool calls, hard-blocks dangerous ones, and only asks you the genuinely ambiguous middle. Most of that classification happens with plain rules and heuristics, not a model call. For the leftover gray zone, you can optionally point it at any local LLM server (Ollama, LM Studio, vLLM) for a second opinion, without ever giving that model the power to block anything on its own.
Status: early, published and installable, but new. Expect rough edges (see the badge above for the current version). See Docs/PLAN.md for the build plan and Docs/risk-taxonomy.md for the full rule set.
Seeing what ccvet decided
Layer 2: an optional LLM second opinion
Security model and limitations
Claude Code's permission prompts protect you, but on a busy session the constant "allow this?" for obviously safe commands ( git status , cat , ls ) trains people to stop reading them. The prompt that actually matters gets approved on autopilot too.
ccvet front-loads a deterministic, rule-based engine that handles the overwhelming majority of tool calls with zero model calls at all, and only escalates genuinely ambiguous actions to an optional local model or to you. The goal is fewer prompts overall, so the ones that remain are worth reading.
Four layers, evaluated in order:
Hard-coded safety guards. Things like rm -rf / , sudo , git push --force , credential-file access, and obfuscated or piped-to-shell commands are always blocked. No configuration, LLM opinion, or user override can bypass this layer. It is the floor everything else sits on.
Program allow and ask lists. Read-only commands ( ls , cat , git status , git log , and so on) are auto-approved. Mutating-but-reversible commands ( git commit , npm install , docker build ) ask by default. This list ships in a plain YAML file you can extend.
Your own policy rules. Once you've reviewed a specific command and decided it's fine, promote it with one command ( ccvet allow ) so you never get asked it again. These rules can loosen or further restrict ccvet's own defaults, but they can never override layer 1.
Optional LLM classifier. For anything left in the gray zone, point ccvet at a local model server for a second opinion. It can only promote a command toward "allow". It can never produce a "deny", so a misconfigured or hallucinating model can't block your agent's work.
Full detail, including the exact command-by-command classification table, is in Docs/risk-taxonomy.md .
A note on non-interactive sessions. "Ask" means exactly that: it escalates for a human to answer. In an interactive session that's the point, it's the review step ccvet exists to add. In a headless session ( claude -p , a background agent, a CI pipeline) there's no human to answer, so an "ask" is effectively a hard stop, and most non-read-only commands land there by default. If you're running ccvet somewhere headless, build project ccvet allow rules ahead of time for the specific commands that pipeline actually runs, or wire ccvet's hook in for interactive sessions only.
Or, to track the repo directly instead of PyPI:
ccvet init wires the PreToolUse hook into your project's .claude/settings.json (or ~/.claude/settings.json with --global ), merging into any hooks you already have rather than overwriting them.
Global, project, or just this one session
Three ways to turn ccvet on, depending on how permanent you want it:
claude-ccvet is a tiny wrapper, installed alongside ccvet by the same pip3 install ccvet . It launches claude --settings '{...}' with ccvet's hook passed in as a one-off --settings payload, so nothing is written to any settings.json and nothing changes for your session. It takes the exact same arguments as claude itself ( claude-ccvet -p "..." , claude-ccvet --resume ... , and so on) and passes them straight through. It's additive, not exclusive: Claude Code merges --settings hooks with whatever your project or user settings.json already configures, so any other PreToolUse hook you already have keeps firing alongside it.
Seeing what ccvet decided
Claude Code does not show a hook's reason in the normal chat transcript for auto-approved ("allow") actions, only for blocks and escalations. To see ccvet's reasoning for every decision, including allows, in real time, run Claude Code with:
Otherwise, use ccvet's own audit log:
That gives a human-readable record of every decision ccvet has made, regardless of whether you're in debug mode. ccvet status summarizes the overall state: which hooks are wired, which policy files exist, whether Layer 2 is configured, and how large the audit log has grown.
Your rules can only loosen, or further restrict, ccvet's own judgment-call defaults. They can never bypass a hard-coded safety guard like rm -rf / or git push --force , even if you explicitly try to allow one.
Layer 2 (optional): an LLM second opinion on the gray zone
For commands that don't match any rule at all, point ccvet at any OpenAI-compatible local model server:
ccvet init also auto-detects a running Ollama or LM Studio server and offers to wire it up for you. Layer 2 is advisory in one specific direction only: it can promote a gray-zone command to "allow", but it can never turn anything into a "deny". The hard-coded safety guards keep exclusive authority to block, so a misconfigured or hallucinating local model cannot unilaterally stop your agent from working. If Layer 2 is unreachable, times out, or returns something that doesn't parse, ccvet simply falls back to asking you, exactly as if Layer 2 were never configured.
Removes only ccvet's own hook entry from .claude/settings.json (or ~/.claude/settings.json with --global ), leaving any other hooks you've configured untouched.
Security model and limitations
ccvet is a heuristic and optional-LLM advisory gate, not a sandbox. It reduces the chance of an obviously destructive command slipping through on autopilot. It does not replace running Claude Code with least-privilege permissions, in a container, or on a disposable machine for anything you don't fully trust. See SECURITY.md for the full threat model and known gaps.
Issues and pull requests are welcome, especially new entries for the risk taxonomy (a command you think should be classified differently, or a pattern that's missing entirely). See CONTRIBUTING.md .
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
