Repository navigation
fix(cli): accept agy for supervised worker starts - #21664
Conversation
|
Independent verification update:
Scoped verdict: Approve for the CLI |
|
Independent verification (2026-09-20):
Verdict: approve in stack order for accepting |
ELI5 / evidence / trade-offs auditELI5: Typing Proof: Alias tests, CLI typecheck, native smoke, and CI pass; visual proof is not applicable to a command alias. User-facing trade-off: Custom vendor registration and remote lifecycle behavior remain outside this change. This note scopes the claim to the evidence above; it does not claim untested remote, SSH, WSL, or vendor combinations. |
There was a problem hiding this comment.
ℹ️ No blocking issues — one minor consistency suggestion inline.
Reviewed changes
agyalias normalization —worker-startnow maps--agent agyto the canonicalantigravityid before the RPC call, so host-sideisTuiAgentvalidation and local/federated selection are unchanged.- Help note — the alias is documented in the worker-start spec notes.
- Alias test — a new test asserts the canonical id reaches
orchestration.workerStartfor both local and remote selection; it would fail if the mapping were removed (verified passing locally). - Windows hook payload test + CI env — inherited from the merged stacked PR #21666, not authored by this change set.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| comment: getOptionalStringFlag(flags, 'comment'), | ||
| setup: getOptionalStringFlag(flags, 'setup'), | ||
| agent: getOptionalStringFlag(flags, 'agent'), | ||
| agent: agent === 'agy' ? 'antigravity' : agent, |
There was a problem hiding this comment.
This literal duplicates knowledge that already lives in src/shared/tui-agent-config.ts, where antigravity.detectCmd is 'agy'. Since the CLI already imports shared agent helpers, deriving the id from that config would keep the two in sync and extend the same normalization to the other CLI verbs that still reject the installed binary name (worktree create --agent, automation --provider). Non-blocking — the current mapping is correct for antigravity.
Technical details
# Derive the alias from the shared agent config instead of a literal
## Affected sites
- `src/cli/handlers/orchestration/worker-launch-handler.ts:63` — hardcoded `agy` -> `antigravity`.
- `src/shared/tui-agent-config.ts:166-170` — `antigravity.detectCmd: 'agy'`; `getTuiAgentDetectCommands` already exposes detect names.
- `src/cli/handlers/worktree.ts:93` and `src/cli/handlers/automation-handler-flags.ts:76,89` — other `--agent`/`--provider` entry points that still reject `agy`.
## Required outcome
- The alias should not be able to drift from the canonical binary name recorded in `TUI_AGENT_CONFIG`.
## Suggested approach (optional)
- Add a small shared resolver (e.g. over `getTuiAgentDetectCommands`) that maps a command/binary name to its `TuiAgent`, and call it here; reuse it at the other entry points if accepting binary names everywhere is intended.
## Open questions for the human (optional)
- Is `agy` intended only for worker-start, or should the installed executable name be accepted anywhere a `TuiAgent` id is taken?|
Thanks for the consistency suggestion. I’m keeping this PR scoped to the documented |

ELI5
Orca now understands
agyas another name for Antigravity when starting a supervised worker.What Changed
orca orchestration worker-start --agent agypreviously returnedagent_unconfigured. The CLI now sends the existingantigravityagent ID to the runtime and documents the alias in help. Both names use the configured Antigravity launcher.Why
The installed executable is named
agy, so callers naturally use that name. Normalizing at the CLI boundary preserves the existing local/remote validation and works with hosts that already supportantigravity, without adding another agent identity or changing the RPC contract.Linked Issue
Refs #14952, #15125. This addresses only the worker-start alias. Custom vendor registration, verified Antigravity model/effort selection, and the Windows lifecycle reports remain open. Current
dispatch --injecttargets a terminal with--to; it does not accept--agent.Stacked on #21660.
Visual Proof
Sanitized before/after report derived from actual CLI receipts, not an app screenshot or a successful generation claim:
Testing
macOS, installed agy 1.2.7, hidden Orca validation app, isolated folder workspace. Installed CLI rejected
agy; rebuilt CLI against the same runtime returnedready / input_accepted, with requested/effective agent bothantigravity. The task marker appeared in the real worker output. Generation failed with 401ACCESS_TOKEN_TYPE_UNSUPPORTED; no successful generation, hook delivery, orworker_doneclaim. Test worker stopped and released.34 focused CLI/spec tests pass, including local and remote selection preserving the canonical RPC agent and folder selector. CLI TypeScript compilation passes. Changed-code quality gate and staged lint/format checks pass. Native Windows/Linux, WSL, SSH and live paired-host execution were not tested; remote coverage here is a mocked CLI contract check.
Review
No new process launcher or path handling. Host-side checks remain authoritative. Older clients still require the canonical name; older hosts must already support Antigravity.
Agent skill upstream boundary
Checklist