logoalt Hacker News

evntdrvnlast Tuesday at 3:01 PM1 replyview on HN

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.


Replies

sleepybrettlast Tuesday at 9:11 PM

and/or write a skill

show 2 replies