$ lexprog.com

// notes from an old coder -- php, databases, and the occasional rant

[November 01, 2026] OpenCode

Pin the model id: when context is nearly full

Set an explicit model so a provider alias cannot rewrite the team overnight. Start a new session or compact, then restate the remaining plan.

────────────────────────────────────────────────────────

Pin the model id: when context is nearly full

Tip: latest is not a contract

Set an explicit model so a provider alias cannot rewrite the team overnight. Start a new session or compact, then restate the remaining plan.

{ "model": "anthropic/claude-sonnet-4-6" }

Gotcha: Leaving model unset (when context is nearly full)

Each developer then hits a different default and reviews become model-vs-model. Compacting twice and saying continue will invent a new goal.

{ "provider": "anthropic" }

Source: https://opencode.ai/docs/providers

────────────────────────────────────────────────────────
<-- back to posts