Skip to content

Subagent invocation fails with "unable to find agent" for agent that exists and is listed #3665

@ssedano

Description

@ssedano

Bug

InvokeSubagents with agent_name: "divedeep" returns:
"unable to find agent with name: divedeep"

Expected

Invocation should succeed since the agent is found by ListAgents and /agent swap.

Steps

  1. Agent configured at ~/.kiro/agents/divedeep.json
  2. ListAgents → divedeep appears ✅
  3. /agent swap divedeep → works ✅
  4. InvokeSubagents with agent_name "divedeep" → fails ❌

Config

  • divedeep is in availableAgents and trustedAgents in the parent agent's toolsSettings
  • Agent has custom MCP servers (builder-mcp, aws-coe, workplace-chat-mcp)
  • Reproducible 100% of the time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions