The Subagents settings list is an independent Agent capabilities entry. It uses the same scope and resource-list language as MCPs, Skills, Commands, and Hooks while keeping implementation identifiers out of visible row content.
<workspace>/.zcode/agents and agents from plugins installed into that workspace, grouped by plugin. Built-in agents never appear in workspace scope.User means the base Host's user configuration. Opening Settings from an SSH/WSL/Docker conversation or project must not redirect User reads or writes to that remote workspace. The selected scope owns the service target; the last active tab is only a possible execution context, never the authority of User configuration.
User -> base services -> base Host user agents
selected Workspace -> identity/session services -> selected project agents
explicit Source User -> SourceSettingsAttachment -> selected Source user agents
default workspace is a workspace scope, not a substitute Source User option.continuous and mobile replayable delivery.Regression coverage: subagentsSection.test.ts checks User creation with remote active,
same-path remote identities, offline targets and plugin initialization; subagentsStore.test.ts
checks authority-scoped refresh. conversation-session-r3-settings-scopes.test.ts checks
real GUI creation and both local/remote filesystem destinations. Source User availability
and labels remain a separate acceptance item.
The SSH regression must distinguish connection completion from directory selection:
waitForSSHDirectoryStep reports closed when the conversation flow unmounts the
wizard, and directory only when the directory step is visible. The case asserts
closed before checking the conversation identity/session; closing the wizard alone
does not prove a successful connection. Installation/boundary confirmations remain
handled, and connection errors fail immediately. Project flows still verify the
directory step and selected workspace. This is a test-helper contract only; Host and
desktop/mobile delivery behavior do not change.
Installed contains directly-created agents for the selected scope.Built-in is a User-only group.Empty and loading containers use the common dashed-border treatment.
Rows display the agent name, description, model label when applicable, tool label, and available controls.
Rows do not display the backing Markdown path or internal built-in identifier. Values such as /Users/name/.zcode/agents/example.md and built-in:general-purpose remain implementation data used for editing and identity only.
Group headings communicate ownership, so rows do not repeat scope labels.
Item descriptions use text-ui-sm text-foreground-subtle as secondary copy.
Model and tool metadata labels use rounded-md bg-surface px-1.5 py-0.5 text-ui-sm text-foreground-subtle ring-1 ring-border, matching MCP tool-count labels.