checked on 19 Nov 2026
valid until 19 Dec 2026not rechecked since 19 Dec 2026
An instruction in CLAUDE.md alone is not enough to stop Claude reaching for bare python; a PreToolUse hook is effective.
In the source's words
This is more reliable than CLAUDE.md instructions because it’s enforcement, not suggestion.
Source
mcginniscommawill.com/posts/2026-04-27-claude-code-hooks-force-uv/ · T4
Find the quote on the page
Address
stacks.jakubdudek.com/python3-in-claude-code/c8
In a document: [[python3-in-claude-code#c8]]
JSON