I'm surprised there aren't more hand-crafted OSs popping up on HN. Agentic AI can give you the basics of an OS in 15 minutes. It gets confused when debugging assembly code, but it can give you a good framework and walk you though the remainder of the steps.
The parent commenter should get an Altair Z80 emulator with CP/M 2.2 and begin writting stuff in assembly.
Even a simple Tetris would be a daunting task.
He could even try high level languages such as T3X, which is very Pascal-like to my eyes in order to be familiar with CP/M 2.2 and after
some months I would switch to Z80 assembly in order to write stuff for CP/M.
These AI's would be clueless about T3X OFC, or almost, because of the nasty scrappers. Still, it would be an ideal exercise to avoid the AI completely. You learn by the book. Literally.
Wait, I'm confused. Why would I use an obscure language that no one knows about, or could find a book on, when I could just have the AI write Z80 assembly, or even have it make a Z80 C compiler for me? (You laugh because you haven't tried it)