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.247 Home All releases olderv2.1.246 v2.1.248newer
Claude Code v2.1.247

Programmatic prompt submission gains origin and wait, which hooks cannot forge

Not switched on
Useful3 Signal4
Hooks

Hooks can see where a prompt came from and whether it queues, and cannot fake either.

The origin and wait fields plus forgery rules exist only under the JavaScript plugin hooks rollout, whose in-build fallback is off.

originwait
What

Plugin hooks that see a prompt submission now receive two extra fields: origin, saying where the prompt came from, and wait, saying whether it queues behind the turn in progress. New rules reject any hook answer that invents an origin the engine did not set, changes the one it was given, or sets or changes wait. This whole surface exists only when the JavaScript plugin hooks rollout is enabled, and its in-build fallback is off.

Details
  • The existing rule against a hook rewriting the prompt text still applies alongside the two new ones.
  • Controlled by tengu_plugin_hooks_modules, which falls back to false in this build, so it is off unless server configuration turns it on.
Evidence

a wait the engine did not set (whether the prompt waits its turn is the user's; a hook carries it as received)

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