I have been using Claude Code for almost a year, but mostly spending time working with prompts, skills and other infra. And I pretty much assumed the claude hook to be some optional prompt argumentation. Until in a recent project I get to experiment for solutions that can be more consistently triggered, I learned how powerful this thing is https://code.claude.com/docs/en/hooks It saves token. At AI era scripts and cpu run-time are cheap, while tokens are expensive. Hooks can allow you to place a massive deterministic script to run at a certain AI workflow stage so that you won’t need AI to trigger a certain skill or build py code over and over. Some usage scenarios: lint tool update data file preparation Many of you may already know this and have used it a lot. I feel that it is something worth another shout submitted by /u/Middle_Key8737
Originally posted by u/Middle_Key8737 on r/ClaudeCode
