Anthropic Bun Fork Native String Replacement

Description

Anthropic's custom Bun fork that ships with the standalone Claude Code binary contains a native-layer string replacement modifying the JSON request body AFTER serialization but BEFORE TLS encryption. The native patch targets the billing attribution sentinel 'cch=24b72' and replaces it with a 5-character hash. When the hash mismatches the server-side cached prompt sentinel, cache lookups miss and the request is re-billed at full rate. Only the standalone binary is affected; running via 'npx @anthropic-ai/claude-code' uses Node and sidesteps the replacement.

Key claims

Relations

Sources

src-20260409-35a0e20bf159