GeezerVison is showing github.com — Add Cursor Router optimization levels by jontonsoup · Pull Request #296 · lidge-jun/opencodex
Conversation
jontonsoup
commented
Jul 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- expose Cursor Router's Cost, Balance, and Intelligence optimization levels as
cursor/auto-cost, cursor/auto-balance, and cursor/auto-intelligence
- preserve
cursor/auto as the backwards-compatible account/team default
- encode explicit levels through
AgentRunRequest.requested_model.parameters while keeping every router entry available through static and live model catalogs
- document the model IDs and add adapter, protobuf, discovery, and Codex catalog regression coverage
Why
Cursor Router now offers three explicit optimization levels, but Codex cannot render Cursor-specific model parameters. Representing those choices as first-class model IDs makes the full routing ladder selectable from Codex without changing the existing cursor/auto behavior.
User impact
Users can choose the desired Cursor routing tradeoff directly from the Codex model picker. Existing configurations using cursor/auto continue to use the Cursor account or team default.
Validation
bun run typecheck
bun test --isolate ./tests/ — 3,515 tests passed
- focused Cursor/catalog tests — 112 tests passed
bun run lint:gui
- GUI production build
- Astro documentation production build
bun run privacy:scan
git diff --check
Summary by CodeRabbit
-
New Features
- Added Cursor Router model options for cost, balance, and intelligence optimization.
- Explicit optimization choices are now preserved in requests while using Cursor’s default model.
- Router options remain available even when live model discovery does not list them.
-
Documentation
- Added guidance explaining Cursor Router options, request behavior, and model availability.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
coderabbitai
Bot
commented
Jul 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

📝 Walkthrough
Walkthrough
Cursor Router gains explicit cost, balance, and intelligence model variants. Discovery preserves these static routes, request construction carries their routing levels, and protobuf encoding sends them as optimization parameters on Cursor’s default model.
Changes
Cursor Router optimization
| Layer / File(s) |
Summary |
Router catalog and model selection src/adapters/cursor/discovery.ts, tests/cursor-discovery.test.ts, tests/codex-catalog.test.ts, docs-site/src/content/docs/reference/*.md, structure/04-transports-and-sidecars.md |
Adds four Cursor Router catalog ids, preserves them during live discovery, maps explicit variants to the default wire model, and documents their routing behavior. |
Routing propagation and protobuf encoding src/adapters/cursor/types.ts, src/adapters/cursor/request-builder.ts, src/adapters/cursor/protobuf-request.ts, tests/cursor-adapter.test.ts, tests/cursor-blob.test.ts |
Carries an optional routing level through request construction and encodes it as the optimization parameter in requestedModel. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Sequence Diagram(s)
sequenceDiagram
participant ModelCatalog
participant RequestBuilder
participant CursorRunRequest
participant encodeCursorRunRequest
ModelCatalog->>RequestBuilder: select cursor/auto-intelligence
RequestBuilder->>CursorRunRequest: set modelId default and routingLevel intelligence
CursorRunRequest->>encodeCursorRunRequest: provide routingLevel
encodeCursorRunRequest->>CursorRunRequest: encode optimization parameter in requestedModel
Loading
Suggested reviewers: lidge-j, wibias
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
| Check name |
Status |
Explanation |
| Docstring Coverage |
✅ Passed |
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
| 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. |
| Description Check |
✅ Passed |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
✅ Passed |
The title clearly matches the main change: adding Cursor Router optimization levels and related support. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Jul 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
✅ Action performed
Review finished.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lidge-jun
added a commit
that referenced
this pull request
Jul 23, 2026
Expose cursor/auto-cost, cursor/auto-balance, cursor/auto-intelligence
as first-class model entries. Explicit variants encode the optimization
parameter in RequestedModel.parameters while legacy cursor/auto retains
the account/team default.
Co-authored-by: Jonathan Friedman <[email protected]>
Ref: PR #296
NOTE: Sol review (Gauss) identified 1 high blocker — router variants
bypass account/admin availability. Post-merge fix required before
release promotion.
lidge-jun
added a commit
that referenced
this pull request
Jul 23, 2026
Sol reviewed all 10 PRs. Results:
- Merged: #286 (500→400), #296 (Cursor Router), #302 (Kiro hardening)
- Rebuild-on-dev: #255, #283, #293, #301, #298, #299
- Keep open: #249 (Cloudflare tunnel)
Typecheck + full test suite pass (3574/3574) after all merges.
This was referenced Jul 28, 2026
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
Expose cursor/auto-cost, cursor/auto-balance, cursor/auto-intelligence
as first-class model entries. Explicit variants encode the optimization
parameter in RequestedModel.parameters while legacy cursor/auto retains
the account/team default.
Co-authored-by: Jonathan Friedman <[email protected]>
Ref: PR lidge-jun#296
NOTE: Sol review (Gauss) identified 1 high blocker — router variants
bypass account/admin availability. Post-merge fix required before
release promotion.
Reviewers
lidge-jun
Awaiting requested review from lidge-jun
lidge-jun is a code owner
Ingwannu
Awaiting requested review from Ingwannu
Ingwannu is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|