MTPLX
MTPLX copied to clipboard
Handle Claude Code auto-mode classifier requests
Problem
Claude Code's auto-mode safety classifier sends a tool-free, non-streaming /v1/messages request. Its system prompt names the monitor role. MTPLX runs it as a normal turn, so it can use thinking and exceed Claude Code's classifier deadline (about 60 seconds). Another local server saw this with a reasoning model.
Proposal
Detect the classifier request on /v1/messages and run it with thinking off, because the reply only needs a verdict. Detection uses the marker text, no tools, and no stream. The flag is set during the Anthropic conversion, so a client body field cannot set it.
Shipped in 2.12.3 with your #670. Thanks!