wangbooth/Claude-Code-Guardrails

Protective hooks for Claude Code that prevent accidental code loss through branch protection, automatic checkpointing, and safe commit squashing

54Stars on the repository
6Mods indexed here, across every type
11mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

PreToolUse

01

wangbooth/Claude-Code-Guardrails

Hook Claude Code

Runs before the agent uses a tool for Write, Edit and MultiEdit tool calls, executing guard-branch.sh. From wangbooth/Claude-Code-Guardrails.

54 11mo ago A tokens not measured copy · 50% MIT

PostToolUse

02

wangbooth/Claude-Code-Guardrails

Hook Claude Code

Runs after a tool call finishes for Write, Edit and MultiEdit tool calls, executing auto-commit.sh. From wangbooth/Claude-Code-Guardrails.

54 11mo ago A tokens not measured original MIT

Stop

03

wangbooth/Claude-Code-Guardrails

Hook Claude Code

Runs when the agent finishes a response, executing squash-checkpoints.sh. From wangbooth/Claude-Code-Guardrails.

54 11mo ago A tokens not measured copy · 47% MIT

PreCompact

04

wangbooth/Claude-Code-Guardrails

Hook Claude Code

Runs before the context is compacted, executing squash-checkpoints.sh. From wangbooth/Claude-Code-Guardrails.

54 11mo ago A tokens not measured original MIT