Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
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.
0088bdd to
faed5d5
Compare
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
--modelfor Kiro. Kiro's CLI already accepts--modeland--effort, so this teaches Orca to pass them through.What Changed
Before:
orca orchestration worker-start --agent kiro --model claude-sonnet-5.5is 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|maxadds--effort <level>.Mechanism:
checkAgentLaunchModelPreferencesonly accepts agents with an agent-session option catalog. This addsKIRO_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).--effortas a select option with the five levelskiro-cli chat --helplists./modelpicker. No mid-session effort command, because kiro-cli doesn't have one.It also registers
kiroinCATALOGSand 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-startflags are accepted for Kiro.Testing
New
agent-session-option-catalog-kiro.test.ts: Kiro +claude-sonnet-5.5+highis 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 thekiroregistry line removed.vitest runoversrc/shared/agent-launch/choices,src/shared/agent-session/optionsand the new test: 11 files, 50 tests passed.pnpm lint(47 steps) andpnpm typecheckpassed.oxfmt --checkclean.Not tested live with a dev build. I confirmed
kiro-cli3.4.0 acceptschat --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
kirocan also give Kiro chats a/modelpicker, the same as Antigravity, which uses the same empty-modelssetup. Not checked in the UI.--effortwould fail at launch when a caller passes--effort. Without--model/--effortthe launch command is unchanged.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
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)