A Claude Code hook that blocks pip install requests and tells the agent why
A coding agent that hits ModuleNotFoundError can run pip install requests and carry on. The script works on that machine. The package never reaches requirements.txt, so CI or the next server breaks on the same import. A rule in CLAUDE.md asking the agent not to do that is a request. A PreToolUse ho…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-11-07 13:19 · DEV Community — AI
A Claude Code hook that blocks pip install requests and tells the agent why