I am thinking about creating a proof-of-writing signature. Basically an editor with an "anti-cheat", you can't paste text into it. It signs your text with a public key.
In a class setting, maybe make the AI-detection an element of take-home assignments - whoever gets the lowest AI-similarity score gets a few points of extra credit or something
As for computer science courses, I'm guessing it's hard to not write simple code that appears AI-generated...so maybe that kind of work needs a written summary to go along with the code as well
I guess you could require a special encrypted keyboard in your plan.