Skip to content

Add Claude Fable 5.2 support on OpenCode 1, OpenCode 2 and Pi - #687

Merged
ualtinok merged 2 commits into
mainfrom
feat/fable-5-2
Nov 9, 2026
Merged

ualtinok merged 2 commits into
mainfrom
feat/fable-5-2

Conversation

@antauth-alfonso

@antauth-alfonso antauth-alfonso Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Add Claude Fable 5.2 support on OpenCode 1, OpenCode 2 and Pi. Worker delivery rebased onto main; see the commit messages.


Summary by cubic

Adds Claude Fable 5.2 (claude-fable-5-2) support on OpenCode 1, OpenCode 2, and Pi with its own catalogue entry: $8/M input, $40/M output, $0.20/M cache reads, 1M context window, and 128K max output tokens. Requests are sent the way Claude Code sends them — adaptive thinking, medium default effort, per-message effort markers, and Anthropic's safety fallback; fast mode stays off until Anthropic enables it for subscription accounts.

  • Fable 5.2 has its own refusal recovery family so fallback state never cross-contaminates with Fable 5.1 turns in the same session.
  • A compatibility snapshot test keeps every existing model's capabilities, betas, and request bodies byte-identical to how they resolved before this change.

Written for commit 5f0b731. Summary will update on new commits.

View guided diff Turn on auto-fix

Use a distinct catalogue and recovery family, default medium effort, Claude Code per-turn betas and no fast mode. Cache reads are /bin/bash.20/M per Anthropic's Fable 5.2 model page.

Keep existing model snapshots byte-identical. Extend the existing Fable 5.1 fallback transition test to run for both 5.1 and 5.2, retaining its original assertions and strengthening the notice labels.

OC2 catalogue registration remains host-owned by explicit scope decision; test native variants and requests when its catalogue supplies the model.
@ualtinok
ualtinok merged commit 5f0b731 into main Nov 9, 2026
16 checks passed
@ualtinok
ualtinok deleted the feat/fable-5-2 branch November 9, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant