Peter Kofler organized a Code Retreat in Graz to teach attendees about code quality. The retreat consisted of coding sessions focused on Conway's Game of Life where participants practiced pairing, experimenting, and improving code quality based on principles like simplicity, readability, and minimizing duplication. The goal was to help developers learn through repetition rather than focusing on completion.