GitHub Copilot CLI BYOK (Claude Opus/Haiku 5.5): mitmproxy rewrite of thinking.type=enabled -> adaptive + output_config.effort A developer published a mitmproxy addon that rewrites GitHub Copilot CLI's legacy Anthropic thinking configuration so newer Claude models such as Opus 5.5 accept the requests. Copilot CLI with BYOK provider type "anthropic" sends thinking.type "enabled" with budget_tokens, which the newer models reject with HTTP 400; the addon converts it to thinking.type "adaptive" plus an output_config.effort level derived from the token budget or a THINKING_EFFORT environment variable. It also re-applies the last-seen effort for tool-loop follow-up requests that omit the thinking field. | | """mitmproxy addon: rewrite legacy Anthropic thinking config for newer models. | | | | | | Copilot CLI BYOK, provider type "anthropic" sends | | | "thinking": {"type": "enabled", "budget tokens": N, ...} | | | which newer models e.g. Claude Opus 5.5 reject with HTTP 400. This rewrites it to | | | "thinking": {"type": "adaptive", ...}, "output config": {"effort": "