@deepwissen/vet
v0.1.17
Published
vet — scan what your AI agent is about to touch (secrets, trap files, risky tool configs) before you open the PR. Local, detect-and-explain only.
Maintainers
Readme
vet
Scan what your AI agent is about to touch — before you open the PR.

vet is a local, pre-PR security gate for AI-assisted development. It inspects your
changed files for the things that bite agentic workflows:
- 🔑 Secrets — hardcoded credentials, with a louder flag for long-lived / non-expiring ones
- 🪤 Trap files — safe to read, not safe to auto-process: unsafe deserialization
(
pickle/torch/yaml.load…) and data-file traps (template expressions, externalreference://payloads) - 🤖 Excessive agency (OWASP LLM06) — agent configs that let the AI act without you:
Bash(*),--dangerously-skip-permissions, auto-approve-execute, across Claude Code, MCP, Cline/Roo, Aider, Codex, Continue - 🧩 Tool-config risk — MCP configs with embedded secrets, prompt-injected tool descriptions, over-broad auto-approve grants, or unpinned (supply-chain-risky) servers
- 📏 Instruction-file integrity — hidden unicode, bidi overrides, prompt injection,
LLM role-tag spoofing in
CLAUDE.md/.cursorrules/ copilot instructions / prompt files
All analysis is local and detect-and-explain only — vet never modifies your files
and never sends anything anywhere. It's the same engine behind the
AI Preflight VS Code extension
(@deepwissen/preflight-core).
Install
npx @deepwissen/vet # run without installing
npm i -g @deepwissen/vet # or install the `vet` commandThe detection rules live in @deepwissen/preflight-core, pulled in automatically.
vet --version shows both so you can confirm which engine you're on:
$ vet --version
0.1.14 (engine @deepwissen/preflight-core 0.1.30)Getting an old version from
npx? npx caches installs and may reuse a stale one even with@latest. Pin the exact versionnpx @deepwissen/[email protected], ornpx --ignore-existing @deepwissen/vet, or clear the cache withrm -rf ~/.npm/_npx. Runvet --versionto confirm the engine version updated.
Trust & safety
vet asks for read access to your codebase, so here's what it does and doesn't do —
every point is checkable, not just claimed:
- Runs entirely locally — no network, no telemetry. It opens no sockets and sends
nothing anywhere: not your code, not the findings. Verify it: run
vetwith your network off, or watch it with your firewall /lsof— you'll see zero connections. - Read-only. Scanning never modifies your files. The only command that writes is
vet canary, and only when you run it explicitly — it creates a local, clearly labelled fake-credential file and reverses everything withvet canary --cleanup. - No install scripts. Installing
vetruns nopreinstall/postinstallhooks — nothing executes until you invoke the command yourself. - Zero third-party dependencies.
vetpulls only its own first-party engine (@deepwissen/preflight-core), which itself has none — so there's no transitive tree of other people's code to trust. Check:npm view @deepwissen/vet dependencies. - Open source and inspectable. The code is public
(vet,
engine) and the npm package is a small
dist/bundle you can read:npm pack @deepwissen/vet. - No known vulnerabilities in Snyk's database (independently indexed).
And it never tells you you're "safe" — a clean scan means nothing was found, not that
nothing is there. vet surfaces candidates to review, each with a reason and a fix.
Usage
vet # scan git staged changes (default)
vet --since main # scan files changed since a ref
vet src/ config/ # scan specific files/dirs
vet --json # machine-readable JSON
vet --sarif # SARIF 2.1.0 → GitHub code scanning annotations
vet --fail-on any # fail on any finding (default: error — real exposures only)
vet --history # scan git history — catch secrets added in past commits,
# even if later deleted (bound with --since <ref>)
vet canary # runtime test: does your agent read ignored files?Exit codes: 0 clean · 1 findings at/above --fail-on · 2 usage/error.
vet canary — the runtime test scanning can't do
Ignore files (.cursorignore, .claudeignore, …) are best-effort requests, not
walls. vet canary writes a clearly-fake, local-only credential to an ignored
path, then you ask your agent a general question without naming the file — if the
token shows up, your ignore rules didn't stop it. vet canary --check searches
locally for leaks; vet canary --cleanup reverses everything. See
COMMANDS.md.
In CI (fail the PR on findings)
- run: npx @deepwissen/vet --since origin/main --sarif > vet.sarif
- uses: github/codeql-action/upload-sarif@v3
with: { sarif_file: vet.sarif }Pre-commit hook
# .husky/pre-commit
npx @deepwissen/vet --staged --fail-on any