You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mirror Codex's current model catalog in its defaults - #85
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.
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.
Check the pricing table against models.dev on a schedule #77 — This PR adds model pricing entries and updates Codex defaults related to the issue’s pricing-drift objective. It does not add the proposed scheduled comparison or address the issue’s other drift items.
Possibly related PRs
alpha-omega-security/harness#82 — This PR updates Codex tier assignments, which share the tier-tag contract tested by PR #82.
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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
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.
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.
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.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CodexHarness.DefaultModelslistedgpt-5.3-codex,gpt-5.4,gpt-5.4-miniandgpt-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 fromrust-v0.167.0throughrust-v0.169.0) in priority order.gpt-5.5is left out because Codex rejects it for ChatGPT logins.gpt-6.1-solis first, as the CLI's default, and taggedhigh.gpt-6.1-terraismidandgpt-6-astraismax; these previously namedgpt-5.3-codex,gpt-5.4-miniandgpt-5.5.The table gains rows for
gpt-6.1-sol,gpt-6.1-terra,gpt-6-astra,gpt-6-solandgpt-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