[ SUBJECTS ]
AI help for computer science that keeps students debugging
AI can write the code. A computer science class is about understanding it. What the research says about learning to code with AI, and how Nexus's class modes keep students debugging.
50% vs 67%
quiz scores without AI for AI-assisted versus hand-coding learners, in a randomized study of 52 adults
Source: Anthropic, Jan 2026
[ COMPUTER SCIENCE ]
What the research on AI and coding shows
In a randomized study of 52 mostly junior engineers learning a new Python library, the group using AI scored 50% on a quiz without AI, against 67% for those who coded by hand, and were not significantly faster. People who delegated the code averaged below 40%; people who asked conceptual questions scored 65% or more. Those were adults, but the pattern matches the classroom evidence: how students use AI predicts what they learn.
Younger learners can use AI without losing skill when the setup is right. In one study, 69 novice programmers aged 10-17 who used an AI code generator kept their manual coding skill a week later.
How the three learning modes work in computer science
Modes describe how a class is set up to respond, and students cannot change a class's mode. AI can make mistakes; before any pilot we check Hints and Guided with real models.
| Mode | What the student gets | Good for | Watch for |
|---|---|---|---|
| Hints | A question that leads to the bug, such as "Which values does i take?" | Debugging, tracing, reading error messages | Students pasting code and asking for a fix |
| Guided | One step at a time through planning, writing and testing a function | New programming concepts and projects | Copying generated code without testing it |
| Full answer with critique | A complete solution with a critique of style and edge cases | Code review after the student's own version works | Replacing the student's version with the AI's |
A hint-first exchange
Class instructions teachers can add
Each class can carry the teacher's own instructions on top of its mode. A few that work well here:
- "Never write the student's code. Ask questions that lead to the bug."
- "Ask the student to trace the code with a small input before any hint."
- "Explain error messages; let the student make the fix."
- "After a fix, ask for a test case that would have caught the bug."
Checking what students can do alone
Short unaided tracing questions show understanding better than finished projects. Ask students to predict the output of a few lines of code, or to explain their own code aloud. Help-seeking patterns in class chats, such as repeated requests to "fix it," show where to reteach.
[ FAQ ]
Questions and answers
Should students use AI to learn to code?
Yes, with care. In one randomized study of adults, people who delegated code to AI learned least, and people who asked conceptual questions learned most. A Hints class keeps students tracing and debugging.
Can AI-written code be used in class projects?
That is your class rule. A common approach: students write their own version first, then use Full answer with critique for a code review.
How do I check that students understand their code?
Ask them to predict output, trace with a small input, or explain their code aloud.
[ SOURCES ]
Sources
Facts checked Oct 18, 2026.
- 1Anthropic, AI assistance and coding skills (randomized study)Jan 29, 2026 · anthropic.com
- 2Kazemitabaar et al., AI code generators and novice programmers, CHI 2023Feb 15, 2023 · arxiv.org
[ AI FOR SCHOOLS ]
The AI your school can approve.