A flexible brain implant that records signals, stimulates with light, and delivers drugs worked in mice. What it could mean for epilepsy research.