{"repo":"wangbooth/Claude-Code-Guardrails","free":true,"listed":false,"github":"https://github.com/wangbooth/Claude-Code-Guardrails","clone":"git clone https://github.com/wangbooth/Claude-Code-Guardrails.git","description":"Protective hooks for Claude Code that prevent accidental code loss through branch protection, automatic checkpointing, and safe commit squashing","language":"Shell","stars":55,"topics":["claude-code","claude-code-hooks","vibe-coding"],"license":"MIT","category":"mcp-servers","readme_excerpt":"🛡️ Claude Code Guardrails Smart Guardrail System for Safer Claude Code Development 🔥 If this project helps you, please click the ⭐ Star in the top right corner to support us! 🇺🇸 English 🇨🇳 中文 🇯🇵 日本語 --- 🚨 Pain Points: Claude Code's \"Dangerous Moments\" Have you ever encountered these frustrating scenarios while Vibe Coding? ❌ Direct modification on main branch → One mistake, important code gets overwritten ❌ Interrupted modifications → Intermediate artifacts lost, unable to rollback to specific states ❌ Chaotic multiple modifications → Don't know which change introduced the bug ❌ Accidentally deleted important files → No timely commits, game over ❌ Manual changes overwritten → AI directly overwrites uncommitted manual changes, cannot distinguish code ownership 💡 Solution: Claude Code Guardrails Guardrails based on Claude Code Hook Triple Security Mechanism : 🛡️ Pre-write Interception Alert + 📸 Precise Snapshot Commits + 🔄 Smart Merge Archiving ✅ Protected branch interception → Automatically blocks writes to main branch, suggests creating feature branch ✅ Uncommitted changes protection → Blocks when manual changes are uncommitted, forces commit first to avoid overwriting ✅ File-level precise snapshots → Each modification only commits changed files, avoiding noise ✅ Smart backup mechanism → Automatic backup before gitignore file modifications ✅ Safe history merging → Multiple checkpoints intelligently merged into clean task commits 🎉 Start experiencing now! &nbsp;&","default_branch":null,"files":null,"tree":[],"storefront":"/r/wangbooth","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wangbooth/Claude-Code-Guardrails/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}