stopped trying to prompt my agent into using a tool and used a hook instead
i had a line in my CLAUDE.md saying "search this fix library before you debug". it worked maybe half the time. the agent would get stuck on an error and just forget so i switched to a hook. in claude code you can run a script after any command fails. mine takes the error, searches the library, and…
Read the full story at r/PromptEngineering ↗
Timeline · 1 report
- 2026-10-29 01:58 · r/PromptEngineering
stopped trying to prompt my agent into using a tool and used a hook instead