Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.242 ·

Prompts pass through a submit hook chain that can rewrite or drop them

Hooks can now rewrite or drop your prompt before it is sent.

Use it now Notable New Features
JSON All of v2.1.242
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
HooksArea: what it touches
New FeaturesKind: in v2.1.242,
What probably matters to youSection of the release
What

Before a prompt is sent, it runs through two tiers of prompt.submit hooks, core ones and managed ones. A hook can drop the prompt, which shows a warning and runs no query, or rewrite it, which replaces the text in your message.

Details
  • When a rewrite changes the text, @-mentions are recomputed: file, directory, MCP resource, agent and nested memory attachments are discarded and re-resolved with read state cleared.
  • Bash mode, slash commands and inputs that never query skip the chain, and settle with a fixed reason naming those cases.
  • A rewrite that cannot find the matching user message logs a warning saying the model will see the prompt as you typed it.
Evidence

the prompt did not go through prompt.submit (a command, bash mode, an input that did not query, or a failed pass)

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

Read from
Names in the bundleprompt.submit

See this entry in the whole of v2.1.242 →

Feedback