aws / aws/amazon-q-developer-cli
Subagent invocation fails with "unable to find agent" for agent that exists and is listed
Open
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
## 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
Contributor guide
Assessment
This issue has not been assessed yet.