Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.287 ·

Hook matching covers PostToolBatch, and repeated refusal log entries are capped

The matcher used for PostToolUse hooks now also covers PostToolBatch, and refused-request log entries are recorded once per day

You'll notice Improvements
JSON All of v2.1.287
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.287,
ImprovementsSection of the release

Unclear It is not clear whether PostToolBatch hooks match tools any differently in practice.

What

Hooks are your own commands that Claude Code runs at set moments. The way Claude Code reads a hook's matcher, the pattern that says which tools a hook applies to, has been moved into a shared helper. That helper serves PostToolUse and now also PostToolBatch.

Separately, the remote log of tool calls (requests Claude makes to use a tool) now writes a refused request only once per day instead of every time. When later entries are skipped, the log marks that more were not written.

Why

The log change limits how much the remote tool-call log records.

Read from
Names in the bundlePostToolBatchPostToolUse
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on React to events with a mod touched a line naming PostToolUse after this was published. Settings hooks are the command, HTTP, prompt, and agent hooks you configure in settings files. Each [settings hook event](https://code.claude.com/docs/en/hooks.md#hook-events), such as `Stop`, `SessionEnd`, or `PostToolUse`, is also an eve… plugins/mods/events see the edit
Confirmed since Anthropic's documentation has since written up PostToolBatch, on Hooks reference. ![Hook lifecycle diagram showing optional Setup feeding into SessionStart, then a per-turn loop containing UserPromptSubmit, UserPromptExpansion for slash commands, the nested agentic loop (PreToolUse, PermissionRequest, PostToolUse, PostT… hooks see the edit
Confirmed since Anthropic's documentation has since written up PostToolUse, on Hooks reference. | `if` | no | [Permission rule syntax](/docs/en/permissions#permission-rule-syntax) to filter when this hook runs, such as `"Bash(git *)"` or `"Edit(*.ts)"`. The hook command only runs if the tool call matches the pattern. See the [Bash ma… hooks see the edit
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 `PostToolBatch` hooks match tools any differently in practice.
Anthropic's documentation agreesAnthropic's documentation has since written up PostToolUse, on Hooks reference.

See this entry in the whole of v2.1.287 →

Feedback