Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 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

Entry
JSON All of v2.1.281
EntryKind: in v2.1.281,
ChangesSection 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.

See this entry in the whole of v2.1.281 →

Feedback