← sources

Claude to Codex and back again while working.

source: reddit (reddit:ClaudeCode)published 2026-10-26 04:48ingested 2026-10-27 02:39

retained text

Curious how do you work with claude and codex. 

Was working on this idea I had today. What if claude code while working could switch to codex and visversa. 

I actually built it out today,  its pretty good.  So basically when claude code switched to codex, it switches to codex cli. 

It works like auto compact, best i can describe. The command  is triggered by me, claude or codex, can also trigger in flight, it doesn't stop the agent.  

The agent just continues with the handover. 

Its interesting to see it work. Lot of wiring and inventing to try get codex to run exactly like claude does in my setup. Id say u can get 90% there, codex is just missing some pieces. 

Has anybody done something like this. I have it working pretty good, but if anyone else did it ill love to see where they landed. 

document fetched 2026-10-27 00:42 · canonical https://reddit.com/r/ClaudeCode/comments/1xfnlrb/claude_to_codex_and_back_again_while_working