I just use it as a "mentor". A captive demon that has to answer my questions, no matter how trivial. Writing the code is the fun part for me, searching for answers to questions can be fun but I'd rather just ask the AI. I even ask them to give me longer answers so I have more context, even with languages I've worked with for decades.
It's interesting that you use the phrase "captive demon" because in fairy stories, the captive demon is always working to subvert the protagonist and work evil, whether by maliciously misinterpreting commands, or simply allowing the protagonist to damn themselves by enabling their worst impulses and poor choices.