Skip to content

Add Claude Sonnet 5 model support#106

Open
igorvelho wants to merge 2 commits into
tickernelz:masterfrom
igorvelho:feature/claude-sonnet-5-support
Open

Add Claude Sonnet 5 model support#106
igorvelho wants to merge 2 commits into
tickernelz:masterfrom
igorvelho:feature/claude-sonnet-5-support

Conversation

@igorvelho

Copy link
Copy Markdown

Summary

Adds support for the claude-sonnet-5 model family, following the same pattern already established for claude-sonnet-4-6.

Changes

  • src/constants.ts: Added claude-sonnet-5, claude-sonnet-5-thinking, claude-sonnet-5-1m, claude-sonnet-5-1m-thinking to MODEL_MAPPING, resolving to Kiro's claude-sonnet-5 / claude-sonnet-5-1m model IDs.
  • src/plugin/effort.ts: Added claude-sonnet-5 and claude-sonnet-5-1m to EFFORT_CAPABLE_MODELS (4-value effort enum, no xhigh — same tier as claude-sonnet-4.6).
  • src/plugin.ts: Added a claude-sonnet-5 default model definition (1M context, text/image/pdf input) to the plugin's default model list.
  • README.md: Added claude-sonnet-5, claude-sonnet-5-thinking, claude-sonnet-5-1m, claude-sonnet-5-1m-thinking entries to the installation example JSON.
  • Tests: Added resolveKiroModel coverage for all four new slugs and supportsEffort coverage for claude-sonnet-5 / claude-sonnet-5-1m.

Testing

  • npm run typecheck — passes
  • npm run build — passes
  • bun test — 35 pass, 0 fail
  • npx prettier --check 'src/**/*.ts' — passes
  • Manually verified end-to-end: installed the built plugin locally via opencode.json ("plugin": ["/path/to/opencode-kiro-auth"]), authenticated via Kiro, and confirmed OpenCode successfully routed a live request through kiro/claude-sonnet-5.

No breaking changes — existing model mappings and effort resolution are untouched.

velhoi added 2 commits July 1, 2026 16:41
- Add claude-sonnet-5, claude-sonnet-5-thinking, claude-sonnet-5-1m,
  claude-sonnet-5-1m-thinking to MODEL_MAPPING in src/constants.ts
- Add claude-sonnet-5 and claude-sonnet-5-1m to EFFORT_CAPABLE_MODELS
  in src/plugin/effort.ts (same tier as claude-sonnet-4.6)
- Add claude-sonnet-5 default model definition to src/plugin.ts
- Update README.md with claude-sonnet-5 / thinking / 1m model examples

Co-authored-by: claude-sonnet-4-6 (opencode)
- Add resolveKiroModel tests for claude-sonnet-5, -thinking, -1m,
  -1m-thinking slugs
- Add supportsEffort tests for claude-sonnet-5 and claude-sonnet-5-1m

Co-authored-by: claude-sonnet-5 (opencode)
@RvVeen

RvVeen commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@igorvelho May I ask what your region is where you tested it. Like my region is set to eu-central-1 but I get a 400 error

@igorvelho

Copy link
Copy Markdown
Author

Hi, I've tested in eu-west-1. Using a kiro pro subscription with amazon iam auth

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