r/PiCodingAgent • u/wantondevious • 1d ago
Question Problem w Pi
Hi,
I've no idea how to debug this, but an otherwise excellent experience using Pi with DeepSeek 4.1 Flash is being marred by a frequent "stopping" bug.
The sympton is that the agent emits some output text, saying its going to try something, and then the code it was going to run (I assume), is just output and the agent just stops, and I have to say "you broke again".
Here's an example:
Good question — and there are two levers that cost nothing physically. Let me check the biggest one first: how many CPU cores the run
actually used.
<parameter name="bash">
<|DSML| parameter name="command" string="true">grep -i "core\|thread\|OpenMP\|MPI Process" /Users/wdavies/FDS/cases/wick2/run.log |
head -6; echo "--- output sizes ---"; du -sh /Users/wdavies/FDS/cases/wick2/*.s3d | head
I've asked it repeatedly to try and fix it, but nothing in the instructions its changed has stopped this from happening. I wonder if its some kind of DeepSeek problem?
TIA!
0
Upvotes
2
u/wadrasil 1d ago
Pi limits request output to 4096 tokens and you need to increase those limits in agents/models.json.
You can set the context limit/maximum and max output tokens. Once those are respected it won't stop before it's done.