Repository navigation
feat(opencode): routing pools — spark-plan, Argon via agy, Sol doors, Go Luna - #1692
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 21 minutes. View limit details
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. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Fleet live-pull rule (2026-10-28): the served catalog is no longer a static array. The proxy spawns `agy models` in the same service context its workers use, groups the ids into bases/efforts, caches in memory for AGY_PROXY_MODELS_TTL_MS (default 5m, stale-while-revalidate), persists the last successful pull to $XDG_STATE_HOME/agy-proxy/models-cache.json, and falls back cache-then-baked-list when a pull fails. A 400-triggering unknown-model miss also fires an async re-pull. Unknown ids are judged against the current live / last-known-good list (#1692 preserved). /health reports models {source, bases, ids, fetchedAt, ttlMs}. Also adds per-request timing observability for benchmarking: X-Agy-Turn-Ms response header and a journal turn line (reqId, model, workerPid, durationMs, status). Tests: 10/10 — stub agy now answers `agy models` (incl. a stub-only model, proving live sourcing) and can be made to fail it (proving last-known-good fallback with unknowns still 400).
What this is
Job 2 (2026-10-28): the routing-config follow-up to the 2026-10-27 pool redesign, folding in the verdicts of the agy/Argon investigation (Job A) and the door re-verification (Job 1R). Three commits: the agy-proxy fix, the sync-policy fix, and the config itself. Plan quotas only — no PAYG config anywhere.
Step 0 verdicts (verified 2026-10-28)
(a) Luna on OpenCode Go. models.dev's
opencode-gocatalog and the live serve catalog both listgpt-5.6-lunaandgpt-6-lunaon all three workspaces (personal, lab, base).gpt-6-luna(2026-09-22) is the current Luna on every other door in luna-plan (openai, openai.alternate, opendesign) at half of 5.6's reference rates ($0.10/$0.50 vs $0.20/$1.20 per 1M). Verdict: the Go leaves carrygpt-6-luna— one Luna generation on every door. Changed in this PR.(b) ClinePass current set. cline.bot's own ClinePass docs (updated 2026-09-24) list 12 models: glm-5.3, glm-5.3-flash, kimi-k3, deepseek-v4-pro, deepseek-v4.1-flash, mimo-v2.5, mimo-v2.5-pro, minimax-m3, muse-spark-1.3-contributor, qwen3.8-max, qwen3.7-max, qwen3.7-plus. The docs' deprecation note delists GLM-5.2, Kimi K2.6, Kimi K2.7 Code, and DeepSeek V4 Flash. Live probes against
api.cline.botwith the account key confirm:deepseek-v4-flash→ "model not found" (delisted), whiledeepseek-v4.1-flash,deepseek-v4-pro,mimo-v2.6-flash, andmuse-spark-1.3-contributorall complete live. Two wrinkles:mimo-v2.6-flashis not in the docs table but serves live (it's the leaf mimo-flash-plan already seats — kept), andmimo-v2.5is in the docs table but returns "model not found" live. Every ClinePass leaf currently seated in a pool is live-verified; the only addition the current offers support is Spark (below). Nothing removed — the delisted models were seated nowhere (their provider-block entries stay per the catalog rule).(c) Spark doors. All four verified: meta direct (
muse-spark-1.3-contributor, models.devmeta+ config block), ClinePass (live completion, above), Command Code (meta/muse-spark-1.3-contributorin the live :18748 list), OpenCode Go (live serve catalog listsmuse-spark-1.3-contributoron all three workspaces).Changes
bin/agy-proxy.mjs) —gemini-4-argon(low/medium/high, default medium) added toMODELS; the unknown-model fallback inresolveModelAndEffortno longer silently servesMODELS[0]— the chat handler now returns HTTP 400Unknown model: …. New test covers the 400, the Argon/v1/modelsentries, and an Argon completion; the full file passes 6/6. (On the laptop the suite needs the systemagyun-shadowed — a pre-existing environment quirk, identical failure on pristine main; CI is unaffected.)claude-code → opendesign → Go.personal → Go.lab → Go.base.claude-codeleaves added (first, mirroring haiku-plan). feat(claude-code-proxy): list Sonnet 5.5 and Opus 5.5 models #1324 (merged) extended the proxy catalog only, so this PR also extends the claude-code provider block withclaude-sonnet-5-5andclaude-opus-5-5(same thinking-budget variant ladder and limits as Haiku). Leaves stay dormant whileclaude-codeis disabled — expected.#xhighw1, specialist#max, speed#xhighw3.gemini-flash-plan(antigravity-ls door; LS servesgemini-3.8-flashlive and in the live config). AA v4.3.2 ~II 40–41 at high, ~311 t/s decode clears the pool's bar at a modest weight.gpt-6.1-solleaf (block entry added; OpenDesign serves Sol, no Terra) and the Command Codegpt-6.1-solleaf — the live :18748/v1/models(85 ids, checked 2026-10-28) does includegpt-6.1-sol, so no bridge roll was needed. terra-plan unchanged.antigravity-agyleavesdisabled_providers(Drew's 2026-10-28 direction supersedes the old disable posture for this purpose); its provider block gainsgemini-4-argon(low/medium/high variants) plus the expanded-low/-medium/-highentries; the pool gains theantigravity-agy/gemini-4-argonleaf alongside Go ×3. agy's other models stay route-gated — only Argon is seated.bin/sync-models.policy.json) — newgemini-argonfamily (^gemini-(\d+(?:\.\d+)?)-argon$, same format asgemini-flash), added to the keep lists of both antigravity providers so future syncs preserve Argon leaves. sync-models tests pass 6/6.gpt-5.6-luna→gpt-6-luna(targets + weights), per verdict (a).Validation
opencode debug configagainst the worktree: exit 0, zero errors.--cion all four changed files: clean (0 changed). Nonix fmtwas run.Deploy (post-merge): converge laptop
~/codeto main, restart both OpenCode serves, respawn the OpenChamber managed serve, verify live route dumps on both serves and Argon through :18743.Need help on this PR? Tag
@codesmith-botwith what you need.