The UserPromptSubmit hook requires .claude/current-mode to determine work mode and gate coordination lock checks. This file is machine-local (gitignored) but had no initialization logic for fresh clones, causing hooks to fail. Changes: - check-messages.sh: Added auto-creation logic with "general" as default - CLAUDE.md: Documented auto-initialization behavior - ONBOARDING.md: Added machine-local configuration section - session-logs/2026-05-19-session.md: Documented investigation and fix Impact: - Fixes coordination hooks on all machines - Prevents first-clone hook failures - No manual setup required - Backwards compatible Resolves: "cood hook seems to be broken on all my machines" Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
4.1 KiB
4.1 KiB