Stanford's CS336 course has released guidelines for AI coding assistants used in its first assignment. The file, CLAUDE.md, specifies how tools like ChatGPT, Claude Code, GitHub Copilot, and Cursor should interact with student code. The goal is to preserve the learning experience by limiting AI assistance to code review, suggesting improvements, and completing TODO sections, while prohibiting the rewriting of large portions into finished solutions. Students are expected to write substantial Python and PyTorch code with limited scaffolding.
“Review code that students have written and suggest improvements, edge cases, invariants, or debugging checks.”
The guidelines emphasize that AI should not generate entire solutions but can edit code in the student's repository and run bash commands. This approach ensures students engage deeply with the material while benefiting from AI feedback.