WASHINGTON - A US military aircraft has flown for the first time with an Artificial Intelligence (AI) robot as co-pilot, technology which could one day give America a huge edge over adversaries in the skies.

After takeoff, the controls were handed off to Artuμ, named after Star Wars droid R2-D2, which was put in charge of sensor systems.

The AI algorithm, known as Artuμ, flew this week alongside a human pilot on a U-2 Dragon Lady spy plane assigned to the 9th Reconnaissance Wing at Beale Air Force Base in California.