There's various ways of tricking them but it's frustrating that one even has to, and with the current direction of things they won't last. But I've also noticed that Claude seems less eager to refuse if the same prompt is in a Claude Code context than compared to its web interface, so harness matters for this too, when it really shouldn't...
True, Grok and Claude didnt refuse in cli, OpenAI did.
I've switched to Hermes for uncensored(ish) local models and chinese model api vendors, they will gladly write whatever I want. Save my american frontier tokens for real coding.
Also codex/claude in desktop have no issues fixing the app after its started. So just have a framework started.