Skip to content

Mirror Codex's current model catalog in its defaults - #85

Merged
andrew merged 2 commits into
mainfrom
codex-gpt-6-models
Nov 16, 2026
Merged

andrew merged 2 commits into
mainfrom
codex-gpt-6-models

Conversation

@andrew

@andrew andrew commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

CodexHarness.DefaultModels listed gpt-5.3-codex, gpt-5.4, gpt-5.4-mini and gpt-5.2, none of which are in Codex's bundled catalog any more. The list now follows the listed models in that catalog (codex-rs/models-manager/models.json, unchanged from rust-v0.167.0 through rust-v0.169.0) in priority order. gpt-5.5 is left out because Codex rejects it for ChatGPT logins.

gpt-6.1-sol is first, as the CLI's default, and tagged high. gpt-6.1-terra is mid and gpt-6-astra is max; these previously named gpt-5.3-codex, gpt-5.4-mini and gpt-5.5.

The table gains rows for gpt-6.1-sol, gpt-6.1-terra, gpt-6-astra, gpt-6-sol and gpt-6-luna, with their long-context rates above 272,000 tokens, matching https://models.dev/api.json. The removed models keep their rows because Copilot still lists them.

Part of #77.

Summary by CodeRabbit

  • New Features
    • Updated the available Codex models, with GPT-6.1 Sol listed first and GPT-6 Astra, GPT-6 Sol, GPT-6 Luna, GPT-6.1 Terra, and GPT-5.6 models included.
    • Added pricing information for supported GPT-6 models and GPT-5.6 Terra and Luna, including long-prompt rates. GPT-5.2 pricing is no longer listed.
  • Documentation
    • Updated the process-runner example to use GPT-6.1 Sol.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

The Codex default model list and pricing table now include GPT-6 models. GPT-5.6 Terra and Luna IDs use shared constants. The README example and tests reflect the updated model list and pricing.

Changes: Codex model catalog and pricing

Layer / File(s) Summary
Model identifiers and defaults
harness.go, codex.go, copilot.go, README.md
Codex defaults now include GPT-6 models, with gpt-6.1-sol first. GPT-5.5 is omitted. Copilot uses shared GPT-5.6 Terra and Luna ID constants, and the README example uses gpt-6.1-sol.
Pricing entries and validation
pricing.go, codex_test.go, pricing_feed_test.go
The pricing table adds GPT-6 rates and updates the GPT-5.6 Terra and Luna keys. Tests check the first Codex default, usage-cost calculation, and a long-prompt pricing discrepancy for gpt-6.1-sol.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

Possibly related PRs

Suggested reviewers: p-linnane, alexandre-daubois

Merge Risk: Minimal · up to 56e32

This updates Codex's default model list and pricing to the GPT-6 and GPT-5.6 lineup. Cost estimates for aggregated usage still use base rates, as before and as documented. No material merge-blocking risk was established. The open comment about long-prompt estimates concerns existing documented behavior rather than a regression from this change.

Security architecture risk: Minimal · up to 56e32

The change updates selectable defaults and cost estimates without changing access permissions, isolation, or credential handling. No material security or failure-containment regression was identified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The changed behavior affects consumers of the default catalog and shared cost estimates. The inspected production diff does not expand credential access, tool authority, network destinations or isolation privileges.

Trust Boundaries and Controls

  • observed — The existing interface leaves process placement and isolation to callers, and documents that non-Claude tool restrictions depend on the caller’s sandbox. These responsibilities are unchanged by the catalog update.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Mirror Codex's current model catalog in its defaults" matches the main change. The PR updates CodexHarness.DefaultModels in codex.go to match the models in Codex's bundled catalog, in prior…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Mirror Codex's current model catalog in its defaults" matches the main change. The PR updates CodexHarness.DefaultModels in codex.go to match the models in Codex's bundled catalog, in priority order. The title is specific and describes the primary change. Supporting edits in pricing.go, copilot.go, and the tests follow from that change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment thread pricing.go Outdated
@@ -74,11 +74,21 @@ var modelPricing = map[string]modelPrice{
// OpenAI
// Sol's promotional standard rates apply through 2026-11-30.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenAI's pricing page ties the promotion ending 2026-11-30 to gpt-5.6-sol, but the new rows put this comment above gpt-6.1-sol, the new Codex default, and two other Sol models. You could move the GPT-6 rows below the GPT-5.6 block or name gpt-5.6-sol in the comment.

Comment thread codex.go
{Name: "GPT-5.4 mini", ID: modelGPT54MiniID, Tier: modelTierMid},
{Name: "GPT-5.4", ID: modelGPT54ID},
{Name: "GPT-5.5", ID: modelGPT55ID, Tier: modelTierMax},
{Name: "GPT-5.2", ID: "gpt-5.2"},

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's defaults have no gpt-5.2, so dropping it here leaves its modelPricing row outside both TestDefaultModelsArePriced and the models.dev drift check. You may want to delete that row along with this entry.

Comment thread codex.go
func (CodexHarness) DefaultModels() []ModelDefault {
// IDs mirror Codex's built-in model catalog. The Codex-tuned model comes
// first because that is the CLI's default when --model is absent.
// IDs mirror the listed models in Codex 0.169.0's bundled catalog, in its

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bundled catalog sets minimal_client_version to 0.153.0 for the three tiered models and 0.155.0 for gpt-6-sol and gpt-6-luna, while the codexLine comment names Codex 0.147.0 as the verified version. I haven't checked how an older CLI handles --model gpt-6.1-sol, so you might note the 0.153.0 floor here for callers that pin Codex.

Comment thread codex_test.go Outdated
CodexHarness{}.ParseStream(strings.NewReader(input), func(event Event) {
result = event
})
want := (60000*2.00 + 40000*0.10 + 5000*10.00) / 1e6

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expected cost repeats the gpt-6.1-sol rates from pricing.go, so a price update that the models.dev check flags means editing this test too. It may be worth computing want from modelPricing[model], which leaves the test pinning the token mapping it adds over TestCodexArgsAndStream.

Also note the Codex 0.153.0 floor for GPT-6 and read the test's rates from the table.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional comments: 1

pricing.go: 1

135-135: Major · Functional Correctness · Heavy lift

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Apply the long-prompt rate to single-request estimates.

For gpt-6.1-sol, 300,000 uncached input tokens cost $1.20 at the configured long-prompt rate. CostFromUsage returns $0.60 because it uses the base rate. Codex directs callers to this function for list-price estimates. Provide a request-aware public calculation so callers can select the long-prompt rate without treating aggregated usage as one request.

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8d3f0a52-9dac-4102-a97a-8f4e303ee7e6
Commits

Reviewing files that changed from the base of the PR and between 5589f1c and 56e32e4.

Files selected for processing: 3

  • codex.go
  • codex_test.go
  • pricing.go
Files skipped from review as they are similar to previous changes: 1

  • codex.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@andrew
andrew merged commit 6179890 into main Nov 16, 2026
10 checks passed
@andrew
andrew deleted the codex-gpt-6-models branch November 16, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants