From 39430385168c58f32c6e77e28374b67b370e2b11 Mon Sep 17 00:00:00 2001 From: zackees Date: Sat, 20 Jun 2026 14:29:23 -0700 Subject: [PATCH] chore(hooks): wedge-proof commands + drop project tool_guard (#712 follow-up) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two changes to .claude/settings.json: 1. Removed the project-local `tool_guard.py` PreToolUse hook — the user confirmed they install soldr/uv guards globally, so the duplicate fires twice without value. `forbidden_commands.py` (pyocd/esptool policy) stays as the project-specific Bash gate. 2. Every hook command is now wedge-proof: - Prefer `${CLAUDE_PROJECT_DIR}` (the harness anchor that survives worktree shifts) and fall back to `git rev-parse --show-toplevel`. - Wrap the actual `uv run` invocation in `[ -f