1 result
A tested PreToolUse handler blocks accidental .env edits in Claude Code. Copy the Python script, verify exit codes, and learn its limits.