Codex works great in opencode until it gets up to around 200k context. Then it starts doing things like:
me: Can you implement the next thing
OpenCode+Codex: Yep I'll do that next. <does nothing and returns to prompt>
me: Well?
OpenCode+Codex: <starts implementing>
me: Looks good, let's fix this one issue.
OpenCode+Codex: Sure let's do that. <does nothing and returns to prompt>
me: <bangs head against wall>
--
I've found the codex cli to be much better in this regard, it doesn't nearly derp out so much at higher token counts.
Opus is still my favourite model (I've found 4.6 specifically gives me the best results in OpenCode), but with all the shenanigans Anthropic is pulling, Codex is a close enough substitute.
me: Can you implement the next thing
OpenCode+Codex: Yep I'll do that next. <does nothing and returns to prompt>
me: Well?
OpenCode+Codex: <starts implementing>
me: Looks good, let's fix this one issue.
OpenCode+Codex: Sure let's do that. <does nothing and returns to prompt>
me: <bangs head against wall>
--
I've found the codex cli to be much better in this regard, it doesn't nearly derp out so much at higher token counts.
Opus is still my favourite model (I've found 4.6 specifically gives me the best results in OpenCode), but with all the shenanigans Anthropic is pulling, Codex is a close enough substitute.