Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Agent stuck in context summary loop

Open obue opened this issue 8 months ago • 2 comments

Before opening, please confirm:

Operating System

Windows 11

Kiro Version

1.107.1

Bug Description

When I execute a workflow as regular as Kiro would be used, I experience extremely often that the agent is unable to cope with larger files. It tries to process a problem, but the context is too big, and then a summary loop starts. The agent is unable to come out of that. I have tried to give it instructions to break out, but even that fails in 90% of the cases. There should be a circuit breaker implemented on the application level that detects such patterns and reorganizes the tasks so that they are digestible. I'm working on a greenfield application that does not have a very complicated code base and is fully created by Kiro.

Steps to Reproduce

Create a spec with Kiro on an existing code-base Krio creates to big tasks on his own

Model: Claude Opus 4.6

Expected Behavior

Descriped already in the bug description

Conversation ID

a4ba8d16-539a-4766-92b2-652d300c3dd0

Additional Context

No response

obue avatar Mar 10 '26 17:03 obue

🤖 Potential Duplicate Detected

This issue appears to be similar to:

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 report agents getting stuck in context summarization loops due to high context usage, with similar symptoms of being unable to break out of the loop

github-actions[bot] avatar Mar 10 '26 17:03 github-actions[bot]

This issue has been automatically closed as it appears to be a duplicate of #4992.

If you believe this is incorrect, please comment on this issue and a maintainer will review it.

github-actions[bot] avatar Mar 14 '26 00:03 github-actions[bot]