Skip to content

feat: add agent selection as ACP session config option#653

Open
dsturnbull wants to merge 1 commit into
agentclientprotocol:mainfrom
dsturnbull:agent-switching
Open

feat: add agent selection as ACP session config option#653
dsturnbull wants to merge 1 commit into
agentclientprotocol:mainfrom
dsturnbull:agent-switching

Conversation

@dsturnbull
Copy link
Copy Markdown

Expose available Claude Code agents (user + plugin) as a selectable config option in the ACP session response. Zed renders this as a dropdown automatically alongside Mode, Model, and Effort.

When the user switches agents:

  • Aborts the current subprocess
  • Resumes the session with the new agent (preserving history)
  • Falls back to a fresh session if no history exists yet

Agent discovery uses the SDK's supportedAgents() API which returns all agents (user ~/.claude/agents/*.md + plugin agents), with a filesystem fallback for offline discovery.

Expose available Claude Code agents (user + plugin) as a selectable
config option in the ACP session response. Zed renders this as a
dropdown automatically alongside Mode, Model, and Effort.

When the user switches agents:
- Aborts the current subprocess
- Resumes the session with the new agent (preserving history)
- Falls back to a fresh session if no history exists yet

Agent discovery uses the SDK's supportedAgents() API which returns
all agents (user ~/.claude/agents/*.md + plugin agents), with a
filesystem fallback for offline discovery.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant