A Claude Code PreToolUse hook that auto-approves Bash commands matching a safe allowlist, skipping the permission prompt.
Commands: ./gradlew · tail · head · cat · grep · echo
These can be combined freely with pipes (|), chaining (&&), and timeout prefixes. Anything else falls through to the normal permission prompt — nothing is ever blocked.