r/ClaudeCode • • 23h 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.

3 Upvotes

20 comments sorted by

•

u/AutoModerator 23h 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.

45

u/Outrageous_Band9708 23h 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.

4

u/PerfectPatience- 22h ago

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

10

u/startyourengines 23h 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.

5

u/Polite_Jello_377 22h ago

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

3

u/Amatayo 23h 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 23h ago

That’s why mods are superior to hooks

2

u/Amatayo 23h ago

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

-1

u/zaitsman 23h 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 23h 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 22h 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 18h 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 22h ago

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

3

u/Active_Variation_194 23h ago

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

1

u/under_psychoanalyzer 23h 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 21h ago

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

1

u/fuzzypetiolesguy 23h ago

Did you verify the claim?

1

u/Suitable_Cicada_3336 23h ago

At least one month

1

u/samc621 12h 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/zaitsman 23h 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