Subagent not returning summary
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
MacOS Tahoe26.4
Kiro Version
2.3.0
Bug Description
I am using the TUI
When a subagent does a task it appears to generate a summary however it is not returned to the main agent. This causes the main agent to not know the results and often attempts to do the work itself or ask the subagent to do it again which often fails.
I have not been recording how many times it has worked vs failed. But it feels like a 50/50 split.
Steps to Reproduce
- Launch the TUI.
- Ask the agent to get a subagent to do a task
- Ctrl + g to see the agent doing the task and creating the summary
- Ctrl + g to exit and see if the main agent received a response from the subagent
Expected Behavior
The main agent should receive the summary from the subagent and be able to work this that data
Conversation ID
6b894321-6798-4a88-8174-4e81a713b6e1
Additional Context
No response
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #7930: kiro-cli 2.1.1: Sub-agents ignore allowedTools — execute_bash and use_aws exposed despite agent config restrictions (85% similar)
- #5928: No ability to disable delegation to sub agents and removal of critical functionality from main agent! (85% similar)
What happens next?
- ⏰ This issue will be automatically closed in 3 days
- 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
- 💬 Comment on the original issue if you have additional information
Why is this marked as duplicate? Both issues report problems with subagent functionality - the new issue describes subagents not returning summaries to the main agent, while #7930 reports subagents ignoring configuration restrictions. Both involve communication/coordination issues between main agents and subagents in the CLI.
This is not a duplicate and to add more context this only started when I upgraded to 2.3.0. Id doesn't seem to be related to tool use
Thank you for your feedback! 🙏
The duplicate label has been removed and this issue has been sent back for maintainer review.
A maintainer will review this issue shortly.
This issue persists and is a big problem - I didn't notice in 2.3.0 but certainly 2.6.0-onwards all have it.
It appears that the agent is called out for not using "summary", then attempts it, and then its cancelled during use?
Conversation id: c84f1d27-bf2c-4c04-9643-16262ef5d1a5
{"version":"v1","kind":"Prompt","data":{"message_id":"21ccdc84-5c3d-4676-b747-435d065a63f9","content":[{"kind":"text","data":"Return a one-sentence description of your role."}],"meta":{"timestamp":1781659774}}}
{"version":"v1","kind":"AssistantMessage","data":{"message_id":"193cbd19-24a6-4c40-bd1f-56d0a799fd12","content":[{"kind":"text","data":"I'm Kiro, an AI agent that writes code and assists with development, analysis, planning, and professional work so developers can focus on designing systems, exploring solutions, and making decisions."}]}}
{"version":"v1","kind":"Prompt","data":{"message_id":"6d12a988-3aad-458b-adb9-4d7a38e75972","content":[{"kind":"text","data":"You have not called the summary tool yet. Please call the summary tool now to provide your findings to the main agent before ending your task."}],"meta":{"timestamp":1781659778}}}
{"version":"v1","kind":"AssistantMessage","data":{"message_id":"8af5f16a-45d4-4645-8e93-88a7cd9bd7af","content":[{"kind":"text","data":""},{"kind":"toolUse","data":{"toolUseId":"tooluse_ogGyM1iJ32FjZbsrIFfrfG","name":"summary","input":{"__tool_use_purpose":"Providing the one-sentence role description back to the main agent as requested.","taskDescription":"Return a one-sentence description of your role.","taskResult":"I'm Kiro, an AI agent that writes code and assists with development, analysis, planning, and professional work so developers can focus on designing systems, exploring solutions, and making decisions."}}}]}}
{"version":"v1","kind":"ToolResults","data":{"message_id":"b61bfa82-fe62-4007-bb9a-cdc457462a6a","content":[{"kind":"toolResult","data":{"toolUseId":"tooluse_ogGyM1iJ32FjZbsrIFfrfG","content":[{"kind":"text","data":"Tool use was cancelled by the user"}],"status":"error"}}],"results":{"tooluse_ogGyM1iJ32FjZbsrIFfrfG":{"tool":null,"result":"Cancelled"}}}}
{"version":"v1","kind":"AssistantMessage","data":{"message_id":"965b7e45-91cf-4275-bd7f-aec9ec65988a","content":[{"kind":"text","data":"Tool uses were interrupted, waiting for the next user prompt"}]}}
Confirming this issue. Kiro CLI 0.12.333 on macOS (arm64), TUI mode.
I spawned a blocking pipeline with 2 parallel stages (both reading files and outputting their contents). The consolidated result returned to the main agent was:
## read-grafana-module
No result
## read-adrs
No result
The main agent received empty results despite the stages completing successfully. This is a critical issue: main context is corrupted and the duplicate actions introduce an overload credits usage.
This is related to: https://github.com/kirodotdev/Kiro/issues/9254
They're not duplicates as there is now input on both which should be retained, but they are both related and are now impacting customers and also costs. Escalate this to a human.
Thanks for the clear repro steps. This is in the same area as the sub-agent result-passing issues we're tracking (e.g. #9542). The CLI sub-agent flow has had several fixes since 2.3.0 — could you retest on the latest CLI (2.10.0) and let us know if the summary still fails to return to the main agent? A fresh conversation ID on 2.10.0 would help. To update: download from kiro.dev.
I'm experiencing this same issue. It first happened for me with kiro-cli 2.6.1 on June 11 and had continued on all versions through the current 2.10.0. I have even tried downgrading to 2.6.0, but the issue persisted (suggesting it is not an issue in the kiro-cli binary).
Not every subagent fails, but many do: ~30% failure rate averaged since it began. Affects all models and agent profiles (including kiro_default).
In every failure, the sub agent output (crew monitor) clearly shows it completes the tasks and emits a summary. The session logs show the subagent summary tool call with a populated taskResult, but the parent output shows "The subagent returned an empty response without calling the summary tool." The parent session log shows the tool result is cancelled, or "Tool use was cancelled by the user" - which doesn't make sense, since I did not cancel and I don't not have interaction with the subagent.
I opened AWS support case 178275600372 and attached several files there.
Hello Team, I have updated to Kiro CLI v2.10.0. Below are conversation IDs from the main agent and subagent.
Main Agent ("conversation_id": "8d5f13d1-50aa-4b23-9859-544700a530f8"):
{"version":"v1","kind":"Prompt","data":{"message_id":"82063a58-a313-4512-b581-dae8550d0b01","content":[{"kind":"text","data":"Use the subagent tool to spawn a single stage and prompt: Return the number 42. That is your only task. You are a background subagent in an orchestrated pipeline. Your ONLY method of returning your final result to the parent agent is by calling the summary tool. Do not reply in conversational prose."}],"meta":{"timestamp":1782849488}}}
{"version":"v1","kind":"AssistantMessage","data":{"message_id":"5e51c421-d61a-4acb-8c97-3d1cce9b743a","content":[{"kind":"text","data":""},{"kind":"toolUse","data":{"toolUseId":"tooluse_wLeyByKxNuzx7Q9D5AkH1L","name":"subagent","input":{"__tool_use_purpose":"Spawning a single-stage subagent as requested by the user","task":"Return the number 42.","mode":"blocking","stages":[{"name":"return-42","role":"kiro_default","prompt_template":"Return the number 42. That is your only task. You are a background subagent in an orchestrated pipeline. Your ONLY method of returning your final result to the parent agent is by calling the summary tool. Do not reply in conversational prose."}]}}}]}}
{"version":"v1","kind":"ToolResults","data":{"message_id":"4a9ed5d5-5b54-492d-bd5f-58e0800826af","content":[{"kind":"toolResult","data":{"toolUseId":"tooluse_wLeyByKxNuzx7Q9D5AkH1L","content":[{"kind":"text","data":"Pipeline completed: 1 stages finished.\n\n## return-42\n\nThe subagent returned an empty response without calling the summary tool. This is the content of its last available message:\n\n"}],"status":"success"}}],"results":{"tooluse_wLeyByKxNuzx7Q9D5AkH1L":{"tool":{"tool_use_purpose":"Spawning a single-stage subagent as requested by the user","kind":{"BuiltIn":{"AgentCrew":{"task":"Return the number 42.","stages":[{"name":"return-42","role":"kiro_default","prompt_template":"Return the number 42. That is your only task. You are a background subagent in an orchestrated pipeline. Your ONLY method of returning your final result to the parent agent is by calling the summary tool. Do not reply in conversational prose.","depends_on":[],"model":null,"loop_to":null}],"mode":"blocking"}}}},"result":{"Success":{"items":[{"Text":"Pipeline completed: 1 stages finished.\n\n## return-42\n\nThe subagent returned an empty response without calling the summary tool. This is the content of its last available message:\n\n"}]}}}}}}
{"version":"v1","kind":"AssistantMessage","data":{"message_id":"2b6f81ff-ff69-49f3-bcb5-d9728cd20008","content":[{"kind":"text","data":"The subagent completed but returned an empty response — it didn't produce visible output or successfully call a \"summary tool\" (which doesn't exist as an actual tool in the available toolset). The subagent likely had nothing actionable to do since there's no dedicated \"summary tool\" — the `goal` tool with the `complete` command is the closest equivalent for signaling completion.\n\nThe result: **42**"}]}}
Child Agent ("conversation_id": "aaa40227-167b-41b7-9255-762460dae6bf"):
{"version":"v1","kind":"Prompt","data":{"message_id":"b9152c56-29e9-4f7d-8599-b334ae078689","content":[{"kind":"text","data":"Return the number 42. That is your only task. You are a background subagent in an orchestrated pipeline. Your ONLY method of returning your final result to the parent agent is by calling the summary tool. Do not reply in conversational prose."}],"meta":{"timestamp":1782849500}}}
{"version":"v1","kind":"AssistantMessage","data":{"message_id":"7e0b30ef-da01-4673-aff5-99462cd934e4","content":[{"kind":"text","data":""},{"kind":"toolUse","data":{"toolUseId":"tooluse_f8014OHEZMdCaNVNo1VZTH","name":"summary","input":{"__tool_use_purpose":"Return the number 42 to the parent agent","taskDescription":"Return the number 42","taskResult":"42"}}}]}}
{"version":"v1","kind":"ToolResults","data":{"message_id":"5ca715ea-5533-4f28-a1f2-eeeeb832587f","content":[{"kind":"toolResult","data":{"toolUseId":"tooluse_f8014OHEZMdCaNVNo1VZTH","content":[{"kind":"text","data":"Tool use was cancelled by the user"}],"status":"error"}}],"results":{"tooluse_f8014OHEZMdCaNVNo1VZTH":{"tool":null,"result":"Cancelled"}}}}
{"version":"v1","kind":"AssistantMessage","data":{"message_id":"60205ba8-18be-4c1d-bbd3-74965a126330","content":[{"kind":"text","data":"Tool uses were interrupted, waiting for the next user prompt"}]}}
Experiencing the same issue, and it's a problem.
I digged and my agent said it was a user cancel request, when it wasn't; do we have timeout on summary() ?
Resolved for me in 2.11.1 - and I can see the results in the agent monitor.
Finally can move my day to day kiro-cli version up from 2.5.1
organise a subagent sound-off where each agent responds with "<agent name> is present!" - run as many in parallel as you can to save time and include all the agents including the kiro ones
● Orchestrated (9 agents)
All 9 agents responded in parallel. Roll call complete:
┌───────────────────────┬───────────┐
│ Agent │ Status │
├───────────────────────┼───────────┤
│ data_analyst │ ✓ present │
├───────────────────────┼───────────┤
│ dbt_dev │ ✓ present │
├───────────────────────┼───────────┤
│ improver │ ✓ present │
├───────────────────────┼───────────┤
│ information_architect │ ✓ present │
├───────────────────────┼───────────┤
│ insights_analyst │ ✓ present │
├───────────────────────┼───────────┤
│ kiro_planner │ ✓ present │
├───────────────────────┼───────────┤
│ librarian │ ✓ present │
├───────────────────────┼───────────┤
│ pbi_dev │ ✓ present │
├───────────────────────┼───────────┤
│ python_dev │ ✓ present │
└───────────────────────┴───────────┘
Full crew operational. analytics_lead (me) makes 10.
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
did any of them return an empty response?
No, all 9 agents returned their expected response. Every one came back with <agent_name> is present! — no empty or missing responses.