GitHub Issue
Codex doesn't seem to work?
Codex doesn't work with autoresearch as far as I can tell (unlike Claude) because it ignores instruction to never stop. I'm not sure if there is a way to "kick it" that someone has found. In Claude that would be the new /loop (except as I mentioned it's not needed). I know you could have a ralph loop but those are not interactive sessions. I really much prefer an interactive session because you can see the work the agent is doing and also pitch in arbitrarily.
View Raw Thread
Developer & User Discourse
SlipstreamAI • Mar 9, 2026
experiencing this with 5.4?
rankun203 • Mar 9, 2026
I'm having exactly this issue, with Codex using GPT 5.4.
I ended up having to run it in a `while` loop
```bash
while true; do
codex exec --dangerously-bypass-approvals-and-sandbox "have a look at program.md and kick off a new experiment loop" 2>&1 | tee -a agent.log
sleep 1
done
```
then I can search for "have a look at program.md" in agent.log to see it getting restarted.
But then I lose the interactivity of Codex.
I ended up having to run it in a `while` loop
```bash
while true; do
codex exec --dangerously-bypass-approvals-and-sandbox "have a look at program.md and kick off a new experiment loop" 2>&1 | tee -a agent.log
sleep 1
done
```
then I can search for "have a look at program.md" in agent.log to see it getting restarted.
But then I lose the interactivity of Codex.
sen-ye • Mar 9, 2026
I ran into the same issue while using codex. It seems to be related to the OpenAI API (or the model itself). I tried integrating GPT-5.4 into Claude Code, but it still wouldn't work continuously..
Whamp • Mar 9, 2026
I think you can achieve a model agnostic version of what you're looking for by using Pi pi.dev (https://github.com/badlogic/pi-mono/) and combining it with the Interactive Shell extension: https://github.com/nicobailon/pi-interactive-shell
can handle long running looping behavior with the ability for both human and agent to monitor and interrupt/interact.
That way you can use one agent harness framework but change the models, have the models compete or collaborate or review etc . . .
codex/claude subs work in pi oauth
can handle long running looping behavior with the ability for both human and agent to monitor and interrupt/interact.
That way you can use one agent harness framework but change the models, have the models compete or collaborate or review etc . . .
codex/claude subs work in pi oauth
jonathanpwang • Mar 9, 2026
I was able to get codex to get codex to loop where it has `agent_loop.sh` for the while loop, `monitor_loop.sh` to monitor the agent, and `watchdog_loop.sh` to restart the agent loop.
Market Trends