Claude-Code-Guardrails
HookProtective hooks for Claude Code that prevent accidental code loss through branch protection, automatic checkpointing, and safe commit squashing
git clone https://github.com/wangbooth/Claude-Code-GuardrailsSmart Guardrail System for Safer Claude Code Development
🔥 If this project helps you, please click the ⭐ Star in the top right corner to support us!
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
- Source
- community
- Known advisories
- 0
- Maintenance
- stale
- License
- MIT
- Age
- 9 months