Follow Discord
Sweep 01 Oct 2026 · 17:27Z Build v2.1.287 508 read Stable v2.1.285 Latest v2.1.287 Next v2.1.287 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.286 ·

Plugin hooks gain a prompt.compose method and an asUser option on submit

Plugin hooks can now call a new prompt.compose method, and prompt.submit now accepts an asUser option that must be true or false

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

Hooks are pieces of code that plugins run at set points in Claude Code. The part of the hooks system that works with prompts has these changes:

  • A new prompt.compose method, which takes the facts to compose a prompt from
  • prompt.submit now accepts an asUser option, and rejects it with an error unless it is true or false
  • prompt.compose joins the list of hook categories that already includes prompt.section and prompt.context

When replying in a thread, Claude Code also now passes along a flag noting whether a message was composed only from the user's own words.

Why

This gives plugins a new point where they can take part in putting a prompt together.

Read from
Names in the bundleprompt.composeasUser
What the documentation says
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.

Confirmed since Anthropic's documentation has since written up prompt.compose, on Mods reference. | [`prompt.section`](/docs/en/plugins/mods/events#rewrite-or-add-to-a-prompt) | Once for each named section of the system prompt. `e.name` is the section's `id` in `prompt.compose`. | `{ text }`, or `{ text: null }` to omit the section | plugins/mods/reference 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 known what uses `prompt.compose` or whether it is switched on for anyone.
Anthropic's documentation agreesAnthropic's documentation has since written up prompt.compose, on Mods reference.

See this entry in the whole of v2.1.286 →

Feedback