Stanford University's CS336 course has guidelines for AI coding assistants, such as ChatGPT, to help students learn through explanation and guidance rather than completing assignments for them. The guidelines outline what AI agents should and should not do, including explaining concepts, reviewing code, and suggesting improvements, but not writing code or giving solutions. The goal is to preserve the learning experience and ensure students understand the material. The guidelines aim to prevent students from relying too heavily on AI agents and instead use them as a tool to enhance their learning.