Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.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

TierUse it nowhow much it should matter to you
Useful3my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaPlugin UIwhat it touches
KindNew Featuresin v2.1.271,
Use it now

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

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

See this entry in the whole of v2.1.271 →

Feedback