In pi coding agent 0.85.1, using Vercel AI Gateway with deepseek/deepseek-v4.1-flash at thinking level medium, the model can abandon pi's native tool-call format and emit Anthropic/XML-style tool markup as ordinary assistant text:
<function_calls>
<invoke name="bash">
...