mirror of
https://github.com/Team-Rockstars-AI/opencode-agentic-platform-engineering.git
synced 2026-09-13 23:53:31 +02:00
[PR #8] [MERGED] fix(models): cloud-only EU/US cost-aware default model assignments #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
github-mirrors/opencode-agentic-platform-engineering#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Team-Rockstars-AI/opencode-agentic-platform-engineering/pull/8
Author: @niels-emmer
Created: 6/17/2026
Status: ✅ Merged
Merged: 6/17/2026
Merged by: @niels-emmer
Base:
main← Head:fix/default-models-cloud-eu-us📝 Commits (2)
efe6069fix(models): ship cloud-only EU/US cost-aware default model assignments425bfe5docs(models): document the cloud-only EU/US cost-aware default📊 Changes
10 files changed (+113 additions, -104 deletions)
View changed files
📝
.opencode/memory.md(+12 -6)📝
README.md(+1 -1)📝
agent_config.py(+6 -4)📝
docs/operator-manual-provisioned-platform.md(+13 -13)📝
docs/operator-manual-provisioning-platform.md(+9 -10)📝
manifest.yaml(+18 -18)📝
opencode.json(+15 -15)📝
templates/opencode-config/agent_config.py(+6 -4)📝
templates/opencode-config/manifest.yaml(+18 -18)📝
templates/opencode-config/opencode.json(+15 -15)📄 Description
Purpose
Fix the shipped default model configuration so the agent team works out of
the box with a sensible starting point — cloud-only, EU/US, cost-aware —
before anyone runs
/select-models.Problem
The previous default was broken/incorrect on two counts:
verifier,explorer, anddocs-writerpointed atlocal Ollama (
ollama/mistral:latestonhttp://localhost:11434),requiring a local runtime that isn't present by default.
mistral-large-latest,codestral-latest, andmistral-small-latest, which are no longer in thelive OpenCode Zen catalog, so those agents could not start.
(The live Zen catalog currently exposes no EU/Mistral models at all, so a
working EU/US default necessarily resolves to US-jurisdiction Zen models.)
New default (cloud-only, EU/US, cost-aware)
All on the Zen endpoint (
https://opencode.ai/zen/v1), tiered by role and cost:orchestratoropencode/gpt-5.1builder-infra-tf,builder-infra-bicep,builder-pipelinesopencode/gpt-5.1-codextest-writeropencode/gpt-5.1-codex-minisecurity-auditor,plan-validator,code-revieweropencode/claude-haiku-4-5verifier,docs-writeropencode/gemini-3-flashexploreropencode/gpt-5.4-nanoRationale: strong-but-mid-cost reasoning for the orchestrator; code-specialised
codexmodels for the builders; cheap, capable Anthropic Haiku for read-onlyreview; and the lowest-cost tiers for navigation/verification/docs.
Changes
opencode.json/manifest.yaml(root +templates/opencode-config/):new per-agent models + Zen endpoints; policy set to
EU+US-Sovereign.agent_config.py(root + template):allowed_jurisdictions→["EU", "Sovereign", "US", "Local"];default_code_generation_model→gpt-5.1-codex;default_task_execution_model→gemini-3-flash. Theself-test now demonstrates enforcement against a Global model
(
deepseek/deepseek-v4-pro) since US is now permitted.README.md,.opencode/memory.md, both operator manuals): updatedthe shipped-default description, per-agent table, and self-test expected output.
Applied identically to the root config (this repo) and the scaffold
templates (what generated repos inherit). Historical journals
(
BUILD_JOURNAL.md,DISCOVERIES_LOG.md) are left unchanged as an append-only log.Verification
ollama/localhostreferences remain in the default config (theselect-models.pyOllama-discovery constants stay — that's the opt-inlocal-model feature, not the default).
agent_config.pyself-test passes (rc 0) for both root and template; it nowcorrectly blocks the simulated Global model.
ruff,compileall,validate-skills.py, and JSON/YAML parsing all pass.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.