This skips the "Yes, and bypass permissions" when actually switches to "bypass permissions on"-mode. The hook alone approves and exits the prompt but stays in plan mode.
# make sure you have terminal Accessibility enabled
brew install cliclick # macOS - on linux/windows you have to find something similar
# adjust settings and make the auto-approve script executable
chmod +x .claude/hooks/auto-approve-plan.sh