GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add Cursor Router optimization levels by jontonsoup · Pull Request #296 · lidge-jun/opencodex

Conversation

@jontonsoup

@jontonsoup jontonsoup commented Jul 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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
All reactions
  • 👍 1 reaction
@jontonsoup
Add Cursor Router optimization levels
8e87079
@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jontonsoup ChatGPT Codex Connector

jontonsoup commented Jul 22, 2026

Copy link
Copy Markdown
Author

@coderabbitai review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
✅ 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jontonsoup
jontonsoup marked this pull request as ready for review July 22, 2026 19:16
@jontonsoup
jontonsoup requested review from Ingwannu and lidge-jun as code owners July 22, 2026 19:16
@lidge-jun
lidge-jun merged commit c80b505 into lidge-jun:dev Jul 22, 2026
5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@jontonsoup
jontonsoup deleted the codex/cursor-routing-levels branch July 23, 2026 00:12
lidge-jun added a commit that referenced this pull request Jul 23, 2026
@lidge-jun
feat(cursor): add Router optimization levels
5b42212
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
@lidge-jun
devlog: finalize overnight PR review — 3 merged, 6 rebuild, 1 keep-open
fa212c7
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
fix(cursor): add kimi-k3 with low/high/max effort tiers #646
Merged
[WRONG BRANCH] fix(cursor): accept trailing -fast Grok wire ids #730
Closed
fix(cursor): send Grok 4.5 Fast parameters #881
Closed
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
feat(cursor): add Router optimization levels
cc49688
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.
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
devlog: finalize overnight PR review — 3 merged, 6 rebuild, 1 keep-open
d2221f7
Sol reviewed all 10 PRs. Results:
- Merged: lidge-jun#286 (500→400), lidge-jun#296 (Cursor Router), lidge-jun#302 (Kiro hardening)
- Rebuild-on-dev: lidge-jun#255, lidge-jun#283, lidge-jun#293, lidge-jun#301, lidge-jun#298, lidge-jun#299
- Keep open: lidge-jun#249 (Cloudflare tunnel)

Typecheck + full test suite pass (3574/3574) after all merges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lidge-jun lidge-jun Awaiting requested review from lidge-jun lidge-jun is a code owner
@Ingwannu 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

Labels

None yet

Projects

None yet

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.

2 participants

@jontonsoup @lidge-jun
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.