
First time user needing help
It appears my AI agent is having hard time getting tools supplied by Kilocode to work. I've checked the agent itself, and the code it produces is alright, and the code also appears as expected and unchanged on the kilocode chat window, but after it uses apply_diff on an existing file the result is often a bit garbled, with sections of the code getting duplicated. I mean, it's duplicating some completely unrelated code too, that wasn't even part of the <<<<<<< SEARCH or >>>>>>> REPLACE blocks. And the result I'm looking at right now, the last line of SEARCH block didn't get replaced either, the second to last did.
The agent also often gets the impression that the changes it just made didn't take effect, or that my AGENTS.md would be empty when specifically told to read the file etc. so I think there might be some issue with reading as well.
I wonder if there are some settings I need to change or if there's some workarounds, like could I add rules for preferring different tools? What all tools are there and which ones should I it use? I did notice the "Enable Fast Apply" under experimental, but that didn't seem to help.
I'm on IntelliJ, my Kilocode plugin version is 4.99.1, my AI agent is Qwen2.5-coder-32B supplied via locally hosted ollama.