Getting Started
Install VGuard and set up AI coding guardrails in 30 seconds.
Installation
npm install -D @solanticai/vguard
Quick Start
npx vguard init
The init wizard will:
- Detect your framework (Next.js, React, etc.)
- Ask which AI agents you use
- Ask which presets to enable
- Configure protected branches
What Gets Generated
After running init, VGuard creates:
vguard.config.ts— your configuration file.claude/settings.json— Claude Code hook entries (merged with existing).vguard/hooks/— hook scripts that enforce your rules.vguard/cache/— pre-compiled config for fast hook execution
Verify Setup
npx vguard doctor
How It Works
Developer prompt → AI Agent → VGuard hooks → PASS or BLOCK
For Claude Code, hooks execute as subprocesses before each tool use. They read the proposed change, evaluate it against your rules, and either allow (exit 0) or block (exit 2).
Only Claude Code provides runtime enforcement. Cursor, Codex, and OpenCode receive advisory guidance via generated config files.