r/PiCodingAgent • • 1d 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

14 comments sorted by

2

u/cl_0udcsgo 1d 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 1d ago

Thanks for sharing! 6.2sol as well?

1

u/cl_0udcsgo 1d 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- 1d 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 1d ago

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

1

u/whiterose0000001 1d 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 1d 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 22h 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/Ballz0fSteel 15h ago

Will check it out thanks! 

1

u/gbrennon 20h 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 15h ago

Wondering if it's ponytail maybe restricting 

1

u/adamshand 14h 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.

1

u/Ballz0fSteel 13h 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

u/adamshand 2h ago

I don't use intercom.