{"version":"2.1.326","anchor":"plugin-host-api-gains-agentlimits-agentcall-and-sessioni","canonical_anchor":"plugin-hooks-modules-identity-privacy-and-plugin-note-attac","heading":"Plugin host API gains session.identity, agent.limits, agent.call and plugin notes","tier":"notice","area":"Plugins","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/plugin-host-api-gains-agentlimits-agentcall-and-sessioni","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Plugin host API gains session.identity, agent.limits, agent.call and plugin notes\n\nPlugins can call new session.identity, agent.limits and agent.call methods, with email held back from user mods, and plugin notes are labelled as not from the user\n\n**Unclear.** It is not clear what these methods return or do, or whether every user can use them.\n\n**What**\n\nPlugins are add-ons that extend Claude Code. They can ask Claude Code to do things through a fixed list of allowed methods. This release changes that list:\n\n- `agent.limits` and `agent.call` are now on the allowed list. They give plugins new ways to work with agents.\n\n- `session.identity` is added through a separate list, together with a handler for it. It gives `contextEmail` only to builtin mods and refuses it to user-tier mods.\n\n- A new `plugin_note` attachment tells the model that a note comes from a plugin, not from the user. The note begins \"Note from ..., not from the user:\".\n\n**Why**\n\nPlugins can do more with agents and with session identity, while email details stay away from mods a user added. The model can also tell plugin notes apart from what you typed yourself.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}