Короткий огляд матеріалу з Dev.to DevOps: 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 hook is a check that runs before the command does. Below is a 35-line one, the contract it depends on,
Це адаптований дайджест українською, а не повний передрук статті.
Джерело: Dev.to DevOps

Залишити відповідь