Solve Hard Coding Tasks with Claude Fable 5 Adaptive Thinking
Promptfoo example testing Claude Fable 5 on hard coding tasks - debugging, concurrency-aware generation, and security review.
Maintainer of this project? Claim this page to edit the listing.
code-scan-action-0.1Add to Favorites
Why it matters
Execute complex coding challenges using Claude Fable 5's adaptive thinking capabilities at the highest effort level to generate robust, well-reasoned code solutions.
Outcomes
What it gets done
Configure Claude Fable 5 with xhigh effort level for maximum problem-solving depth
Leverage adaptive thinking automatically without manual configuration
Tackle algorithmically complex coding problems requiring deep reasoning
Generate production-quality code through intensive computational effort
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/pfoo-fable-5-coding | bash Steps
Steps in the chain
Overview
Fable 5 Coding
A promptfoo example testing Claude Fable 5 on hard coding tasks - debugging, concurrency-aware generation, security review - covering its adaptive thinking and cross-provider configuration. Use when evaluating Claude Fable 5 specifically for demanding coding or agentic tasks requiring high effort and adaptive thinking.
What it does
This example exercises Claude Fable 5 on hard coding tasks using the xhigh effort level. Claude Fable 5 is Anthropic's most powerful model, a new tier above Opus, and always uses adaptive thinking, so no thinking configuration is needed. The example evaluates distributed-systems debugging with incomplete information, production-quality code generation with concurrency concerns, and security-focused code review with prioritized feedback.
When to use - and when NOT to
Use this example when you need to evaluate Fable 5 specifically on hard coding and agentic work at high or extra-high effort, where its adaptive thinking and large context matter. It is not appropriate for casual, low-effort tasks - effort defaults to high and xhigh is recommended for coding, and thinking consumes output tokens before any visible text, so a tight max_tokens budget can be spent entirely on thinking with an empty visible response.
Inputs and outputs
Set ANTHROPIC_API_KEY, then scaffold and run:
npx promptfoo@latest init --example anthropic/fable-5-coding
cd fable-5-coding
export ANTHROPIC_API_KEY=your_api_key_here
npx promptfoo@latest eval
npx promptfoo@latest view
Fable 5 always thinks adaptively - unlike Opus 4.7/4.8 where adaptive thinking is opt-in - so promptfoo automatically converts a legacy thinking: { type: enabled, budget_tokens: N } config to adaptive and omits thinking: { type: disabled }, since the model rejects both. Thinking summaries are opt-in: by default the API omits thinking content (an empty thinking block, excluded from output by promptfoo), so set thinking: { type: adaptive, display: summarized } for a readable summary. Fable 5 rejects temperature, top_p, and top_k at the model level, and promptfoo omits them automatically. The model supports a 1M-token context and up to 128K output tokens, priced at $10/$50 per million input/output tokens.
Integrations
Fable 5 is also reachable through AWS Bedrock (bedrock:global.anthropic.claude-fable-5 via Runtime/Converse, which requires opting the account into provider data sharing via aws bedrock put-account-data-retention --mode provider_data_share, or bedrock:messages:anthropic.claude-fable-5 for Bedrock's Anthropic-compatible Messages endpoint in us-east-1/eu-north-1), Google Vertex (vertex:claude-fable-5), and Azure AI Foundry (pointing anthropic:messages:claude-fable-5 at https://<resource>.services.ai.azure.com/anthropic via apiBaseUrl). Across all providers, promptfoo automatically omits unsupported sampling parameters and normalizes unsupported thinking configs for Fable 5; non-global Bedrock/Vertex regional endpoints carry a 10% price premium that promptfoo includes in cost calculations.
Who it's for
Teams evaluating Claude Fable 5 specifically for demanding coding and agentic tasks - distributed-systems debugging, concurrency-aware code generation, security-focused review - who need to understand its adaptive-thinking, sampling-parameter, and pricing differences from Opus before deploying it across AWS, Google, or Azure.
Source README
anthropic/fable-5-coding (Claude Fable 5 Advanced Coding)
This example exercises Claude Fable 5 on hard coding tasks using the xhigh effort level. Fable 5 always uses adaptive thinking, so no thinking configuration is needed.
You can run this example with:
npx promptfoo@latest init --example anthropic/fable-5-coding
cd fable-5-coding
What This Tests
Claude Fable 5 is Anthropic's most powerful model - a new tier above Opus. This example evaluates:
- Distributed-systems debugging with incomplete information
- Production-quality code generation with concurrency concerns
- Security-focused code review with prioritized feedback
Working with Fable 5
- Adaptive thinking is always on. Unlike Opus 4.7/4.8 (where adaptive thinking is opt-in), Fable 5 always thinks adaptively. There is nothing to configure: promptfoo converts a legacy
thinking: { type: enabled, budget_tokens: N }config to adaptive and omitsthinking: { type: disabled }, because the model rejects both. - Thinking summaries are opt-in. By default the API omits thinking content (an empty thinking block, which promptfoo excludes from output). Set
thinking: { type: adaptive, display: summarized }to include a readable summary. - Sampling controls are managed for you. Fable 5 rejects
temperature,top_p, andtop_kat the model level; promptfoo omits them automatically (don't set them in config). effortdefaults tohigh;xhighis available. Start withxhighfor coding and agentic work, and pair high effort with a largemax_tokens- thinking consumes output tokens before any visible text, so a tight budget can be spent entirely on thinking and yield an empty response.- 1M-token context, up to 128K output tokens. Priced at $10/$50 per million input/output tokens.
Running the Example
### Set your API key
export ANTHROPIC_API_KEY=your_api_key_here
### Run the evaluation
npx promptfoo@latest eval
### View results
npx promptfoo@latest view
Other providers
Fable 5 is also reachable through:
- AWS Bedrock -
bedrock:global.anthropic.claude-fable-5(Runtime/Converse; requires the account to opt in to provider data sharing viaaws bedrock put-account-data-retention --mode provider_data_share), orbedrock:messages:anthropic.claude-fable-5for Bedrock's Anthropic-compatible Messages endpoint inus-east-1/eu-north-1 - Google Vertex -
vertex:claude-fable-5 - Azure AI Foundry - point
anthropic:messages:claude-fable-5athttps://<resource>.services.ai.azure.com/anthropicviaapiBaseUrl
Across all providers, promptfoo automatically omits the unsupported sampling parameters and normalizes unsupported thinking configs for Fable 5. Note that Bedrock's regional and geo endpoints and Vertex's regional/multi-region endpoints (everything except global) carry a 10% price premium, which promptfoo includes in cost calculations.
Learn More
FAQ
Common questions
Discussion
Questions & comments ยท 0
Sign In Sign in to leave a comment.