I built an AI tutor that refuses to write your code A developer rebuilt the learn-to-code platform Hyper Sheets with an AI tutor named Hex, built on Claude Haiku, that is designed to refuse to write the code that makes an exercise's test pass. Hex explains errors, points to concepts and asks questions back, but the learner must still type the solution; free users get 15 questions per day in lessons and 10 in the editor, with paid tiers raising the limits. In 2021, when GPT-3 showed up, I thought my learn-to-code project was finished before it really started. Why would anyone learn HTML and CSS if an AI could write it for them? I was wrong. The easier AI makes it to build apps, the more people need the fundamentals. Students see young solo founders shipping with AI and want to do the same. Schools are teaching IT earlier. And plenty of us who work in tech have started forgetting the basics after handing them to AI. I'm one of them. So when I rebuilt Hyper Sheets https://learnhypersheets.com/en from scratch this year, I had to decide what its AI tutor would be allowed to do. This post is about that decision. Hyper Sheets is a place to learn coding from zero, often on a phone. Every topic follows the same loop: a short lesson with a live demo, then exercises that are checked the moment you run them, then small games built around one idea. The exercises are the part that matters. That's where you find out whether you understood the lesson or just nodded along. A general-purpose chatbot is very good at one thing in that moment: making the red error go away. Paste the task, get the answer, the check turns green. You feel like you learned something. You didn't. You learned how to copy. I didn't want to build that. I also didn't want to leave beginners stuck alone with an error message they can't read yet. A beginner who's stuck for twenty minutes on a missing semicolon usually doesn't come back the next day. The tutor is called Hex. It lives in lessons and inside the exercise editor, and it runs on Claude Haiku. When your code fails, Hex can: What it won't do is write the code that makes the test pass. Not if you ask nicely, and not if you ask five times. It explains, it points, it asks you something back. You still type the code. That's the whole rule, and it shapes everything else. I could have banned code in Hex's answers completely. That would have made it useless. Sometimes you need to see what a for loop looks like, or how display: flex is written. So the rule isn't "no code". It's "no solution to the exercise you're doing right now". Hex can show you a pattern. It can't do your exercise for you. It's a fuzzy line, and I'm sure it isn't perfect. But the question I keep asking is simple: after this answer, does the learner still have to think? If yes, Hex can say it. Every lesson, exercise and game on Hyper Sheets is free, and everyone with a verified email gets a few questions to Hex every day: 15 in lessons and 10 in the editor. Supporter and PRO plans raise that, because AI costs real money and I'm one developer paying the servers. I was nervous that a limit would feel stingy. In practice it does something useful: it nudges you to try once more on your own before you ask. Once I'd decided Hex wouldn't do the hard part, the rest of the app followed: If you teach, mentor, or are learning right now, I'd really like to hear where you draw the line: The longer story of how Hyper Sheets started, from hacking Blogger templates to a 2021 thesis, is on Medium https://medium.com/@ivqonnada/from-hacking-blogger-templates-to-hyper-sheets-3-0-the-story-behind-belajarweb-dev-4e8846d2ddb0 .