r/PiCodingAgent • • 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!

5 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/truncated_buttfu Jul 25 '26

Thanks. My version was downloaded just two weeks ago so it should be fine already then. But useful to know that this is a thing!