Cyborg insects will be able to tackle challenging terrain following the development of a swarm navigation algorithm.