https://github.com/solanticai/vibe-guard
AI coding guardrails framework. Runtime-enforced quality controls for Claude Code, Cursor, Codex, and more.
https://github.com/solanticai/vibe-guard
ai claude-code code-quality codex cursor developer-tools guardrails hooks linter typescript
Last synced: 3 months ago
JSON representation
AI coding guardrails framework. Runtime-enforced quality controls for Claude Code, Cursor, Codex, and more.
- Host: GitHub
- URL: https://github.com/solanticai/vibe-guard
- Owner: solanticai
- License: apache-2.0
- Created: 2026-04-01T07:58:21.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2026-04-06T08:58:32.000Z (3 months ago)
- Last Synced: 2026-04-06T10:10:48.851Z (3 months ago)
- Topics: ai, claude-code, code-quality, codex, cursor, developer-tools, guardrails, hooks, linter, typescript
- Language: TypeScript
- Homepage: https://vguard.dev/docs
- Size: 720 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# VGuard
**AI coding guardrails that actually enforce.**
[](https://www.npmjs.com/package/@solanticai/vguard)
[](https://www.npmjs.com/package/@solanticai/vguard)
[](LICENSE)
[](https://github.com/solanticai/vibe-guard/actions)
[](package.json)
---
AI coding tools write code fast, but they also introduce security vulnerabilities, break project conventions, and push to protected branches. VGuard sits between the AI tool and your codebase, checking every proposed change before it happens. Bad changes get blocked with a clear explanation and a suggested fix. Good changes pass through without friction.

## Quick Start
```bash
npm install -D @solanticai/vguard
npx vguard init
```
Answer four questions and you have working guardrails. The init wizard detects your framework, asks which AI tools you use, and generates everything. See the full [Getting Started](https://vguard.dev/docs/getting-started) guide.
## Features
**Runtime Enforcement** — Claude Code hooks run before every tool call. VGuard inspects the proposed change, evaluates it against your rules, and blocks anything that violates them. The AI agent sees exactly what went wrong and how to fix it. [Adapter docs →](https://vguard.dev/docs/adapters/claude-code)
**Advisory Guidance** — Cursor, Codex, and OpenCode don't support runtime hooks, so VGuard generates configuration files that teach the AI your project's rules before it starts writing. [Agent setup →](https://vguard.dev/docs/agent-setup)
**Smart Detection** — Edit rules only flag problems that are newly introduced. Pre-existing issues in the file are left alone so you can adopt guardrails incrementally without fixing every legacy violation first. [Rules overview →](https://vguard.dev/docs/rules/overview)
## Rule Layers

### Rules — 25 built-in
| Category | Count | Examples | Docs |
| ------------ | ----: | --------------------------------------------------------------------- | -------------------------------------------------------- |
| **Security** | 7 | branch-protection, secret-detection, prompt-injection, rls-required | [security rules](https://vguard.dev/docs/rules/security) |
| **Quality** | 11 | import-aliases, naming-conventions, hallucination-guard, dead-exports | [quality rules](https://vguard.dev/docs/rules/quality) |
| **Workflow** | 7 | commit-conventions, pr-reminder, migration-safety, changelog-reminder | [workflow rules](https://vguard.dev/docs/rules/workflow) |
### Presets — 14 ecosystem presets
nextjs-15 · react-19 · typescript-strict · supabase · tailwind · django · fastapi · laravel · wordpress · react-native · astro · sveltekit · python-strict · go
[Browse all presets →](https://vguard.dev/docs/presets)
### Agent Support

## Documentation
| Section | Description |
| ----------------------------------------------------------- | --------------------------------------------- |
| [Getting Started](https://vguard.dev/docs/getting-started) | Install, init wizard, first run |
| [Configuration](https://vguard.dev/docs/configuration) | `vguard.config.ts` reference |
| [CLI](https://vguard.dev/docs/cli) | `init`, `add`, `remove`, `generate`, `doctor` |
| [Rules](https://vguard.dev/docs/rules/overview) | All built-in rules with examples |
| [Presets](https://vguard.dev/docs/presets) | Framework-specific rule bundles |
| [Agent Setup](https://vguard.dev/docs/agent-setup) | Per-agent adapter configuration |
| [Custom Rules](https://vguard.dev/docs/guides/custom-rules) | Write your own guardrails |
| [Troubleshooting](https://vguard.dev/docs/troubleshooting) | Common issues and fixes |
## VGuard Cloud
[VGuard Cloud](https://vguard.dev) gives your team a dashboard for AI coding activity — which rules fire most, who's triggering blocks, and how conventions drift over time. Set up drift alerts, connect webhooks, and export analytics. Free tier available for small teams.
[Cloud docs →](https://vguard.dev/docs/cloud-integration) · [Sign up →](https://vguard.dev)
## Sponsors
This project is maintained by [Solantic AI](https://github.com/solanticai) and funded by our sponsors.
[Become a sponsor →](https://github.com/sponsors/solanticai)
### Featured Sponsors
### All Sponsors
## Community
- [GitHub Discussions](https://github.com/solanticai/vibe-guard/discussions)
- [Contributing](CONTRIBUTING.md)
- [Code of Conduct](CODE_OF_CONDUCT.md)
- [Security Policy](SECURITY.md)
- [Changelog](CHANGELOG.md)
## License
[Apache 2.0](LICENSE) — Solantic AI