What happened
Codex developer apexethdev identified a significant issue with the native Amazon Bedrock provider. When requesting GPT-5.6 Sol through the Codex CLI, the system lacks explicit control over prompt caching.
This resulted in an agentic coding workload—designed for sustained interactions and tool utilization—producing an unusually high volume of cache-write tokens to the Bedrock service. Specifically, during the period from August 5th to 8th, 2026, a total of 3,656 requests were made, generating 171.94 million cache_write_input_tokens. This translated into an estimated cost of $1,182.09 based on the Bedrock rate card for Sol at us-east-1. The analysis suggests this represents about 85% of the model's overall spend.
Why it matters
The revelation underscores a critical gap in understanding how agentic AI workflows impact costs when utilizing large language models like GPT-5.6.
The native Bedrock provider’s architecture, seemingly optimized for static prompt scenarios, isn’t well-suited to the iterative and dynamic nature of agentic coding.
But, but, but…
The AWS documents explicitly state that GPT-5.6 on Bedrock is designed with cache mode support specifically for agentic workflows—characterized by long stable instructions and tool definitions followed by changing tool and user content.
The observed behavior is not a fundamental limitation of the model itself, but rather an incompatibility between the tool's request type and how Bedrock natively handles prompt caching. The built-in Amazon Bedrock provider config exposes transport/auth settings, not structured request-body transformation, so this cannot be configured through toml. It’s important to note that these cost estimates are derived from usage data; they aren't the final AWS invoice amounts and may vary.
“Native Codex CLI requests to Amazon Bedrock Mantle cannot opt into GPT-5.6 Sol explicit prompt caching. On an agentic coding workload, this has produced a large volume of cache-write tokens and materially higher cost.”
— Dr Non
The counter-take
The prevalent assumption that 'zero-shot' or ‘few-shot’ prompting will always be the most cost-effective strategy for agentic AI needs serious revision. This Codex incident demonstrates that a true understanding of the model's operational characteristics—especially cache behavior—is critical to preventing unexpected expense surges.
The AI angle
The identified inefficiency highlights a significant asymmetry in AI cost modeling: current tools don't accurately account for the dramatically higher compute requirements of agentic workflows, particularly with models like GPT-5.6 designed to handle sustained context and dynamic tool usage. Further investigation into prompt optimization strategies and alternative LLM providers is warranted.
