[October 13, 2026]
OpenCode
Commit a project opencode.json: when context is nearly full
Put model, MCP, and permission defaults in the repo. Start a new session or compact, then restate the remaining plan.
────────────────────────────────────────────────────────
Commit a project opencode.json: when context is nearly full
Tip: Share team defaults
Put model, MCP, and permission defaults in the repo. Start a new session or compact, then restate the remaining plan.
{ "model": "anthropic/claude-sonnet-4-6", "autoupdate": false }
Gotcha: User config silently winning (when context is nearly full)
Know the merge order before you debug it-works-on-my-machine. Compacting twice and saying continue will invent a new goal.
/* ~/.config/opencode may shadow keys */
Source: https://opencode.ai/docs/config
────────────────────────────────────────────────────────
<-- back to posts