I have a clojure/babashka environment that I work in. My agents/claude files specifically explain this and how to work with it and what to use etc. Fable decided it didn't want to use bb/clj and ran python to do cli work in one project.
So I update the files in all projects to specify that python is strictly off limits/not to be used/never to run it/etc and created a preToolUse hook -- because I learned that just because an agents file says something doesn't mean it gets followed. Hence the hooks, fool me once ...
Later, I start work in another project with the hooks and updated files saying to use the established bb/cli tools and to absolutely never run/use python etc. What does it do on the first task? Tries to run python, gets hit with the preToolUse hook error and replies with something like -- oops my bad I tried to use python even though the instructions told me not too. Every once in awhile in new tasks I still see the hook error at some point but it doesn't apologize like it did before it just switches to proper tools after it can't run what it wants even though it's in the instructions and could have been avoided.
Fable. (and other claude ones)
I have a clojure/babashka environment that I work in. My agents/claude files specifically explain this and how to work with it and what to use etc. Fable decided it didn't want to use bb/clj and ran python to do cli work in one project.
So I update the files in all projects to specify that python is strictly off limits/not to be used/never to run it/etc and created a preToolUse hook -- because I learned that just because an agents file says something doesn't mean it gets followed. Hence the hooks, fool me once ...
Later, I start work in another project with the hooks and updated files saying to use the established bb/cli tools and to absolutely never run/use python etc. What does it do on the first task? Tries to run python, gets hit with the preToolUse hook error and replies with something like -- oops my bad I tried to use python even though the instructions told me not too. Every once in awhile in new tasks I still see the hook error at some point but it doesn't apologize like it did before it just switches to proper tools after it can't run what it wants even though it's in the instructions and could have been avoided.