Senior officials from both sides said yesterday that they have reached an agreement on a set of guiding principles for a hotline among senior diplomats and on a joint statement on the Code for Unplanned Encounters at Sea (Cues), following their meeting in Inner Mongolia's Manzhouli city.