Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.242 Home All releases olderv2.1.241 v2.1.243newer
Claude Code v2.1.242

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

Use it now
Useful4 Signal4
Hooks Notable not in their notes

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

prompt.submit
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.

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.242 →