Run it
Deterministic checks only. No AI guessing, nothing uploaded. Each finding says what was detected, why it matters and what to do.
Run it from your project root (or pass --cwd <dir>). It reads files, package.json and config; it never runs your code. Add --no-audit to skip the npm audit step.
What it looks at
| Check | Level | Fix |
|---|---|---|
| Secrets in code (redacted in the report) | restricted | Rotate the key. Never edited for you. |
.env committed to git | restricted | Manual |
.env files not ignored | automatic | doctor.env-ignore |
Env vars missing from .env.example | automatic | doctor.env-example |
| No Content-Security-Policy | recommended | doctor.csp-report-only (Netlify) |
| Node version not pinned | recommended | doctor.engines |
| No automated tests | recommended | Manual |
| API routes without rate limiting | recommended | Manual |
| No error monitoring | recommended | Manual |
| High/critical vulnerable dependencies | recommended | Run npm audit fix and re-test |
If Vibe Accounts is installed (a vibe-id.config.json exists), Vibe Check also checks its files, dependencies, endpoint wiring and which pages load the client.
Fix and undo
Findings with a fix id can be applied in one command. You see the diff and approve it first.
--yesapproves without the prompt (CI, agents). Restricted changes still need--confirm "I understand".- After applying, it re-scans and confirms the finding is resolved.
- Every change is journaled with a backup of each file it touches.
Run revert with no id to list what can be undone. Prefer a UI? Vibe Settings shows the same findings with one-click fixes.
Exit codes
| Code | Meaning |
|---|---|
0 | No blocking problems. Recommendations are listed as warnings but don't fail the run. |
1 | A restricted problem (leaked secret, committed .env), Node below 20, or a broken Vibe Accounts install. |
Need machine-readable output? vibe-tools scan --json prints the project profile and every finding.
Anatomy of a finding
{
id: 'doctor.env-ignore',
title: '.env files are not ignored',
detected: '.env exists but .gitignore doesn\'t cover it.',
why: 'One `git add .` away from publishing your secrets.',
action: 'Add .env* (keeping .env.example) to .gitignore.',
level: 'automatic', confidence: 'high', impact: 'high',
evidence: [{ file: '.env', match: 'not ignored' }],
}
Fixes follow the safety levels. Findings and your decisions are saved to .vibe/state.json.