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.238 Home All releases olderv2.1.237 v2.1.239newer
Claude Code v2.1.238

Prompt-expansion hooks can hide the original prompt from a block message

Use it now
Useful3 Signal2
Hooks not in their notes

Prompt-expansion hooks can keep your original prompt text out of the block message.

UserPromptExpansion
What

Hooks on the UserPromptExpansion event can now return a flag that keeps the user's original prompt text out of the message shown when the hook blocks the prompt. This matches what the prompt-submit hook could already do, and works on this build with no flag to enable.

Details
  • The hook output schema gained the optional boolean alongside additionalContext.
  • The consumer copies it onto the hook result along the same path the prompt-submit hook uses.
  • Only takes effect when the hook's decision is block.
Evidence

When decision is "block", omit the original prompt from the block message

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.238 →