[...]
But how does that produce a clean sine wave where the frequency can be changed electronically (analog)?
It doesn't really need AGC, the amplitude can be set via resistors. Diodes are out anyhow because that would result in serious sine distortion.
[...]