Claude Code TeammateIdle Hook: Loop-Safe Exit 2
Exit code 2 blocks an agent and feeds it a correction. Building a real TeammateIdle gate exposed three loop-safety rules the docs do not carry.
Exit code 2 blocks an agent and feeds it a correction. Building a real TeammateIdle gate exposed three loop-safety rules the docs do not carry.
Your CLAUDE.md goes stale fast. A stop hook can spawn a headless Claude session to review changes and propose rule updates after each turn.
Claude Code hooks for Windows, Linux, and macOS. One Node.js file, zero platform wrappers. Cross-platform patterns and working examples.
Build Claude Code agents that validate their own output using PostToolUse hooks, Stop hooks, and read-only validator agents.
Setup hooks combine deterministic scripts with agentic oversight. Automate installation, maintenance, and CI/CD with Claude Code.
Proactively backup your Claude Code session before compaction hits. StatusLine monitoring and threshold triggers keep your work safe.
SessionStart, SessionEnd, Setup, and PreCompact hooks for Claude Code. Auto-load context at startup and clean up on session end automatically.
Use the Stop Hook to ensure Claude finishes tasks before responding. Run tests automatically, validate output, and prevent incomplete work.
Master Claude Code hooks with exit codes, JSON output, and production patterns. Stop clicking approve and fully automate your workflow.
Guaranteed loading was the wrong goal. Word-boundary matching, trigger scoring, a cap of three, and advisory voice make skill activation accurate.