Hacker News new | ask | show | jobs
by boars_tiffs 271 days ago
could you elaborate/give an example hook?
1 comments

I’m on mobile right now. But if a tool call fails, the stdout and stderr is fed back into Claude. Make a got pre-commit hook that looks for the Claude attribution string, and if present prints instructions to Claude to remove the attribution line, and exit (either error code 1 or 2 — check the anthropic docs).