Torvalds said AI can do “really good code” but warned against it when users are unsure what the end result should be.