Follow Discord
Sweep 29 Sep 2026 · 18:10Z Build v2.1.285 506 read Stable v2.1.280 Latest v2.1.285 Next v2.1.285 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.285 ·

Plugin hook modules can block a tool call before it runs

A plugin hook that runs before a tool call can now deny it, and plugins get a clear reason when a message they add to the session is refused

You'll notice Improvements
JSON All of v2.1.285
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
HooksArea: what it touches
ImprovementsKind: in v2.1.285,
ImprovementsSection of the release
What

A hook is a piece of code that Claude Code runs automatically at a set moment. PreToolUse is the moment just before a tool call, meaning an action Claude takes such as reading a file or running a command. A hook of this kind supplied through the plugin hook system can now deny the tool call. When it does, the result shows as an error naming the hook and the tool, in the form Error: Hook PreToolUse:<tool>.

The way a plugin adds messages to the current session, meaning the ongoing conversation, is also stricter. It now accepts only two kinds of entry:

  • A hidden user message that is not shown as something you typed
  • A system notice

Anything else is refused, and the refusal says why.

Why

This extends the plugin hook system, which is not documented, so that a plugin can stop a tool call before it happens rather than only observe it. Plugin authors who add messages to a session should expect other kinds of entry to be turned away.

Read from
Names in the bundlePreToolUse
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether this plugin hook path is switched on for anyone, or what check decides that.

See this entry in the whole of v2.1.285 →

Feedback