{"version":"2.1.274","anchor":"plugin-sdk-gains-agentregister-and-sessionrefreshagen","canonical_anchor":"plugin-sdk-gains-agentregister-and-sessionrefreshagen","heading":"Plugin SDK ($.) gains agent.register and session.refreshAgents, plus a system-prompt-delivered flag consumable once","tier":"use","area":"Plugins","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274\/e\/plugin-sdk-gains-agentregister-and-sessionrefreshagen","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.274","markdown":"### Plugin SDK ($.) gains agent.register and session.refreshAgents, plus a system-prompt-delivered flag consumable once\n\nPlugin SDK adds agent.register and session.refreshAgents, plus a one-shot flag for whether the system prompt was delivered\n\n**What**\n\nThe plugin system's internal dispatch table adds an `agent.register` action, which validates that a `prompt` is provided and that the description meets length rules, sitting alongside the existing `agent.list` action. The headless session's `$` scripting surface also gains a `refreshAgents()` method next to the existing `refreshCommands()`.\n\nSeparately, the turn-runner gains a `takeSystemPromptDelivered` option: a one-shot getter that reads and then clears an internal flag tracking whether the system prompt was delivered.\n\n**Why**\n\nThis lets plugins register new agents programmatically and refresh the list of available agents, and lets other code check exactly once whether the system prompt has already been sent for a turn.\n\n- Area: Plugins\n- Names: `agent.register`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5"}