As mentioned there are plenty of engines mature and worthy to develop with, like Godot.
Advising to homebrew everything with an LLM just sounds insane to me. Cognitive overhead of what? Using well thought out and standardized libraries that have proper documentation? Creating a new engine with an LLM is only going to achieve the opposite of fully understanding your codebase.
Thank you! That's exactly what I was about to write.