anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

[BUG]: Agent repeatedly performing same operation

Open beyond2060 opened this issue 2 months ago • 2 comments

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

I set up the Anything LMM for the first time on OSX. I connected to openrouter, selected Claude 4.5 Sonnet. Turned on the Generate Charts skill. Asked it to create a simple chart with five bars. It did so but then seemed to do it repeatedly, over and over again. A check of usage on OpenRouter showed it was doing a call about 20 times with the same token numbers. I quit Anything LLM and it stopped. Since this is my first time using it this has put me off it a bit, because this type of bug actually wastes money.

Are there known steps to reproduce?

Unfortunately since I had to quit and reenter the app it didn't save the prompt. But something like: @agent create a simple bar chart with five bars with random numbers.

beyond2060 avatar Oct 13 '25 18:10 beyond2060

This has been known specifically to occur with OR and Claude - we use a monkey patch for OpenRouter specifically because not all models support tool calling - and this could very well be the issue.

However, we have the Skill Deduplicator on any patched provider to prevent exactly that. Was this it exactly same call, or was it the same call with slight variations in the requests?

timothycarambat avatar Oct 13 '25 19:10 timothycarambat

I don't know if the call was exactly the same, but the number of tokens was identical about 20 times in a row, suggesting that it was the same call.

beyond2060 avatar Oct 14 '25 19:10 beyond2060