By the middle of Emperor Yang's reign, Yuwen Shiji was the director of imperial transportation.
When Emperor Yang went from the eastern capital Luoyang to Jiangdu (江都, in modern Yangzhou, Jiangsu) in 616, Yuwen Shiji followed him there.