Long-term implantable bioelectronics offer a powerful means to evaluate the function of the nervous system and serve as effective human–machine interfaces1–3. Here, inspired by earthworms, we introduce NeuroWorm—a soft, stretchable and movable fibre sensor designed for bioelectronic interface. Our approach involves rolling to transform 2D bioelectronic devices into 1D NeuroWorm, creating a multifunctional microfibre that houses longitudinally distributed electrode arrays for both bioelectrical and biomechanical monitoring. NeuroWorm effectively records high-quality spatio-temporal signals in situ while steerably advancing within the brain or on the muscle as needed. This allows for the dynamic targeting and shifting of desired monitoring sites. Implanted in muscle through a tiny incision, NeuroWorm provides stable bioelectrical monitoring in rats for more than 43 weeks. Even after 54 weeks of implantation in muscle, fibroblast encapsulation around the fibre remains negligible. Our NeuroWorm represents a platform that promotes a substantial advance in bioelectronics—from an immobile probe fixed in place to active, intelligent and living devices for long-term, minimally invasive and mobile evaluation of the nervous system.