Skip to content

feat(kiro): add Claude Opus 4.8 to the Kiro model catalog - #3131

Merged
diegosouzapw merged 1 commit into
cheaper-inference:mainfrom
artickc:feat/kiro-opus-4-8
Jun 4, 2026
Merged

diegosouzapw merged 1 commit into
cheaper-inference:mainfrom
artickc:feat/kiro-opus-4-8

Conversation

@artickc

@artickc artickc commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Kiro (AWS CodeWhisperer) currently tops out at Claude Opus 4.7 in the provider registry, even though:

  • Claude Opus 4.8 is already defined and served by the claude (Claude Code) provider, and
  • the Kiro executor's openai-to-kiro translator passes the requested model id straight through to CodeWhisperer (userInputMessage.modelId), so no special model mapping is required for a new Claude model.

This PR exposes claude-opus-4.8 on the kiro provider so clients can select it via kiro/claude-opus-4.8 (and kr/claude-opus-4.8), consistent with how claude-opus-4.7 is already wired.

Changes

  • open-sse/config/providerRegistry.ts — add claude-opus-4.8 to the kiro models list (1M context, 128k max output), placed above claude-opus-4.7.
  • src/shared/constants/pricing.ts — add claude-opus-4.8 to the kiro pricing block at Kiro's standard Opus rate ($15 / $75 per 1M, matching the existing claude-opus-4.6 Kiro entry). Also adds the previously-missing claude-opus-4.7 entry to the same block so its usage cost is no longer $0.
  • tests/unit/catalog-updates-v3x.test.ts — new assertion that the Kiro catalog exposes claude-opus-4.8 (with the expected context/output) and that the Kiro pricing block covers it.

Why the pricing rate

The new Kiro entries follow the rate already used by the existing kiro → claude-opus-4.6 entry ($15/$75), keeping the Kiro channel internally consistent. Adjust if Kiro should mirror the Claude Code (cc) Opus rate instead.

Testing

node --import tsx --test tests/unit/catalog-updates-v3x.test.ts

All tests pass, including the new Kiro catalog exposes Claude Opus 4.8 alongside 4.7 with matching pricing case.

Kiro (AWS CodeWhisperer) tops out at Claude Opus 4.7 in the registry, but the latest Opus 4.8 is already served by the Claude Code provider and Kiro's executor passes the model id through to CodeWhisperer verbatim. Expose claude-opus-4.8 on the kiro provider so clients can select it via kiro/claude-opus-4.8.

- providerRegistry: add claude-opus-4.8 (1M context, 128k output) above 4.7

- pricing: add claude-opus-4.8 (and the previously-missing 4.7) to the kiro pricing block at Kiro's standard Opus rate so usage cost is non-zero

- tests: assert kiro exposes claude-opus-4.8 with matching context/output + pricing
@artickc
artickc requested a review from diegosouzapw as a code owner June 3, 2026 23:04

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds the claude-opus-4.8 model to the Kiro provider registry, configures pricing for both claude-opus-4.8 and claude-opus-4.7, and adds a unit test to verify their presence and pricing. The review feedback suggests adding an alias mapping for claude-opus-4-8 to ensure backward compatibility and proper resolution, and expanding the unit test to assert the pricing configuration for claude-opus-4.7 to prevent future regressions.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +1070 to +1074
id: "claude-opus-4.8",
name: "Claude Opus 4.8",
contextLength: 1000000,
maxOutputTokens: 128000,
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

While adding claude-opus-4.8 to the Kiro model list is correct, please note that clients requesting the hyphenated version kiro/claude-opus-4-8 (consistent with the claude provider's claude-opus-4-8 ID) will fail to resolve to the dotted claude-opus-4.8 ID.\n\nTo ensure proper resolution and backward compatibility, you must also add the alias mapping to PROVIDER_MODEL_ALIASES.kiro in open-sse/services/model.ts:\n\ntypescript\n"claude-opus-4-8": "claude-opus-4.8",\n\n\nThis matches how claude-opus-4-7 and claude-opus-4-6 are currently mapped.

Comment on lines +61 to +63
// Pricing for the Kiro channel must cover the new model so usage cost is non-zero.
const kiroPricing = (DEFAULT_PRICING as Record<string, Record<string, unknown>>).kiro;
assert.ok(kiroPricing["claude-opus-4.8"], "kiro pricing must include claude-opus-4.8");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Since this PR also adds the previously-missing claude-opus-4.7 pricing entry to prevent $0 usage costs, it would be highly beneficial to assert its presence in the test suite as well to prevent future regressions.

Suggested change
// Pricing for the Kiro channel must cover the new model so usage cost is non-zero.
const kiroPricing = (DEFAULT_PRICING as Record<string, Record<string, unknown>>).kiro;
assert.ok(kiroPricing["claude-opus-4.8"], "kiro pricing must include claude-opus-4.8");
// Pricing for the Kiro channel must cover the new models so usage cost is non-zero.\n const kiroPricing = (DEFAULT_PRICING as Record<string, Record<string, unknown>>).kiro;\n assert.ok(kiroPricing["claude-opus-4.8"], "kiro pricing must include claude-opus-4.8");\n assert.ok(kiroPricing["claude-opus-4.7"], "kiro pricing must include claude-opus-4.7");

@kilo-code-bot

kilo-code-bot Bot commented Jun 3, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
open-sse/services/model.ts 75-81 The kiro provider model aliases are missing the hyphen-notation variant claude-opus-4-8. Other models like claude-opus-4-7 and claude-opus-4-6 have hyphen-notation aliases for backward compatibility, but claude-opus-4-8 does not. This could cause requests using kiro/claude-opus-4-8 to fail validation.
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

File Line Issue
tests/unit/catalog-updates-v3x.test.ts 63 The test only checks that pricing exists for claude-opus-4.8 but does not validate the pricing values (input/output/cached/reasoning) or that claude-opus-4.7 pricing values are correct. The existing reviewer (gemini-code-assist) already noted this in their comment.
src/shared/constants/pricing.ts 1321-1326 The claude-opus-4.6 pricing in the kiro block uses $15/$75 (reasoning: $75) which differs from CLAUDE_OPUS_46_PRICING ($5/$25, reasoning: $37.5) and the cc provider ($5/$25, reasoning: $25). The PR author noted this may be intentional for Kiro's internal consistency, but this pricing delta should be verified against actual Kiro pricing.
Files Reviewed (3 files)
  • open-sse/config/providerRegistry.ts - 1 change (model addition)
  • src/shared/constants/pricing.ts - 2 changes (pricing entries)
  • tests/unit/catalog-updates-v3x.test.ts - 1 change (new test)

Note: A previous review by gemini-code-assist already identified the missing claude-opus-4-8 alias in model.ts and suggested expanding the test to validate pricing values for claude-opus-4.7. These align with my findings.

Fix these issues in Kilo Cloud


Reviewed by laguna-m.1-20260312:free · 2,878,921 tokens

@diegosouzapw
diegosouzapw merged commit 2233742 into cheaper-inference:main Jun 4, 2026
2 checks passed
diegosouzapw added a commit that referenced this pull request Jun 4, 2026
…ic-asset build fix

- #3131 Kiro Opus 4.8 catalog (thanks @artickc)
- #3132 Kimi thinking-mode reasoning_content fix (thanks @bypanghu)
- #3130 connectionId fallback + kilo call logging (thanks @androw)
- build: standalone static-asset path fix (white login screen after build-output reorg)
- contributors hall: +@artickc +@bypanghu +@androw (15 total)
HouMinXi pushed a commit to HouMinXi/OmniRoute that referenced this pull request Aug 2, 2026
…ference#3131)

Kiro (AWS CodeWhisperer) tops out at Claude Opus 4.7 in the registry, but the latest Opus 4.8 is already served by the Claude Code provider and Kiro's executor passes the model id through to CodeWhisperer verbatim. Expose claude-opus-4.8 on the kiro provider so clients can select it via kiro/claude-opus-4.8.

- providerRegistry: add claude-opus-4.8 (1M context, 128k output) above 4.7

- pricing: add claude-opus-4.8 (and the previously-missing 4.7) to the kiro pricing block at Kiro's standard Opus rate so usage cost is non-zero

- tests: assert kiro exposes claude-opus-4.8 with matching context/output + pricing
HouMinXi pushed a commit to HouMinXi/OmniRoute that referenced this pull request Aug 2, 2026
…eaper-inference#3131/cheaper-inference#3132) + static-asset build fix

- cheaper-inference#3131 Kiro Opus 4.8 catalog (thanks @artickc)
- cheaper-inference#3132 Kimi thinking-mode reasoning_content fix (thanks @bypanghu)
- cheaper-inference#3130 connectionId fallback + kilo call logging (thanks @androw)
- build: standalone static-asset path fix (white login screen after build-output reorg)
- contributors hall: +@artickc +@bypanghu +@androw (15 total)
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
…ference#3131)

Kiro (AWS CodeWhisperer) tops out at Claude Opus 4.7 in the registry, but the latest Opus 4.8 is already served by the Claude Code provider and Kiro's executor passes the model id through to CodeWhisperer verbatim. Expose claude-opus-4.8 on the kiro provider so clients can select it via kiro/claude-opus-4.8.

- providerRegistry: add claude-opus-4.8 (1M context, 128k output) above 4.7

- pricing: add claude-opus-4.8 (and the previously-missing 4.7) to the kiro pricing block at Kiro's standard Opus rate so usage cost is non-zero

- tests: assert kiro exposes claude-opus-4.8 with matching context/output + pricing
Poid-ZA pushed a commit to Poid-ZA/OmniRoute that referenced this pull request Aug 5, 2026
…eaper-inference#3131/cheaper-inference#3132) + static-asset build fix

- cheaper-inference#3131 Kiro Opus 4.8 catalog (thanks @artickc)
- cheaper-inference#3132 Kimi thinking-mode reasoning_content fix (thanks @bypanghu)
- cheaper-inference#3130 connectionId fallback + kilo call logging (thanks @androw)
- build: standalone static-asset path fix (white login screen after build-output reorg)
- contributors hall: +@artickc +@bypanghu +@androw (15 total)
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…ference#3131)

Kiro (AWS CodeWhisperer) tops out at Claude Opus 4.7 in the registry, but the latest Opus 4.8 is already served by the Claude Code provider and Kiro's executor passes the model id through to CodeWhisperer verbatim. Expose claude-opus-4.8 on the kiro provider so clients can select it via kiro/claude-opus-4.8.

- providerRegistry: add claude-opus-4.8 (1M context, 128k output) above 4.7

- pricing: add claude-opus-4.8 (and the previously-missing 4.7) to the kiro pricing block at Kiro's standard Opus rate so usage cost is non-zero

- tests: assert kiro exposes claude-opus-4.8 with matching context/output + pricing
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…eaper-inference#3131/cheaper-inference#3132) + static-asset build fix

- cheaper-inference#3131 Kiro Opus 4.8 catalog (thanks @artickc)
- cheaper-inference#3132 Kimi thinking-mode reasoning_content fix (thanks @bypanghu)
- cheaper-inference#3130 connectionId fallback + kilo call logging (thanks @androw)
- build: standalone static-asset path fix (white login screen after build-output reorg)
- contributors hall: +@artickc +@bypanghu +@androw (15 total)
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.

2 participants