The trick is never to say “Do X, using code.” Instead, say, “In a code block, do X.” Don’t treat code as a tool it can decide when to use — treat it as your desired response format, so all thinking happens in comments. (UI bonus: rationales now fold/hide with code.)