How to Actually Force Claude Code to Use the Right CLI
YouTube · YouTube
- Argues against using
CLAUDE.mdas the mechanism for directing agents toward specific CLI tools — it’s context-consuming, fragile, and agents ignore it under load. - Deterministic hooks are the correct solution: configure the environment so the right tool is the only option, rather than relying on instruction-following.
- Practical implication: the more consequential the CLI command, the more it needs to be enforced structurally rather than instructed linguistically.