Skip to content

We need to prevent agents to call the same tool multiple times in a row with the same inputs. #8

@wmeddie

Description

@wmeddie

The problem

It seems that many frontier models get into a failure mode where they call the same tool over and over. Including gemini-flash-2.5 and gpt-5. This is typically a symptom of a model that is too small but these models seems to route to a small model and get stuck into this loop.

Of course there is times when calling the exact same tool more than once may be correct and necessary. We need to allow the model to provide a nonce and reasoning comment for calling the tool again to allow it to be called. As long as the reasoning is unique within the current AgentRun we should let it through. (parameters _nonce and _duplicate_reasoning)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions