{"version":"2.1.326","anchor":"remote-protocol-gains-retire-if-empty-op-plugin-api-gains-u","canonical_anchor":"remote-protocol-gains-retire-if-empty-op-plugin-api-gains-u","heading":"Session protocol and plugin calls gain new operations","tier":"internal","area":"SDK","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/remote-protocol-gains-retire-if-empty-op-plugin-api-gains-u","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Session protocol and plugin calls gain new operations\n\nThe session protocol accepts a retire-if-empty operation, plugins may call `ui.log`, and tool events gain judge and run\n\n**What**\n\nSeveral things are added for programs that extend or talk to Claude Code:\n\n- The session protocol, the format remote sessions use to talk to Claude Code, accepts a new `retire-if-empty` operation.\n\n- The list of calls plugins and mods are allowed to make now includes `ui.log`.\n\n- Tool events now include `tool.judge` and `tool.run`.\n\n**Why**\n\nThese give extensions and remote sessions new things they can do.\n\n- Area: SDK\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}