repeated failures to write spec docs
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
x86_64 GNU/Linux on AWS EC2
Kiro Version
0.11.133
Bug Description
Kiro is in a loop trying to write spec docs, typically design.md or tasks.md Eventually it reports: aborted. The agent has seen this error and will try a different approach to write the file if needed. Then it will continue and generates minutes later the exact same issue, Sometimes the issue goes away when i specify that no subagents may be used and the file must be written directly. This is not a reliable workaround.
Steps to Reproduce
use spec session create requirements and proceed to write design or tasks Kiro very often hangs or gets stuck in writing the file
Expected Behavior
Kiro should write the files
Conversation ID
No response
Additional Context
No response
🤖 Potential Duplicate Detected
This issue appears to be similar to:
- #5928: No ability to disable delegation to sub agents and removal of critical functionality from main agent! (85% similar)
- #5809: Error(s) while formalizing requirements to correctness propertiesRequirements.md file correction issues using kiro (85% similar)
- #5011: Generation of tasks.md fails to enable [Start Task] (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 delegation and mention workarounds involving disabling subagents. The new issue specifically mentions 'no subagents may be used' as a workaround, while #5928 is about 'No ability to disable delegation to sub agents' - these appear to be the same underlying problem with subagent functionality.
I reviewed the suggested duplicates and they are definitely not the same thing nor addressing the likely same underlaying issue.
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.
Hi @klaas-koster,
Thanks for the detailed report. We've identified this as a subagent write-conflict issue in the spec workflow where multiple subagents attempt to write the same file concurrently, causing retry loops.
This has been addressed in IDE 0.12 (latest: 0.12.184) which introduces Quick Plan mode — generating requirements, design, and tasks in a single pass without subagent delegation.
Could you please upgrade to the latest version (0.12.184) and let us know if you're still experiencing this issue? That will help us determine whether the fix fully resolves it or if additional work is needed.
Thanks!
@AnilMaktala if i have a steering doc to try to prevent this from happening, is it best to disable it i order to see if its fully resolved without the help of a steering doc?
I am on IDE version 0.12.200 now. Today I am seeing this behavior:
All 17 subagents in wave 1 succeeded. There's a coordination concern: multiple agents independently created mode.js. Let me verify it has all four exports merged correctly before marking tasks complete.
The 4 mode.js subagents had a race — paintModeBadge was dropped. Adding it directly via fallback.
Error(s) while editing mode.js
Operation was aborted by user or system. The agent has seen this error and will try a different approach to write the file if needed.
Then Kiro came to a grinding halt and did nothing at all anymore. So, my conclusion is that the file writing issues are not yet resolved.
The specification file writing is alway a disaster. This stupid bug drives me crazy and I have to turn to codex for stable develop experience.
I have found a way to 100% reliably reproduce this bug. Here are the step-by-step instructions to replicate the issue:
- Install the workflow skills repository: Install the following workflow skills:
https://github.com/liuzhengdongfortest/CodeStable - Generate a long document: Run the
cs-feat-design skillcommand to draft a software requirements document. Please define a relatively complex requirement to ensure the generated output is as long as possible. - Observe the error: At the final step of the process during the "write" operation, the Kiro model will consistently fail with the following error message:
"aborted. The agent has seen this error and will try a different approach to write the file if needed."
- Scope of the issue (Models): This error occurs across all Kiro models under this specific workflow.
- Scope of the issue (Products): This is not isolated to a single interface; other Kiro products, such as the Kiro CLI, exhibit the exact same behavior.
Root Cause Analysis & Insights: I have strong reasons to believe that there are no inherent issues with the Kiro IDE or the Kiro CLI itself. Instead, the bug likely resides on the Kiro model server-side.
Specifically, the server seems to have a defect when handling model calls for the write tool. When the text payload is exceptionally long, the server returns corrupted or malformed data, which subsequently causes a format error when the client-side model attempts to invoke the write tool.
Closing this issue as it was reported against an older version of Kiro (v0.x or early v1.x) and has had no activity in several months.
Kiro has shipped significant improvements since these versions, including stability fixes, new features, and major changes across v1.0, v1.1, v2.x, and the current v2.23.x releases. The behavior described here may already be resolved.
If this is still affecting you on the latest version, please open a new issue at https://github.com/kirodotdev/Kiro/issues/new with your current version (kiro-cli --version or Help > About in the IDE), your OS, and steps to reproduce. The latest version is available at https://kiro.dev/downloads/ or via kiro-cli update.
Thank you for taking the time to report this.