MTPLX icon indicating copy to clipboard operation
MTPLX copied to clipboard

Handle Claude Code auto-mode classifier requests

Open phaedrus1992 opened this issue 1 month ago • 1 comments

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.

phaedrus1992 avatar Oct 26 '26 20:10 phaedrus1992

Shipped in 2.12.3 with your #670. Thanks!

youssofal avatar Nov 06 '26 21:11 youssofal