Mods reference changedplugins/mods/reference
Upstream edited this page at 10 Oct 2026 17:52 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 10 Oct 2026 18:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−0removed
From line
126
where the diff opens
First seen
1 Oct 2026
this site's first read of the page
Recorded edits32to this page, all time
The whole hunk
from line 126, old and new numbered
/
from line 126
126126| `agent.offer` | A subagent type is offered to Claude | `{ isOffered: false }` to withhold it |
127127| `agent.spawn` | A subagent or an [agent team](/docs/en/agent-teams) teammate is about to start. For a teammate, `e.isTeammate` is `true`. | `next({ ...e, model })` to choose its model, or `{ deny: reason }` |
128128
129When Claude resumes a subagent with the [`SendMessage`](/docs/en/sub-agents#resume-subagents) tool, your `agent.spawn` hook doesn't run again. To refuse the `SendMessage` calls that resume a subagent, match that tool in a [`tool.call`](/docs/en/plugins/mods/events#guard-or-change-a-tool-call) hook.
130
129131### Interface
130132
131133Interface events fire when Claude Code draws a render site and when the user uses a control a mod drew. [Draw in the interface](/docs/en/plugins/mods/interface) shows what a `ui.render` hook returns:
No line in this hunk matches that.