Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

Hooks API: session.version call

Plugin function hooks can now call session.version to get the running build's version, build time and git commit

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

Plugins, which are add-on packages for Claude Code, can include function hooks: pieces of code that Claude Code runs at set moments. These hooks talk to the current session through a small set of allowed calls. That set now includes version(), which calls session.version and returns information about the running build, such as its version number (VERSION), when it was built (BUILD_TIME) and the git commit it was built from (GIT_SHA).

Why

A plugin hook can now check exactly which build of Claude Code it is running under, which is useful when its behaviour needs to depend on the version.

Read from
Names in the bundlesession.version

See this entry in the whole of v2.1.281 →

Feedback