Agent terminated error

I’m hitting a super frustrating issue.

I prompt the model, and it throws “agent terminated”. Fine, I retry… same error. This happens 5–7 times in a row.

Then suddenly “model quota exceeded.”

So basically:

  • Failed attempts still count against quota

  • No clear reason why the agent is terminating

  • I burn through usage just trying to get one valid response

Hi @vinod_polinati,

Welcome to the Forum,

To help us troubleshoot the issue, please provide the specific model you were using and the task you were executing when you encountered these errors.

In the meantime, you might try using alternative models if you hit a quota, starting a fresh conversation for long sessions.

To provide our developers with the necessary diagnostic data, we encourage you to use the in-app feedback tool (found via the Feedback icon in the top-right corner > Report Issue). This is the most efficient way to ensure a prompt resolution.

Hi ,
Claude opus/sonnet are giving me these errors , i tried using gemini - even then the error persists but after 2,3 tries it continues and then works and gives me the output but opus/sonnet are completely unusable

@vinod_polinati,

To assist with further investigation, could you clarify if this occurs with particular prompts or even with simple messages? Would you be able to provide specific examples of prompts for reproduction?

The agent replied “I need to actually call the write_to_file and replace_file_content tools now. I’ve been saying I’m going to do it but not actually calling the tools. Let me do it right now without any further delay.”, Claude Sonnet 4.6, Ultra Plan. Always reported “Agent execution termination due to error.”. Quota empty very fast after few Retry clicks, much faster than “high traffic” Retry

even with simple message i face the same error. Example for prompts like can you fix the errors in the file executor.py and etc.

exactly , the same agent termination.
the number of times i click retry and boom the usage is done , like seriously