r/ClaudeCode • • 4d ago

Discussion Opus is ignoring hooks now

Post image

I think Opus 5.5 is legitimately lobotomized. Sure, ignoring memory is fine but a straight up hook? Never seen this degradation before.

2 Upvotes

20 comments sorted by

•

u/AutoModerator 4d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

49

u/Outrageous_Band9708 4d ago

you seem to be mistaken, hooks in claude code terminal can't be bypassed. thats why they are hooks.

any issue you are having here are surely your own setup and not a failure of hooks in general.

5

u/PerfectPatience- 4d ago

Yea properly set up hooks decline starting wrong agent, please recheck your setup.

10

u/startyourengines 4d ago

Basically every response to Claude in the last week or two has been “what is this” — which really pollutes the context but I genuinely need to know what’s going wrong because no adjustment to prompt or workspace seems to make a difference.

3

u/Amatayo 4d ago

Hooks arnt gates, hooks have failure points like if it fires leading into compaction, or the rule isn’t clear. (Failed by policy) or if yo many hooks are firing.

So a hook failure isn’t a sign of end times, systematic hook failure based upon opus deciding your rules should get lost, would be though.

-2

u/zaitsman 4d ago

That’s why mods are superior to hooks

2

u/Amatayo 4d ago

What would a mod offer a hook or gate can’t?

-1

u/zaitsman 4d ago

You basically get more events to react to things happening in Claude, that’s basically it. The rest is flavour basically, it’s js/ta versus invoking it via shell but doesn’t matter that much in terms of outcomes

3

u/Amatayo 4d ago

I’m familiar with mods but I’m unsure of the usecase your presenting for using it to help the poster. In steering Claude what mods preform better than hooks and gates?

0

u/zaitsman 4d ago

With mod you can act before the prompt, with hooks it’s basically after. A mod we have basically just forces claude to adhere to a collection of our md files, each and every prompt, in subagents and after compaction, always re-enforcing these.

3

u/karol207 4d ago

There's a pre-prompt hook too: `UserPromptSubmit` runs before Claude processes the message. `PreToolUse` runs before a tool executes and can deny it. So 'hooks are basically after' doesn't hold for those two events.

2

u/OlorinDK 4d ago

This interesting, could you give an even more concrete example?

3

u/Active_Variation_194 4d ago

Hooks are deterministic and fire when triggered. Cab you explain your hook

1

u/under_psychoanalyzer 4d ago

Hooks triggers are deterministic, but if the output is prose like "run a worktree on this on issue with opus", it can and will find a way to ignore it. A hook not connected to a script is just a reminder.

1

u/Active_Variation_194 4d ago

Agreed. Without a script is better to just throw it in agents.md or a skill triggered by a stop hook.

4

u/Polite_Jello_377 4d ago

Self own, it means you didn’t set the hooks up correctly

1

u/Suitable_Cicada_3336 4d ago

At least one month

1

u/samc621 4d ago

Worth checking which kind of hook it is, because only some hooks can stop anything. A PreToolUse command hook that exits 2, or returns permissionDecision "deny", blocks the tool call inside Claude Code itself, so the model doesn't get a vote. A SessionStart or UserPromptSubmit hook that just prints text only adds context, and Opus can read that and still go its own way.

So run /hooks to confirm it's registered from the scope you think it is, then start a session with claude --debug and watch whether it fires on the call it missed. If it fired and only printed a reminder, that's your gap.

Disclosure: I work on AgentTrail. Our open-source Guard (https://github.com/agenttrailhq/guard) is a set of PreToolUse checks for things like force-push, rm -rf and reading .env. It matches commands and paths, so it's a backstop for risky actions, not a fix for instruction-following.

1

u/Ok-Buyer-9421 22h ago

This is why I prefer enforcing critical engineering conventions outside the agent, at commit time or in CI. The model shouldn't be responsible for validating its own compliance. Full disclosure as I'm building Agentests around this principle: https://github.com/feuersteiner/agentests - would love your feedback if it helps

-1

u/zaitsman 4d ago

Why not use a mod?

We developed a steering mod for us with a simple ‘block if not via the mod’ hook and it has been working great including in the past 2 weeks