Skip to content

feat(models): add Claude Mythos 5 support - #101238

Merged
vincentkoc merged 1 commit into
mainfrom
fix/anthropic-mythos-5
Jul 7, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/anthropic-mythos-5

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

OpenClaw does not recognize Claude Mythos 5 across its Anthropic, Anthropic Vertex, Amazon Bedrock, and Bedrock Mantle provider paths. That leaves the model absent from provider catalogs and misses its request constraints for sampling, mandatory adaptive thinking, thinking-block replay, and context metadata.

Closes #101215

Why This Change Was Made

Claude Mythos 5 has model-specific contracts that need to be consistent across every provider route:

  • 1M context window and 128k maximum output
  • always-on adaptive thinking, including normalization of explicit off
  • default-only sampling parameters
  • model-identity-aware thinking-block replay

The change centralizes those family contracts in the shared model helpers while keeping provider catalogs and runtime routing at their existing owner boundaries.

User Impact

Users with access to Claude Mythos 5 can select it through the supported Anthropic, Anthropic Vertex, Amazon Bedrock, and Bedrock Mantle paths. Requests now carry the model's required thinking and sampling behavior, and cross-model conversation replay strips incompatible thinking blocks.

Evidence

  • AWS Crabbox focused Mythos matrix: run_4c2604bc69cb - 495 tests passed.
  • AWS Crabbox regression rerun: run_022e856d4748 - 43 Mantle tests passed.
  • Blacksmith Testbox changed gate: tbx_01kwwy097g35804m21071k82zy - pnpm check:changed passed.
  • autoreview --mode branch --base origin/main: clean, no accepted/actionable findings.
  • Official Anthropic model overview and migration documentation checked for model identity, context/output limits, adaptive-thinking, sampling, and replay contracts.

AI-assisted: yes; implementation reviewed and validated by a maintainer.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: anthropic extensions: amazon-bedrock extensions: anthropic-vertex labels Jul 7, 2026
@vincentkoc vincentkoc self-assigned this Jul 7, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Jul 7, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Land-ready verification:

  • AWS Crabbox run_4c2604bc69cb: 495 focused tests passed across direct Anthropic, Vertex, Bedrock, Mantle, replay, context, and Plugin SDK surfaces.
  • Local regression command:
    node scripts/run-vitest.mjs packages/ai/src/providers/anthropic.test.ts extensions/amazon-bedrock/stream.runtime.test.ts extensions/amazon-bedrock-mantle/discovery.test.ts extensions/amazon-bedrock-mantle/mantle-anthropic.runtime.test.ts
    Result: 4 suites, 135 tests passed.
  • Blacksmith Testbox tbx_01kwwy097g35804m21071k82zy: pnpm check:changed passed, including core/extension typechecks, lint, docs, import cycles, and policy guards.
  • Final branch autoreview: clean, no accepted/actionable findings.
  • OPENCLAW_TESTBOX=1 scripts/pr prepare-run 101238: passed; exact-head review and prep artifacts validated.

Known proof gap: Claude Mythos 5 requires limited-access credentials, so no live provider call was available. Provider request/response contracts are covered by focused fixtures across all supported routes.

@clawsweeper

clawsweeper Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat(models): add Claude Mythos 5 support This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc
vincentkoc marked this pull request as ready for review July 7, 2026 00:19
@vincentkoc
vincentkoc merged commit f305e70 into main Jul 7, 2026
145 of 149 checks passed
@vincentkoc
vincentkoc deleted the fix/anthropic-mythos-5 branch July 7, 2026 00:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: amazon-bedrock extensions: anthropic extensions: anthropic-vertex maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: add Claude Mythos 5 provider support

1 participant