typically after range trips, with exceptions.
I prefer my carry gun to be clean. If I ever happen to be at the scene of a shooting & I didn't shoot, a clean gun should save me some hassle factor where a dirty gun might cause me some.
When doing load work with rifles I clean as needed based on...