{"version":"2.1.337","anchor":"prometheus-gauge-ready-idle-sessions","canonical_anchor":"prometheus-gauge-ready-idle-sessions","heading":"New ready-idle signal for session hosts: a metrics gauge and a ready_idle message","tier":"use","area":"Telemetry","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/prometheus-gauge-ready-idle-sessions","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### New ready-idle signal for session hosts: a metrics gauge and a ready_idle message\n\nClaude Code adds a ready_idle_sessions metrics gauge and a ready_idle message from remote sessions, plus an optional sender_class field\n\n**What**\n\nClaude Code adds a way to tell when a session is loaded and waiting for work. A session is one running conversation with Claude Code. The change has these parts:\n\n- `ready_idle_sessions`: a new gauge in the Prometheus metrics output, which is a list of numbers that monitoring tools read. It counts sessions that are starting up and are already loaded but idle.\n\n- `ready_idle`: the remote session transport, the part that carries a remote session's messages, can now write a system message with this subtype to standard output. A check named `hasHeardStream` was added with it.\n\n- `sender_class`: a new optional field in the message schema, the agreed layout that messages follow.\n\n**Why**\n\nPrograms that host many sessions, or that wrap the command-line tool, can use these signals to see which sessions are ready. If you only use Claude Code directly in a terminal, nothing changes for you.\n\n- Area: Telemetry\n- Names: `_ready_idle_sessions`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 3\/5\n- Scope: both\n- Heads-up: no"}