Claude Code hook
vibeguard
Rust CLI providing scoped review rules and native Bash/Git hooks for Claude Code.
Install
git clone https://github.com/majiayu000/vibeguard.gitFrom the README
VibeGuard A Rust CLI for coding-agent rules, native hooks, and installation diagnostics. Website · 中文 · Runtime contract · Rule reference · Contributing V2 embeds 75 scoped review topics for explicit lookup. Installation does not inject rules or lookup instructions into the host's prompt. The library covers scope, facts, errors, security, workflow, Rust, Python, Go, and TypeScript. Native Bash hooks reject a small set of destructive command spellings and record the latest observed outcome. An optional Git pre-push hook checks actual commit ancestry. The host owns permissions, sandboxing, tool execution, and the agent loop. DeepSeek Harness users can load the DSH Bash adapter. It calls this Rust runtime, routes policy blocks through DSH's native approval, and fails closed when the pre-call runtime fails. Install from a release archive One command downloads the latest release for your OS and CPU, verifies it against SHA256SUMS, and runs install. It needs only curl, tar and shasum or sha256sum; no Rust toolchain or Python: Replace claude with codex or grok. Set VIBEGUARD_VERSION=v2.1.0 before bash to pin a release. To do the same steps by hand: Download the archive for your OS and CPU from Releases, extract it, and open a terminal in the extracted directory. macOS, Linux and WSL are supported; choose a Linux archive for WSL. No Rust toolchain or source checkout is required for this path. Run: Native Windows (experimental, Claude Code + Git Bash) Use Windows x64, Git Bash, and Claude Code 2.1.139 or later. Exec-form hooks were introduced in Claude Code 2.1.139. Download vibeguard-x86_64-pc-windows-msvc.tar.gz from Releases, extract it, and run in PowerShell. The Windows archive will first be available in a tagged release containing this change: Or download…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- majiayu000/vibeguard
- Type
- Hooks
- Website
- majiayu000.github.io/vibeguard
- Language
- Rust
- License
- MIT
- Last updated
- 3 November 2026
- Topics
- agent-harnessagentic-engineeringai-agentsai-safetyanti-hallucinationclaudeclaude-codeclicode-qualitycodexcodex-clideveloper-tools
- Listed in
- awesome-claude-code-toolkit
FAQ
What is vibeguard?
Rust CLI providing scoped review rules and native Bash/Git hooks for Claude Code. It is a hook for Claude Code, from majiayu000/vibeguard on GitHub.
How do I install vibeguard?
Clone majiayu000/vibeguard from GitHub and follow the setup steps in its README.
Is vibeguard popular?
majiayu000/vibeguard has 44 GitHub stars and 8 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.
More hooks
Claude Code Guardrails
54wangbooth/Claude-Code-Guardrails
Protective hooks that guard against lost work via branch protection and automatic checkpoints.
Tiktok Skills
107sergebulaev/tiktok-skills
TikTok marketing skills for Claude Code and Codex: 3-second video hooks, captions, trend mapping, and a weekly plan. Draft, humanize, and publish via Publora. MIT. Content engineering by Creative Content Crafts.
Claude Prime
120avibebuilder/claude-prime
You've heard Claude Code can do amazing things. Skills, hooks, agents, memory systems — but who has time to figure all that out? Claude Prime sets it up for you in one command.
Cmds Llm Wiki
100johnfkoo951/cmds-llm-wiki
LLM Wiki template — Karpathy 3-layer pattern + Gold In Gold Out purpose gate + dual Claude Code·Codex harness (11 commands, 2 hooks, 18 web clipper templates)
Boucle Framework
126Bande-a-Bonnot/Boucle-framework
Autonomous agent framework with structured memory, safety hooks, and loop management. Built by the agent that runs on it.
HookPrompt
102KimYx0207/HookPrompt
Claude Code自动提示词优化Hook:谷歌提示词圣经 + 5任务元提示词 | Auto prompt optimization Hook for Claude Code
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.