r/LocalLLM•
layziegtp

AnythingLLM @agent calling tool in loop

Question

I have a /command that runs @agent summarize everything we have talked about today. Write the contents of the summary to a markdown file named date.md

It does this, the agent runs, but then it runs again. And again. It will pull up multiple instances of the document save interface. So to use it I have to quickly save the document then /exit before it pops up again.

My understanding is it's a tool calling issue with the model itself. Is there any way to fix this that doesn't involve using a different model? I'm quite attached to the one I'm using.

Posted Mar 1, 2026, 2:28 PM UTC

13
Loading comments…