[PR #4929] feat: add thinking variant for Claude Opus 4.5 #11174

Closed
opened 2026-02-16 18:15:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4929

State: closed
Merged: No


Opus 4.5 supports extended thinking (reasoning: true in models.dev), but it's not enabled out of the box. To use it, you currently need to add config manually:

"provider": {
  "anthropic": {
    "models": {
      "claude-opus-4-5-20251101": {
        "options": {
          "thinking": {
            "type": "enabled",
            "budgetTokens": 16000
          }
        }
      }
    }
  }
}

I was looking into this for my own setup and found #1106 and #2875 where others had similar questions. I saw that a proper thinking toggle UI is planned for after the opentui migration, which makes sense.

This PR is just a small idea in the meantime. It adds a claude-opus-4-5-20251101-thinking variant that shows up in the model picker with thinking already enabled. That way people can try it without config changes while the real solution is being worked on.

Totally possible there's already something in the works that makes this unnecessary, or a reason this approach doesn't fit. Happy to close this if so.

What it does:

Adds one model variant with thinking enabled (16k token budget). Shows up alongside regular Opus 4.5 in the model list.

What it doesn't do:

Doesn't modify the base model. Doesn't add UI toggles. Doesn't add multiple budget tiers.


References:

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4929 **State:** closed **Merged:** No --- Opus 4.5 supports extended thinking (`reasoning: true` in models.dev), but it's not enabled out of the box. To use it, you currently need to add config manually: ```json "provider": { "anthropic": { "models": { "claude-opus-4-5-20251101": { "options": { "thinking": { "type": "enabled", "budgetTokens": 16000 } } } } } } ``` I was looking into this for my own setup and found #1106 and #2875 where others had similar questions. I saw that a proper thinking toggle UI is planned for after the opentui migration, which makes sense. This PR is just a small idea in the meantime. It adds a `claude-opus-4-5-20251101-thinking` variant that shows up in the model picker with thinking already enabled. That way people can try it without config changes while the real solution is being worked on. Totally possible there's already something in the works that makes this unnecessary, or a reason this approach doesn't fit. Happy to close this if so. **What it does:** Adds one model variant with thinking enabled (16k token budget). Shows up alongside regular Opus 4.5 in the model list. **What it doesn't do:** Doesn't modify the base model. Doesn't add UI toggles. Doesn't add multiple budget tiers. --- **References:** - #1106 - #2875
yindo added the pull-request label 2026-02-16 18:15:58 -05:00
yindo closed this issue 2026-02-16 18:15:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11174