[BUG] security-guidance plugin's hook uses python3 in the command, which doesn't exist on Windows
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
There it is. The security-guidance plugin runs python3 before every Edit/Write. On Windows, python3 doesn't exist -- Windows uses python instead.
You have two options:
- Fix the command -- but this is a plugin-managed file that'll get overwritten on updates
- Disable the security-guidance plugin since it's just a non-blocking warning hook
Since you have it enabled in .claude/settings.json:
Read 1 file (ctrl+o to expand)
● Want me to disable the security-guidance plugin? It's the source of all those "Python not found" errors. The hook is non-blocking (errors don't stop the writes) but it's noisy.
What Should Happen?
It should use the proper command regardless of platform
Error Messages/Logs
Update(.claude\settings.json)
⎿ PreToolUse:Edit hook error ⎿ Failed with non-blocking status code: Python was not found; run without arguments to install from
the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App
execu…
Steps to Reproduce
Install Claude via Powershell via the native method: irm https://claude.ai/install.ps1 | iex
Install the security-guidance plugin
Ask Claude to save a memory or update a file
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.101 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗