Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.328 ·

Self-hosted runners gain --hook-label and hook user messages

Self-hosted runners can route sessions to hooks by label with --hook-label, pass labels as CLAUDE_RUNNER_META_ variables, and relay a hook message

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

Unclear The marker a hook's line must start with is not known, so it is not clear how a hook marks its message.

What

A self-hosted runner is a machine you run yourself that picks up Claude Code sessions. A hook is a script the runner calls at set points; the spawn-runner hook runs when a session starts. This release adds label routing and a way for that hook to talk to the user.

  • --hook-label <label>=<values>: a new option taking words (label=words) or a range (label=low..high). Each label is checked against the session's own label values, and the hook is skipped for sessions with other values. A value outside the allowed set raises an error.
  • Label variables: accepted values are passed to the hook as CLAUDE_RUNNER_META_<LABEL> environment variables, and the spawn-runner hook also receives the session's labels.
  • User message: a hook output line that starts with a marker prefix is now relayed to the session's user. Lines containing control characters or anything that looks like a secret are withheld, and a log line says so.
  • --min-idle: --hook-label cannot be used with --min-idle, which must be 0. The error explains that a standby runner ignores the labels of the session it takes.

Why

Runner operators can send sessions to the right hook by label and give users feedback from that hook. If you already keep warm idle runners with --min-idle, you need to choose between that and label routing.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe marker a hook's line must start with is not known, so it is not clear how a hook marks its message.
Anthropic's release notes agreeSelf-hosted runner: Added --hook-label to claude self-hosted-runner orchestrator, to hand chosen session labels to the spawn-runner hook

See this entry in the whole of v2.1.328 →

Feedback