A device that sounds like a 21st-century version of a medicinal leech may soon be set loose inside the chests of heart patients. Resembling a robotic caterpillar, it will crawl across the surface of their beating heart, delivering treatment without the need for major surgery.