Switch polecat + crew default model to Gemini 3.8 Flash - #325
Conversation
Replaces GLM 5.3 Flash as the default worker model. GLM looped and no-op'd on
real beads (the msf Africa-map bead cost $3.26 twice and landed nothing);
Gemini 3.8 Flash is the capability call.
Reached through the SAME Cloudflare AI Gateway, so credentials and attribution
are unchanged. google-ai-studio is enabled on the gateway and on UNIFIED
BILLING, so Gemini draws the same prepaid Cloudflare balance GLM did -- one
bill, no BYOK Google key on the nodes. Confirmed on staging 2026-09-14:
- gateway workgraph-staging-oss: wholesale=true, byok_only=false,
workers_ai_billing_mode=unified
- google-ai-studio/gemini-3.8-flash routes HTTP 200 through the /compat
endpoint with only the gateway token (no per-request provider key)
Changes:
- infra/ansible/roles/execution_cell/defaults/main.yml: wg_model_roles polecat
and crew -> google-ai-studio/gemini-3.8-flash; add its wg_model_limits entry
(context 1000000, output 8192 -- output cap required by OpenCode, context far
above its ~19,900-token system prompt). Rationale comment rewritten.
- internal/runner/plan.go: register google-ai-studio/gemini-3.8-flash in
GatewayModels so the model is known to validation and the bake-off. The
built-in DefaultModels fallback stays anthropic/claude-sonnet-5 on purpose:
it pairs with the default claude runtime, and the live default comes from
models.json (this file) not the fallback.
Runtime stays opencode; any run can still override with
`-runtime claude -model anthropic/claude-sonnet-5`.
go vet ./internal/runner/... # clean
go test ./internal/runner/... # ok
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe default ChangesGemini model support
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Merge Risk: ⚪ Minimal · up to The default model change and runtime limits are aligned across the configured layers; no current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Switches the default worker model from GLM 5.3 Flash to Gemini 3.8 Flash.
Why
GLM looped and no-op'd on real beads (the msf Africa-map bead cost $3.26 twice and landed nothing). Gemini 3.8 Flash is the capability call.
Billing — stays one bill (verified)
Reached through the same Cloudflare AI Gateway, so credentials and attribution are unchanged. Google AI Studio is enabled on the gateway and on Unified Billing, so Gemini draws the same prepaid Cloudflare balance GLM did — one bill, no BYOK Google key on the nodes. Confirmed on staging 2026-09-14:
workgraph-staging-oss:wholesale=true,byok_only=false,workers_ai_billing_mode=unifiedgoogle-ai-studio/gemini-3.8-flashroutes HTTP 200 through the/compatendpoint with only the gateway token (no per-request provider key)Changes
infra/ansible/roles/execution_cell/defaults/main.yml(the live default):wg_model_rolespolecat + crew →google-ai-studio/gemini-3.8-flash; added itswg_model_limitsentry (context 1000000, output 8192— output cap required by OpenCode; context far above its ~19,900-token system prompt). Rationale comment rewritten.internal/runner/plan.go: registeredgoogle-ai-studio/gemini-3.8-flashinGatewayModelsso it's known to validation and the bake-off. The built-inDefaultModelsfallback staysanthropic/claude-sonnet-5on purpose — it pairs with the default claude runtime, and the live default comes frommodels.json(the ansible file), not the fallback.Runtime stays opencode. Any run can override with
-runtime claude -model anthropic/claude-sonnet-5.Verification
On merge,
deploy.ymlrewrites/etc/workgraph/models.jsonand restarts the dispatchers. Post-deploy, a dispatch should showmodel: google-ai-studio/gemini-3.8-flashinworkgraph_bead, tagged inusage_records.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Configuration