Autonomous Pre-Flight Checklist

14 checks before running Claude Code unattended. Check each item. Fix reds before launch.

0 / 14

1. Safety Hooks

Destructive command guard installed
rm -rf, git reset --hard, git clean -fd, chmod 777, PowerShell Remove-Item are blocked.
Fix: npx cc-safe-setup --shield
Branch push guard installed
No direct pushes to main/master. No force-pushes to any branch.
Fix: npx cc-safe-setup --shield
Secret leak prevention installed
git add .env, credential files, and git add . with .env present are blocked.
Fix: npx cc-safe-setup --shield
Syntax checker installed
Python, Shell, JSON, YAML errors caught immediately after every edit.
Fix: npx cc-safe-setup --shield

2. Monitoring

Context window monitor active
Warns at 40%, 25%, 20%, 15% remaining. Prevents silent session death.
Fix: npx cc-safe-setup --shield
Edit verification hook installed
Checks file exists, isn't empty, and new_string is present after every edit.
Fix: npx cc-safe-setup --install-example edit-verify

3. Recovery

Git working tree is clean
All changes committed or stashed before autonomous session starts.
Fix: git stash or git commit
Working on a feature branch (not main)
Easy rollback if something goes wrong. Main stays clean.
Fix: git checkout -b feature/autonomous-session
Auto-checkpoint or state saver installed
Session state survives context compaction. Files backed up before edits.
Fix: npx cc-safe-setup --install-example session-state-saver

4. Configuration

CLAUDE.md has clear instructions
Project rules, scope boundaries, and "don't ask, decide" autonomy rules defined.
Fix: npx cc-safe-setup --shield (generates CLAUDE.md)
jq is installed
Required for all hooks to parse JSON input. Without it, hooks silently fail.
Fix: brew install jq (macOS) | apt install jq (Linux) | choco install jq (Windows)
npx cc-safe-setup --doctor passes
All 13 diagnostic checks pass. Hooks are properly registered and executable.
Fix: npx cc-safe-setup --doctor (shows what to fix)
Dangerous commands are blocked (verified)
Tested with --simulate that rm -rf, git push main, etc. are actually blocked.
Fix: npx cc-safe-setup --simulate "rm -rf /"

Pass all 14? You're ready for autonomous operation.

One command covers checks 1-6: npx cc-safe-setup --shield