top | item 45334410

(no title)

boars_tiffs | 5 months ago

could you elaborate/give an example hook?

discuss

order

adastra22|5 months ago

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).