Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(models): Ultracode is offered on Sonnet 5, Sonnet 5.5 and Haiku 5.5 #17606

Closedkaovilai(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/17606/headopened View on GitHub

Note

Responses generated with Claude

Problem

The Reasoning picker offers Ultracode only on the Opus and Fable profiles. Claude Code gates Ultracode on the model supporting xhigh effort, not on a model family:

  • Claude Code's bundled model table (2.1.296) lists xhigh_effort for claude-sonnet-5, claude-sonnet-5-5, claude-haiku-5-5 and claude-opus-5-5, and not for claude-sonnet-4-6.
  • The model-config docs say Ultracode is unavailable when workflows are off or "the model doesn't support xhigh effort", and list Sonnet 5.5 among the models with xhigh.
  • In a T3 Code thread on Claude Sonnet 5.5, /effort ultracode is accepted ("Ultracode on (this session only): dynamic workflows on every task. Effort stays high."). The picker for that model has no Ultracode entry, although its profile already lists Extra High.

Change

Adds the Ultracode option, with the same description and the same ultracode to xhigh effort mapping the Opus profiles use, to the sonnet-5 profile (Claude Sonnet 5 and 5.5) and the haiku-5-5 profile. Bumps the manifest updatedAt, as the model manifest doc requires. No code change: Ultracode is compiled by the existing compileClaudeModelSelection path, which sends effort xhigh plus the ultracode setting.

Left alone: profiles without xhigh (Sonnet 4.6, Haiku 4.5, Opus 4.6 and older) and Opus 4.7, whose profile maps xhigh to max and where I did not check Ultracode.

Scope and approval

Maintainer approval for this direction has not been obtained. I am submitting it as a focused change that extends an established capability (Ultracode, already shipped for Opus and Fable) to models Claude Code already treats as supporting it. It adds no setting and changes no default.

Related, not duplicated:

  • #13875 is the accepted issue about following the model inventory Claude Code reports. I added a comment there noting that reported capabilities only apply to ids the catalog does not already know, and suggesting that Ultracode availability could eventually follow the reported effort levels. That would be a larger change than this one.
  • #13913 (open) implements #13875 for models the catalog does not know. It does not touch known models such as Sonnet 5.5.
  • #14193 (open) copies the sonnet-5 profile into a new sonnet-5-5 profile to change its default effort. If both land, the new profile needs this option too.

Verification

Running client (web)

Run on the current PR head (f975b4bf35, rebased onto main at 18656a3402) with vp run dev in a dedicated worktree: its own .t3 state and ports, T3 web opened in T3 Code's built-in Browser panel, a server project, a new thread, the local Claude Code install as the Claude provider. The screenshots were taken with that panel's preview_snapshot; no other browser or automation tool was used. For the "before" run I replaced only model-manifest.json with the one from main and restarted the dev server, so the only difference between the two runs is this PR's manifest change. I opened the Reasoning picker for each model.

ModelBefore (main manifest)After (this PR)
Claude Sonnet 5.5before Sonnet 5.5after Sonnet 5.5
Claude Haiku 5.5before Haiku 5.5after Haiku 5.5
Claude Sonnet 5 (under Legacy models)before Sonnet 5after Sonnet 5

Observed:

  • Before: all three models list Low, Medium, High, Extra High, Max and Ultrathink, with no Ultracode.
  • After: all three list the same options plus Ultracode ("xhigh effort plus multi-agent workflow orchestration") between Max and Ultrathink. The defaults are unchanged (High for Sonnet 5 and 5.5, Medium for Haiku 5.5).
  • Selecting Ultracode on Claude Sonnet 5.5 changes the picker trigger to "Ultracode" (screenshot).
  • The screenshots are on the pr-17606-evidence branch of my fork, not on this PR's branch.

One thing I learned while doing this: the server prefers the newer of the bundled and the remotely fetched manifest by updatedAt, and the remote copy is main's file. The first push of this PR had an updatedAt older than main's, so a running server would have shown main's data and hidden the change. The branch is now rebased on main with updatedAt bumped past it.

Tests

  • Added tests in claudeModelOptions.test.ts: Ultracode compiles to effort xhigh plus settings.ultracode for claude-opus-5-5, claude-sonnet-5-5, claude-sonnet-5 and claude-haiku-5-5. Selecting it on claude-sonnet-4-6 falls back to its default effort high with no ultracode setting.
  • pnpm exec vp test run src/claudeModelOptions.test.ts src/provider/ModelManifest.test.ts src/provider/ClaudeModelCatalog.test.ts in apps/server, re-run on the current head: 3 files, 26 tests pass. With the manifest change reverted, the three new Sonnet 5, Sonnet 5.5 and Haiku 5.5 cases fail.
  • vp fmt --check on both changed files is clean.
  • The capability table was read from the installed Claude Code 2.1.296 binary.

Not checked: I did not send a message with Ultracode selected, so the picker's xhigh plus ultracode setting path is covered by the unit tests above and not by a live turn on Sonnet or Haiku. The /effort ultracode run on Sonnet 5.5 quoted under Problem went to Claude Code directly. I did not run vp lint (my install could not parse vite.config.ts, an excludeFiles field error unrelated to this change), and I did not check the mobile picker, which hides Ultracode by design.

🤖 Generated with Claude Code

Claude Sonnet 5.5 (claude-sonnet-5-5) via Claude Code in T3 Code

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR expands the user-facing Ultracode workflow to three additional production model paths through runtime manifest configuration. The option is off by default and well tested, but the change is in an area primarily maintained by other contributors and should receive human review.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. The manifest changes follow existing Ultracode patterns and are covered by focused tests.

      0 open findings

      What changed in this PR

      Extends existing Claude Ultracode support to Sonnet 5, Sonnet 5.5, and Haiku 5.5.

      Changes:

      • Adds Ultracode options mapped to xhigh.
      • Updates the manifest timestamp.
      • Adds compilation and unsupported-model tests.
      FileDescription
      apps/​server/​src/​provider/​model-manifest.jsonEnables Ultracode for supported profiles.
      apps/​server/​src/​claudeModelOptions.test.tsVerifies Ultracode compilation and fallback behavior.

      🧠 Review effort: Balanced


      💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

    4. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Path: .coderabbit.config.ts
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: d592cc88-55b1-4771-91b4-c6658a5aad75

      📥 Commits

      Reviewing files that changed from the base of the PR and between a1db449fe4fecafcb473340771163e791b7fb3d6 and e954c18b25bb957b58a157fbe35ed2cd9bba419f.


      📒 Files selected for processing (2)
      • apps/server/src/claudeModelOptions.test.ts
      • apps/server/src/provider/model-manifest.json

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



      📝 Walkthrough

      Walkthrough

      The model manifest adds the ultracode effort option for Sonnet 5 and Haiku 5.5, mapping it to xhigh. Tests cover the mappings for four Claude models and the behavior for Sonnet 4.6.

      Changes

      Ultracode effort support

      Layer / File(s)Summary
      Add and verify ultracode mappings
      apps/server/src/provider/model-manifest.json, apps/server/src/claudeModelOptions.test.ts
      The Sonnet 5 and Haiku 5.5 profiles add ultracode and map it to xhigh. Tests cover four Claude models and verify that Sonnet 4.6 retains high effort without an ultracode setting.

      Priority: ⬇️ Low

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

      Change: Feature

      Suggested reviewers: juliusmarminge


      Merge Risk: ⚪ Minimal · up to e954c

      The change adds Ultracode for Sonnet 5 and Haiku 5.5, with tests covering the resulting settings and the Sonnet 4.6 fallback. No actionable merge-blocking risk is identified.

      Architecture Summary

      Architecture risk: 🔵 Low · up to e954c

      The change affects 1 system.

      Changed systems: apps/server

      Architecture concerns No architecture-level concerns identified.

      Review details

      Systems and components

      • observed — apps/server (service) was modified; 2 changed files map to changed impact.

      Before / after behavior

      • observed — Modified behavior in apps/server/src/claudeModelOptions.test.ts: Adds coverage for claude-opus-5-5, claude-sonnet-5-5, claude-sonnet-5, and claude-haiku-5-5, expecting ultracode input to produce xhigh effort and the ultracode: true setting.
      • observed — Modified behavior in apps/server/src/claudeModelOptions.test.ts: Adds coverage asserting that claude-sonnet-4-6 maps ultracode input to high effort and omits the ultracode setting.
      • observed — Modified behavior in apps/server/src/provider/model-manifest.json: The manifest’s updatedAt value changed from 2026-10-08T21:30:00Z to 2026-10-09T20:35:28Z.
      • observed — Modified behavior in apps/server/src/provider/model-manifest.json: The Sonnet 5 effort options gained an ultracode choice with a description identifying it as xhigh effort plus multi-agent workflow orchestration.

      Pre-merge checks | Passed 4
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Title checkPassedThe title clearly and concisely identifies the main change: enabling Ultracode for Sonnet 5, Sonnet 5.5, and Haiku 5.5.
      Description checkPassedThe description includes all required sections, explains the problem and implementation, documents scope and related issues, reports focused verification results, and identifies unverified checks and …

      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR

      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Comment `@coderabbitai help` to get the list of available commands.
    5. Note

      This comment is posted by Julius' dot

      Closing for missing UI verification evidence. At e954c18, the manifest adds Ultracode to the Reasoning picker for Sonnet 5, Sonnet 5.5 and Haiku 5.5, but the PR explicitly says the picker was not checked in a running client and provides no before/after screenshots. The reported compilation tests establish the option mapping, not the changed picker. Add before/after screenshots from a running T3 client and describe the model and selection checks you observed, then request reconsideration.

    6. juliusmarminge closed this

Sign in to join this conversation.