agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

Agy (Antigravity): verify model-override support and honor role-specific model config

Open illegalcall opened this issue 4 months ago • 2 comments

Context (shared across all harnesses)

AO stores a per-role model in agentConfig.model (backend/internal/domain/agentconfig.go:27). session_manager.effectiveAgentConfig merges the project base config with the role override and Spawn/Restore forward the resolved value into every adapter as cfg.Config.Model (backend/internal/ports/agent.go). Each adapter must opt in to forwarding that value to its CLI. Today only the Claude (claudecode/claudecode.go:172), Codex (#2869), and Kiro (config-file model key) adapters do. Every other adapter silently drops it, so a configured worker/orchestrator falls back to the CLI's global default model.

  • Original report: #2769
  • Reference fix (the pattern to copy): #2869 (Codex) — adds an appendModelFlag helper called in both GetLaunchCommand and GetRestoreCommand, plus a GetConfigSpec model field and regression tests.

Decision / verification needed

The Agy (Antigravity) adapter (agy, binary agy) does not forward cfg.Config.Model. Whether the agy CLI even accepts a model override is unverified — no public evidence was found. This issue is to verify and then fix if a mechanism exists.

Findings

  • GetLaunchCommand (backend/internal/adapters/agent/agy/agy.go:65-88) emits agy --add-dir <ws> [--dangerously-skip-permissions] [--prompt-interactive <prompt>]; GetRestoreCommand (:90-116) uses --conversation <id>. No model handling. Inherits empty GetConfigSpec.
  • The adapter's flags mirror the Claude-Code flag style (--add-dir, --dangerously-skip-permissions), which suggests a --model flag may exist by analogy — but this was not confirmed in docs.

Next step

Run agy --help (and check Antigravity CLI docs) for a model-selection flag, env var, or config key.

  • If a launch-time --model (or similar) exists: apply the mechanical Codex-style fix (helper appending the flag in launch + restore, plus GetConfigSpec model field + tests).
  • If only an interactive/config mechanism exists: treat like the config-route harnesses (kilocode/vibe).
  • If none exists: close as not-supported (like Amp) and document agentConfig.model as a no-op for Agy.

References

  • Reference fix: #2869 (Codex) · Original context: #2769
  • Relevant file: backend/internal/adapters/agent/agy/agy.go

illegalcall avatar Jul 21 '26 09:07 illegalcall

Thanks for contributing to Agent Orchestrator.

This issue is being picked up by the current external contributor on-call pair:

  • @illegalcall
  • @pulkit7070

If someone is already working on this, please continue as usual. The on-call pair is added for visibility, tracking, and support, not to take over the work. If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @pulkit7070 here.

For faster context or live questions, you can also join the AO Discord.

Join the session here: https://discord.gg/H6ZDcUXmq

Come by if you want to see what is being built, ask questions, or just hang around with the community.

somewherelostt avatar Jul 21 '26 14:07 somewherelostt

starting

anmol0b avatar Jul 27 '26 04:07 anmol0b