Skip to content
Claude Code Mods

Claude Code v2.1.335: an Interrupt hook event, on() inside session.start and more for mods and plugins

Claude Code v2.1.335 (December 3, 2026) adds an Interrupt hook event, lets mods call on() in session.start, and adds source and via to session.stop

Published . Checked against Claude Code v2.1.335. This site is unofficial; the sources under each section are Anthropic's own pages.

A new Interrupt hook event

The v2.1.335 changelog (December 3, 2026) says Claude Code added an Interrupt hook event. It fires when a turn is interrupted and says whether a person, another session or the system stopped it. The hooks reference does not list this event yet, so the changelog is the only source for it; check the hooks reference (opens in a new tab) for the input fields before you write a hook against it.

Source: Claude Code changelog (opens in a new tab), Hooks reference (opens in a new tab)

Mod changes: on() and session.stop

Per the changelog, a mod can now call on() inside its session.start hook, so it can register hooks based on a fetch or an MCP call. It also says the session.stop mod event now carries source and via, which tell you who sent the Stop and how it arrived.

The mods events guide says registering session.start twice without a matcher makes the module fail to load, so keep everything your mod does at session start in one hook. The guide does not yet describe the new behavior.

Source: Claude Code changelog (opens in a new tab), React to events with a mod (opens in a new tab)

Plugins: cloud sessions and organization flags

The changelog adds support for cloud sessions loading the plugins and mods in a repository's .claude/skills. It warns that a hook that reaches out of its plugin's folder with ../ fails there and can block shell commands. It also adds requiredByOrganization to claude plugin list --json for plugins your organization requires.

Warning

If a plugin hook uses ../ to reach files outside the plugin folder, the changelog says it fails in cloud sessions and can block shell commands.

Source: Claude Code changelog (opens in a new tab), Manage plugins for your organization (opens in a new tab)