Skip to content

A self-improving RLM agent for coding workflows and long-running autonomous tasks.

Rust

fix(ai): bump impersonated Claude Code version to 2.1.257 for Fable 5.x (#1993)

Sebastian Müller3f02aa5d690d
diff --git a/packages/ai/.changes/res-1257-fable-claude-code-version.md b/packages/ai/.changes/res-1257-fable-claude-code-version.md
new file mode 100644
index 0000000000..452c5f5cb5
--- /dev/null
+++ b/packages/ai/.changes/res-1257-fable-claude-code-version.md
@@ -0,0 +1 @@
+- Fixed Claude Fable 5.x failing over Anthropic OAuth with "Claude Code 2.1.75 does not support this model" by bumping the impersonated Claude Code version to 2.1.257 ([#1962](https://github.com/PrimeIntellect-ai/prime-agent/issues/1962))
diff --git a/packages/ai/src/providers/anthropic.ts b/packages/ai/src/providers/anthropic.ts
index 55596aa0c3..a3fcb41521 100644
--- a/packages/ai/src/providers/anthropic.ts
+++ b/packages/ai/src/providers/anthropic.ts
@@ -77,7 +77,7 @@ function getCacheControl(
}
// Stealth mode: Mimic Claude Code's tool naming exactly
-const claudeCodeVersion = "2.1.75";
+const claudeCodeVersion = "2.1.257";
// Claude Code 2.x tool names (canonical casing)
// Source: https://cchistory.mariozechner.at/data/prompts-2.1.11.md