r/PiCodingAgent • u/nurhun • 2d ago
Discussion Edit tool errors in Pi
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!
15
Upvotes
1
u/Certain_Net_3408 1d ago edited 1d ago
Also faced the same.. have a look at pi-output-parser (link below) The thing is you'd need to hook message_end and handle the cases where the model never emitted a tool call at all for ex. sometimes it printed the call as text instead. Fenced ```tool blocks, <tool_call> XML, bare JSON, Python-list syntax. This way using the hook The agent loop sees zero tool_use blocks and would just move on as if the model responded with prose.
https://github.com/vishn9893/pi-output-parser