Add dispatch_launch_agent MCP tool for agent orchestration#708
Merged
Conversation
…tion Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Agents launched via dispatch_launch_agent have parentAgentId but no persona — show them as normal top-level sidebar entries. Only persona review agents are nested under their parent card. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Eliminates a second source of truth for the launchable agent type enum — the schema now derives from the same CLI_AGENT_TYPES constant the handler validates against. Co-Authored-By: Claude Opus 4.6 <[email protected]>
…h_agent Child agents can no longer escalate to fullAccess when the parent lacks it, and known permission-bypass CLI flags are stripped from agentArgs. Co-Authored-By: Claude Opus 4.6 <[email protected]>
No legitimate use case for exposing raw CLI arguments through the MCP tool. The fullAccess flag already controls permission behavior, and agent type selection covers the other meaningful variation. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Keyboard agent cycling (focus-next/prev-agent) now uses the same top-level predicate as the sidebar, so launched non-persona children participate in hotkey navigation. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dispatch_launch_agentMCP tool that lets agents launch other agents, enabling delegation, parallel work, escalation, and hand-off workflowsdispatch_launch_persona/messaging-toolspatterns — Zod schema, handler inmcp-handlers.ts, wired through routes and serverfullAccess, fire-and-forget lifecycleTest plan
pnpm run check) passeslive=truedev instance: basic launch, optional param overrides, invalid type rejection, tool discovery🤖 Generated with Claude Code