{"version":"2.1.261","anchor":"two-new-sdk-control-protocol-request-types-get-usage-and-re","canonical_anchor":"two-new-sdk-control-protocol-request-types-get-usage-and-re","heading":"Two new SDK control-protocol request types: get_usage and reload_output_styles","tier":"use","area":"SDK","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.261\/e\/two-new-sdk-control-protocol-request-types-get-usage-and-re","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.261","markdown":"### Two new SDK control-protocol request types: get_usage and reload_output_styles\n\nSDK gains get_usage and reload_output_styles requests for pulling usage data and refreshing styles mid-session.\n\nThe SDK\/agent control protocol gains two new request subtypes. `get_usage` returns the structured `\/usage` data \u2014 session cost\/usage totals plus claude.ai plan rate-limit utilization \u2014 and accepts an optional `skip_behaviors` flag to skip the 7-day transcript scan that produces the `behaviors` section; it requires an `onGetUsage` callback to be registered, or it errors. `reload_output_styles` re-reads output-style directories from disk mid-session (a style file written mid-session was previously invisible until the next session), returns the refreshed style names, and also drops the shared markdown-file scan cache used by agents, skills, and routines; it's exposed via a corresponding `sdk_reload_output_styles` wrapper.\n\n- Area: SDK\n- Names: `get_usage`, `reload_output_styles`, `skip_behaviors`, `onGetUsage`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5"}