Skip to content

Performance of newer versions of codex with gpt-oss has fallen off a cliff #8272

Description

@bartlettroscoe

What version of Codex is running?

0.73.0

What subscription do you have?

plus

Which model were you using?

gpt-oss-20b

What platform is your computer?

Linux RedHat8 container

What issue are you seeing?

Our project has been putting together a benchmark suite for refactoring and test generation of C++ code. We have to use open-weights models for now and the gpt-oss models are fast and perform well (according to public benchmarks). We were getting some pretty good results with codex 0.55.0. But when we tried upgrading to codex 0.73.0, the performance on our benchmark cases fell off a cliff. Our pass@1 for codex + gpt-oss-20b-medium went from 0.6 to 0.1 and impacted all of our benchmark cases!

My guess is that this is due to gutting the default system prompt in the file codex-rs/core/prompt.md between codex versions 0.55.0 and 0.73.0. (I would need to do some debugging to verify that is the prompt being used for our use case but I don't see any others except for specific versions of gpt-5.)

I can fork the codex repo and try reverting just the hard-coded codex system prompt from the version in 0.55.0 but I first want to get some feedback to see if this is the likely issue.

Does OpenAI do benchmarking with the gpt-oss models when it updates codex, or is OpenAI only focused on benchmarks with the frontier gpt-5+ models? Otherwise, what would explain this cratering of performance of the gpt-oss models with updated versions of codex?

And why can't we tweak the codex system prompt without having to fork the repo? If we need better control and if OpenAI is not running benchmarks with the gpt-oss models when it updates codex, should we move on to a different open-source agent like OpenCode or some other tool that allows us more control?

What steps can reproduce the bug?

We would need to publish our benchmark suite. We are actually going to start that open-source process soon but it will be several months before that will be out.

What is the expected behavior?

It looks like codex-0.73.0 + gpt-oss-20b is giving up after half the model calls needed by codex-0.55.0 + gpt-oss-20b. I expect the agent to act better and solve the problem.

Additional information

Is codex the right CLI tool to be using with the gpt-oss models or should we be looking elsewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't workingcustom-modelIssues related to custom model providers (including local models)

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions