Some rules I like AI assistants to follow. This should avoid burying themselves under their own dirt. There could be some repetition between sections. Code used for experimentation should not strictly follow these rules, although for long-running sessions that might be the right thing to do.
You might take some inspiration from between sections in case they apply.