Follow Discord
Sweep 12 Nov 2026 · 23:00Z Build v2.1.323 540 read Stable v2.1.311 Latest v2.1.323 Next v2.1.323 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

New React context hooks for host/project/session in plugin UI

Plugin UI code gains React context hooks for accessing host, project, and session data

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

Claude Code's plugin UI framework now includes new provider components, one acting like a SessionProvider and one like a HostProjectProvider, along with useHost and useProject hooks for reading their data. Using either hook outside of its matching provider now throws a clear error message telling the developer it must be called inside a <SessionProvider /> or <HostProjectProvider />.

Why

This gives plugin UI developers a standard, safe way to access host, project, and session information from their components, with a clear error instead of confusing behavior if they're used in the wrong place.

Read from
Names in the bundleuseHostuseProject
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 useHost, on Blend your MCP App with Claude's theme. * [`useHostStyles(app, hostContext)`](https://modelcontextprotocol.github.io/ext-apps/api/functions/_modelcontextprotocol_ext-apps_react.useHostStyles.html) applies the theme, variables, and fonts and re-applies on `hostcontextchanged` connectors/building/mcp-apps/transparent-theming see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up useHost, on Blend your MCP App with Claude's theme.

See this entry in the whole of v2.1.271 →

Feedback