Skip to content

feat: upgrade claude-agent-sdk to 0.2.x and add Opus 4.6 models#390

Closed
vadimtrunov wants to merge 3 commits into
siteboon:mainfrom
vadimtrunov:feat/upgrade-claude-sdk-opus-4.6
Closed

feat: upgrade claude-agent-sdk to 0.2.x and add Opus 4.6 models#390
vadimtrunov wants to merge 3 commits into
siteboon:mainfrom
vadimtrunov:feat/upgrade-claude-sdk-opus-4.6

Conversation

@vadimtrunov
Copy link
Copy Markdown
Contributor

@vadimtrunov vadimtrunov commented Feb 15, 2026

Summary

  • Upgrade @anthropic-ai/claude-agent-sdk from ^0.1.29 to ^0.2.42 so the SDK resolves the opus model alias to Claude Opus 4.6 (the latest)
  • Add opus-4.6 and opus-4.6-thinking to Cursor model options in modelConstants.js
  • Update READMEs and JSDoc comments to reflect Opus 4.6

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added Claude 4.6 Opus model options, including a Thinking variant.
  • Documentation

    • Updated model compatibility and API docs from Opus 4.5 to Opus 4.6 across README and docs.
  • Chores

    • Bumped Claude agent SDK dependency to a newer minor version.

Upgrade @anthropic-ai/claude-agent-sdk from ^0.1.29 to ^0.2.42 so the
SDK resolves the "opus" model alias to Claude Opus 4.6 (the latest).
Add opus-4.6 and opus-4.6-thinking to Cursor model options.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 15, 2026

No actionable comments were generated in the recent review. 🎉


Walkthrough

Updated references and configuration to add Claude Opus 4.6 support: documentation updates, new CURSOR_MODEL options for Opus 4.6, and an upgrade of the @anthropic-ai/claude-agent-sdk dependency.

Changes

Cohort / File(s) Summary
Documentation
README.md, README.zh-CN.md, server/routes/agent.js
Replaced references to Opus 4.5 with Opus 4.6 in user-facing docs and JSDoc; no behavioral changes.
Model configuration
shared/modelConstants.js
Added opus-4.6-thinking and opus-4.6 entries to CURSOR_MODELS.OPTIONS and updated API format notes to include claude-opus-4.6.
Dependency
package.json
Bumped @anthropic-ai/claude-agent-sdk from ^0.1.71 to ^0.2.42.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested reviewers

  • blackmammoth

Poem

🐰 A hop, a nibble, a version anew,
Opus 4.6 now joins the crew,
New options sprout, docs gleam and sing,
The SDK leaps — what joy it brings! 🎉

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the two main changes in the PR: upgrading the claude-agent-sdk dependency and adding support for Opus 4.6 models.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Subagent (Task/Explore) results were rendered as raw JSON
`[{"type":"text","text":"..."}]` with literal `\n` instead of
formatted markdown. The root cause was that the API sometimes
returns content blocks as a serialized JSON string rather than
a parsed array. The existing `Array.isArray()` check missed this
case and fell through to `String()`, displaying raw JSON.

Now the Task tool result handler tries to JSON.parse string content
before checking for array structure, matching the pattern already
used by exit_plan_mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@blackmammoth
Copy link
Copy Markdown
Collaborator

Hey @vadimtrunov, thanks for the PR! can you resolve the conflicts?

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project’s Anthropic agent SDK dependency and surfaces the latest Claude Opus 4.6 model options in the UI-facing model lists and documentation.

Changes:

  • Upgraded @anthropic-ai/claude-agent-sdk to ^0.2.42 (intended to make the opus alias resolve to Claude Opus 4.6).
  • Added opus-4.6 and opus-4.6-thinking to Cursor model options.
  • Updated README/docs/JSDoc references from Opus 4.5 to Opus 4.6.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
shared/modelConstants.js Adds Cursor model options for Opus 4.6 (standard + thinking) and updates model-format comment.
server/routes/agent.js Updates the endpoint JSDoc to mention opus-4.6 in Cursor model identifiers.
package.json Bumps @anthropic-ai/claude-agent-sdk to ^0.2.42.
package-lock.json Updates the lockfile for the new SDK version (and resulting dependency graph changes).
README.md Updates documented model compatibility to Opus 4.6.
README.zh-CN.md Updates documented model compatibility to Opus 4.6 (Chinese README).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Keep claude-agent-sdk ^0.2.42 (PR upgrade target) while merging
all other upstream/main changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vadimtrunov
Copy link
Copy Markdown
Contributor Author

Conflicts resolved and pushed. Thanks for the review!

@blackmammoth blackmammoth removed their assignment Feb 22, 2026
@blackmammoth
Copy link
Copy Markdown
Collaborator

@vadimtrunov I verified that this PR was not using opus 4.6 and sonnet 4.6. I have submitted a new PR (#446) that addresses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants