Back to browse
GitHub Repository

A PreToolUse Bash tool hook that auto-approves read-only commands

2 starsGo

Crushout – A PreToolUse Bash hook that auto-approves read-only commands

by granra·May 6, 2026·1 point·0 comments

AI Analysis

MidSolve My Problem

Tree-sitter AST parsing auto-approves safe commands for AI agents.

Strengths
  • Flag-dependent rules catch dangerous cases like sed -i but allow sed
  • Path tracking prevents auto-approval when cd moves outside project root
  • Rejects command substitutions and subshells from auto-approval
Weaknesses
  • Claude Code integration not personally verified by the author
  • Narrow utility — only matters if you're already using AI agent hooks
Target Audience

Developers using AI coding agents like Crush or Claude Code

Similar To

Claude Code hooks · Crush hooks

Similar Projects