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