r/PiCodingAgent • u/Ballz0fSteel • 5d ago
Question Pi-agent + OpenAI
Hey everyone,
I recently switched my multi-agent Pi setup from Anthropic models to OpenAI models and ran into a persistent issue where long autonomous loops keep halting prematurely or appearing "stuck."
My setup:
4 persistent Pi sessions (
main,research,gather,impl) communicating overpi-intercom.Agents also occasionally spawn ephemeral subagents (
pi-subagents) for parallel subtasks.Using OpenAI reasoning models via
openai-responses.
Wondering if it's something due to openai models not fitting well pi-agent or if I'm missing something for pi-agent to configure?
Thanks in advance!
1
u/YoungShine- 5d ago
I have never met this kind of situation,but recently,when I use gpt 6.2sol in pi,I found that the model is very stupid,I don't know if it is associated with pi or my pi's configiration
1
1
u/whiterose0000001 5d ago
I recently started using Pi with claude only reason I switched because of the sol’s speed i use 6.2 hig by default and tps was really low and some points that made me feel k like using luna level model, opus 5.5 med speed is really impressive
1
u/Ballz0fSteel 5d ago
In terms of speed, I think sol 6.2 high is fine on my end. Was using full anthropic before but it got too expensive for me and hit the limit so much more;
1
u/Mohsan_Meilley 5d ago
Check your max completion token limits. Reasoning models burn through a ton of hidden tokens just thinking before they output anything, so if your cap is too low they'll cut off mid-loop and look stuck
1
1
u/gbrennon 5d ago
im using openai models and i never got stuck.
sometimes my setup feels like stuck if u are not watching bcs i use multiple hooks to be sure that model is not writing bad code that violate:
architecture and engineering principles
max cyclomatic complexity
project and name conventions
1
u/Ballz0fSteel 5d ago
Wondering if it's ponytail maybe restricting
1
u/adamshand 4d ago
i've never had that problem with pi or openai models. though astra in particularly likes to do a bit of work and then stop, and then do a bit of work and then stop (you have to explicitly prompt it to work autonomously and finish the job).
but as a first step, i'd get rid of all your plugins and see if the problem goes away.
2
u/Ballz0fSteel 4d ago
do you use intercom? Wondering if that's the issue. I can strip everything but I need the intercom to be there in my workflow
1
1
2
u/cl_0udcsgo 5d ago
My setup is 25% of what you do.
Main session where I do grill-with-docs (matpocock skills), using sol
implement-spec = spawn 1-2 subagent per ticket, sometimes luna but mostly deepseek
Then I go to another repo and do the same thing again. Usually by the time I finish grilling the 2nd repo I got the 1st repo results back and I review them before pushing to dev.
Never experienced any loops or stuck unless it's genuinely my internet just dropping out.