Hacker News new | ask | show | jobs
by evntdrvn 11 days ago
if it helps, I've found that using context (Claude.md etc) is way less effective for this type of pattern compared to using PreToolHook to capture "bad patterns" and either transparently rewriting them to "do the right thing" if that is possible statically, or if not then rejecting the tool use with a message that tells the agent "how" to use the intended tooling itself.
1 comments

and/or write a skill
I wrote a skill and included the instruction in Claude.md to always use this skill if it ever feels like grepping around in Unity files. It still took a lot of reminding it before it did it consistently. I’d interrupt it and say “it looks like you’re using grep for something you have an explicit tool for” and it would go “oh, my bad” and do it right. Took a few days to really sink in.
Writing skills is the new writing code