Elon Musk confirms X (formerly Twitter) will open-source its new recommendation algorithm next week, including all code.