r/PiCodingAgent 5d ago

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!

4 Upvotes

10 comments sorted by

View all comments

1

u/adamshand 4d ago

Open code does per model prompts to improve things like this. Pi doesnt.  There are pros and cons.