zlacker

[parent] [thread] 2 comments
1. Merad+(OP)[view] [source] 2026-02-02 18:06:17
I've been using Claude Code with Opus 4.5 a lot the last several months and while it's amazingly capable it has a huge tendency to give up on tests. It will just decide that it can commit a failing test because "fixing it has been deferred" or "it's a pre-existing problem." It also knows that it can use `HUSKY=0 git commit ...` to bypass tests that are run in commit hooks. This is all with CLAUDE.md being very specific that every commit must have passing tests, lint, etc. I eventually had to add a Claude Code pre-command hook (which it can't bypass) to block it from running git commit if it isn't following the rules.
replies(1): >>theshr+gg2
2. theshr+gg2[view] [source] 2026-02-03 07:41:00
>>Merad+(OP)
Anecdata from the internet has a few stories of Claude Opus bypassing hooks too =)

1) it wants to run X command

2) it notices a hook preventing it from running X

3) it creates a Python application or shell script that does X and runs it instead

Whoops.

replies(1): >>Merad+Nj4
◧◩
3. Merad+Nj4[view] [source] [discussion] 2026-02-03 19:09:42
>>theshr+gg2
I haven't seen it bypass my hook yet (knock on wood). I have my hook script [0] tell that its commits are required to pass validation, maybe that helps push it in the right direction?

0: https://github.com/mbcrawfo/vibefun/blob/main/.claude/hooks/...

[go to top]