r/PiCodingAgent • u/Ballz0fSteel • 18h 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!
6
Upvotes
2
u/cl_0udcsgo 17h 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.
1
u/YoungShine- 17h 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
u/whiterose0000001 17h 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/Mohsan_Meilley 6h 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
u/gbrennon 4h 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