▲ | boars_tiffs 3 hours ago | |
could you elaborate/give an example hook? | ||
▲ | adastra22 2 hours ago | parent [-] | |
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). |