Evolution of an in vivo bioreactor