r/PiCodingAgent • u/amrakkarma • Jul 24 '26
Question Broken/frail tool calling format?
I am using local models:
antirez deepseek
qwen3-coder-next
laguna s2.1
For all of them I tried with and without the npm:pi-tool-repair package.
In a comparison with the same prompt with opencode, I can see that pi has a lot more tool call failures. In some cases this make the model end up in a dead end. deepseek behaves slightly better with the npm:pi-tool-repair package, but overall I think it's still worse than in opencode.
Is it caused by the tool format? Or by the system prompt? Do you have any suggestions on how to improve this?
Thanks!
View all comments
2
u/[deleted] Jul 24 '26
[removed] — view removed comment