Repository navigation
v2026.04.25 (v1.14.24)
What's New
- Per-agent
maxOutputTokensoverride: Agent frontmatter can now cap model output tokens per agent (e.g.maxOutputTokens: 32768on a reviewer agent), with safe fallback to the model's limit. Fixes silent swallow when set via agent frontmatter (config schema unknown-key fallback).
Fixes
- Provider: resolve
useMaxCompletionTokensper-request, not per-SDK — the transform was keyed on the model captured when the SDK was first instantiated, but a single SDK instance is shared across all models under the same provider config. Mixed gateways (e.g. Anthropic + OpenAI reasoning models behind one endpoint) now correctly apply per-model overrides. Anthropic models can opt intomax_tokens(which they require) viaoptions.useMaxCompletionTokens: falseto avoid a silent ~2K truncation. - Provider/tool: resolve model alias for
useMaxCompletionTokensandisGptPatch— when a config key differs from the SDK-facingapi.id(aliased models), both the fetch wrapper and the tool registry now resolve via direct lookup → uniqueapi.idmatch → provider-level fallback. Multiple aliases sharing the sameapi.idno longer apply an arbitrary override silently. - Reviewer: resolve narration rule contradiction in
.opencode/agent/reviewer.md— phase 1/2 emit guidance was self-contradictory across sections. - Upstream rebase to v1.14.24.
Install
Try without installing:
npx opencode-ai-nofcInstall globally:
npm install -g opencode-ai-nofc
opencodeOr download binaries below.
Based on upstream opencode v1.14.24.