[BUG]: Agent repeatedly performing same operation
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.
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?
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.