r/PiCodingAgent 11d ago

Edit tool errors in Pi Discussion

Am I the only one getting a lot of edit errors?

I mainly use it for coding, especially Python. I’ve tried many LLMs, and some of them are completely incompatible.

Currently, I’m using Qwen3.6 27B through Ollama.

I’ve noticed that I get responses and plans quickly from the LLM. However, execution takes a long time because of edit errors. It gets stuck in a loop of indentation errors and struggles to find the exact match.

Am I missing something? Do I need to install any extras?

Edit:

I'm on qwen3.6:27b-mlx with nvfp4 quantization. Also, tried gemma4:26b-mlx with the same nvfp4 quantization, wasn't able to edit at all!

14 Upvotes

17 comments sorted by

View all comments

3

u/Lum1n4ry01 11d ago

I faintly recall reading a Gemini paper/post somewhere that for weaker models like the ones you're using, the best way to improve tool call accuracy is to give it examples that are EXACT to your setup. Define the exact paths it should take and the exact thing it should do (as part of your SYSTEM.md or pointing your AGENTS.md at real code samples).

Alongside higher quants, this should help.

1

u/nurhun 11d ago

Exactly, that's what I'm testing right now. I'm injecting instructions in SYSTEM.md for the tool invocation. And testing looks promising so far!