Active galactic nucleus jet feedback in hydrostatic halos