Skip to content

feat(orchestration): let worker-start pick Kiro's model and effort - #43504

Open
sibrash4 wants to merge 1 commit into
stablyai:mainfrom
sibrash4:feat/kiro-worker-model-selection
Open

sibrash4 wants to merge 1 commit into
stablyai:mainfrom
sibrash4:feat/kiro-worker-model-selection

Conversation

@sibrash4

@sibrash4 sibrash4 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

You can tell Orca to start a Codex or Claude worker on a specific model. Kiro workers always used whatever model Kiro was set to, because Orca refused --model for Kiro. Kiro's CLI already accepts --model and --effort, so this teaches Orca to pass them through.

What Changed

Before: orca orchestration worker-start --agent kiro --model claude-sonnet-5.5 is refused with "Agent kiro does not support launch-time model selection".
After: it launches kiro-cli chat --tui --model claude-sonnet-5.5, and --effort low|medium|high|xhigh|max adds --effort <level>.

Mechanism: checkAgentLaunchModelPreferences only accepts agents with an agent-session option catalog. This adds KIRO_SESSION_OPTION_CATALOG (agent-session-option-catalog-kiro.ts), built the same way as Antigravity's:

  • models: [] with a pass-through --model, because Kiro's model list depends on the account (kiro-cli chat --list-models).
  • --effort as a select option with the five levels kiro-cli chat --help lists.
  • Model switch mid-session via Kiro's /model picker. No mid-session effort command, because kiro-cli doesn't have one.

It also registers kiro in CATALOGS and adds Kiro to the --model supports ... help sentence.

Why

Kiro's model choice changes cost a lot (credits range from 0.05x to 6x per model), so a coordinator needs to pick it per task, the same as for Codex and Claude. Copying Antigravity's catalog keeps this to one data file instead of new launch code. A fixed model list was rejected because Kiro's models depend on the account and change often.

Linked Issue

Fixes #45238

Also part of #12093 (its repro launches Kiro with --model ... --effort high; that issue also covers attaching an existing Kiro terminal, which this does not change).

Visual Proof

N/A. No UI change; this changes which worker-start flags are accepted for Kiro.

Testing

  • New agent-session-option-catalog-kiro.test.ts: Kiro + claude-sonnet-5.5 + high is accepted and resolves to --model claude-sonnet-5.5 --effort high; an unknown effort (ultra) is refused with the effort-specific message. Both tests fail with the kiro registry line removed.

  • vitest run over src/shared/agent-launch/choices, src/shared/agent-session/options and the new test: 11 files, 50 tests passed.

  • pnpm lint (47 steps) and pnpm typecheck passed. oxfmt --check clean.

  • Not tested live with a dev build. I confirmed kiro-cli 3.4.0 accepts chat --tui --model <id> --effort <level>.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Risk

Level: Low

  • Riskiest part: registering a catalog for kiro can also give Kiro chats a /model picker, the same as Antigravity, which uses the same empty-models setup. Not checked in the UI.
  • An old kiro-cli without --effort would fail at launch when a caller passes --effort. Without --model/--effort the launch command is unchanged.
  • No saved data or settings change. Back out with a plain revert.

AI Disclosure

Implemented by a Kiro worker started through Orca orchestration, then reviewed and the tests tightened with Claude Code (Claude Opus 5.5). I reviewed the change and the PR text.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The worker-start note now includes Kiro among providers with opaque --model IDs. A Kiro session option catalog is added and registered under the kiro key. It defines model selection and reasoning-effort options. Tests cover accepted launch preferences and refusal of an unsupported effort value.

Merge Risk: Minimal · up to faed5

This adds Kiro --model and --effort support to worker-start. The model is passed through as supplied, and unknown effort levels or effort without a model are refused. Launches without these options are unchanged, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat(orchestration): let worker-start pick Kiro's model and effort" states the main change: worker-start now accepts Kiro --model and --effort launch preferences. It matches the raw summary…
Description check Passed The description follows the template and fills in the key sections. The ELI5, What Changed (before/after with the exact commands and error), Why (cost-driven per-task model choice and why a fixed list…
Linked Issues check Passed [#45238] Requirements: (1) Kiro gets an option catalog so worker-start accepts --model. Implemented: KIRO_SESSION_OPTION_CATALOG in agent-session-option-catalog-kiro.ts sets supportsWorkerLaunchPrefer…
Out of Scope Changes check Passed Changed files at the reviewed head: the new Kiro catalog, its test, the registry line in agent-session-option-catalog.ts that registers kiro, and the --model help sentence in orchestration-worker-spec…
Full details: Title check

Explanation

The title "feat(orchestration): let worker-start pick Kiro's model and effort" states the main change: worker-start now accepts Kiro --model and --effort launch preferences. It matches the raw summary, the Kiro option catalog, and the objectives. It is specific and concise.

Full details: Description check

Explanation

The description follows the template and fills in the key sections. The ELI5, What Changed (before/after with the exact commands and error), Why (cost-driven per-task model choice and why a fixed list was rejected), and Linked Issue (Fixes #45238) are complete. Testing lists specific test files, counts, and lint/typecheck results. Risk names the riskiest part, the Level, and the back-out method. Performance is answered with 'None, because' but the sentence is not finished. The Visual Proof N/A reason is given. Minor gaps: the Performance sentence is unfinished, the AI Disclosure is present, and the manual-test checkbox is unchecked while the Notes say the change was not tested live. These do not make the description largely incomplete.

Resolution

Finish the Performance sentence (for example, 'None, because this only runs when worker-start is invoked with Kiro model or effort flags.'). Optionally note in the Testing section that the live dev-build test was not run, which the author already states.

Full details: Linked Issues check

Explanation

[#45238] Requirements: (1) Kiro gets an option catalog so worker-start accepts --model. Implemented: KIRO_SESSION_OPTION_CATALOG in agent-session-option-catalog-kiro.ts sets supportsWorkerLaunchPreferences: true and models: [], so any model ID passes through. The modelApply uses agentChoiceCliApply with --model. checkAgentLaunchModelPreferences passes the catalog gate for kiro. (2) Model ID taken as supplied, not from a fixed list. Implemented: models is empty, and the code comment cites kiro-cli chat --list-models. (3) --effort passes through as --effort <level>. Implemented: KIRO_EFFORT uses agentChoiceCliApply with --effort. (4) Effort requires a model. Implemented: checkAgentLaunchModelPreferences returns '--effort requires --model.' when effort is set without model, before any catalog lookup. (5) Accepts low, medium, high, xhigh, max; rejects unknown levels. Implemented: the select choices list these five values, and the check refuses other values with an effort-specific message. Tests: agent-session-option-catalog-kiro.test.ts covers claude-sonnet-5.5 + high producing --model and --effort flags, and refusal of effort ultra. #12093 is context only; its terminal-attach work is not required here and is not changed. No unmet coding requirement found.

Full details: Out of Scope Changes check

Explanation

Changed files at the reviewed head: the new Kiro catalog, its test, the registry line in agent-session-option-catalog.ts that registers kiro, and the --model help sentence in orchestration-worker-specs.ts that adds Kiro. Each directly enables Kiro launch-time model and effort selection, which is the linked objective. The test file supports the catalog. The catalog's midSession /model picker entry is part of the same catalog definition, and the PR description discloses it. It is not a separate feature. No unrelated changes were identified. The changed-file list comes from the supplied summary; no full diff was read.

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

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 401d7c96-70ba-4975-9011-59f47e852bfa
Commits

Reviewing files that changed from the base of the PR and between 0088bdd and faed5d5.

Files selected for processing: 1

  • src/cli/specs/orchestration-worker-specs.ts
Files skipped from review as they are similar to previous changes: 1

  • src/cli/specs/orchestration-worker-specs.ts

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

Kiro had no agent-session option catalog, so worker-start refused --model/--effort. Add a pass-through catalog (--model, --effort low..max) since kiro-cli models are account-scoped.
@sibrash4
sibrash4 force-pushed the feat/kiro-worker-model-selection branch from 0088bdd to faed5d5 Compare November 23, 2026 08:20

This branch has not been deployed

No deployments
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.

[Feature]: worker-start should accept --model and --effort for Kiro

1 participant