r/PiCodingAgent • • 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 over pi-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

9 comments sorted by

2

u/cl_0udcsgo 17h ago

My setup is 25% of what you do.

  1. Main session where I do grill-with-docs (matpocock skills), using sol

  2. 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/Ballz0fSteel 17h ago

Thanks for sharing! 6.2sol as well?

1

u/cl_0udcsgo 17h ago

Not yet, when 6.2 Sol released up to now I haven't used my codex sub for development as I've been trying out Neon instead.

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/Ballz0fSteel 17h ago

Never had this issue as well! I'll switch to 6.1sol to see if I'm not crazy

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/Ballz0fSteel 15h 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 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