How to use Grok without losing the work
Use the phone tutor or Grok the same way. Paste the full error. Ask for kitchen examples. Ask for one 20-minute exercise.
Try for five minutes before you ask. Type the code yourself, even if you peek. When it explains something, say it back.
If it writes the whole program, that is a demo, not practice. Delete it. Rewrite it from memory. Ask for hints, not the full file.