Production-tested · 137 hours of autonomous AI
Claude Code Production Hooks
10 hooks and 5 templates that keep autonomous Claude Code from breaking things silently. Every item exists because something went wrong without it.
$19
One-time · Instant download
MIT License · No subscription
Download on Gumroad →
Secure checkout via Gumroad · Zip file, unzip and copy
137h
of autonomous operation tested on
3,500+
AI sessions these hooks survived
18/20
cc-health-check items covered
10+5
hooks + operational templates
Without production hooks, autonomous Claude Code:
- Runs out of context and fails silently in the middle of a task
- Edits files with Python syntax errors and keeps working as if nothing happened
- Constructs raw WebSocket CDP connections that hang the session
- Pushes directly to main without checking
- Takes actions that require external services when it has unresolved errors
- Has no structured record of what it actually did
Not sure what you need? Run cc-health-check first — free, browser-based, no install. See your current score across 20 checks.
Run cc-health-check →
What's included
10 Production Hooks
- Context window monitor (graduated warnings)
- Activity logger (JSONL audit trail)
- Syntax checker (Python, Shell, JS, JSON, YAML)
- Decision warning (sensitive path alerts)
- CDP safety (blocks raw WebSocket construction)
- Session proof logger (5W1H daily summaries)
- Session start marker
- No-ask-human (autonomous mode enforcer)
- Branch guard (blocks direct push to main)
- Error gate (blocks external actions on errors)
5 Operational Templates
- CLAUDE-autonomous.md — rules for unsupervised execution
- dod-checklists.md — 4-type Definition of Done
- task-queue.yaml — structured task queue
- mission.md — persistent state across restarts
- LESSONS.md — structured incident log
3 Config Examples
- Minimal (context + syntax)
- Recommended (all core hooks)
- Full autonomous mode
How to install
1
Download and unzip. All files are plain shell scripts and Markdown templates.
2
Copy hooks to ~/.claude/hooks/ and make them executable.
3
Copy templates to your ops directory. Edit to match your project.
4
Run cc-health-check to confirm your score improved.
# Install (from the unzipped directory)
cp hooks/* ~/.claude/hooks/ && chmod +x ~/.claude/hooks/*.sh
cp templates/mission.md ~/ops/mission.md
cp templates/task-queue.yaml ~/ops/task-queue.yaml