Li Siyuan commissioned Shi as the military governor of Baoyi Circuit (保義, headquartered at Shan Prefecture) and created him a count. In 927, he recalled Shi to Luoyang to serve the deputy commander of the imperial guards (with Li Siyuan's biological son Li Conghou serving as the commander). Later in 927, when the general Zhu Shouyin the military governor of Xuanwu Circuit (宣武, headquartered in modern Kaifeng, Henan) rebelled against Li Siyuan's rule, Li Siyuan initially sent a small dispatch of soldiers under Fan Yanguang to attack Xuanwu's capital Daliang, but then followed that dispatch by sending Shi, and then followed Shi there himself. Zhu, finding the situation hopeless, committed suicide. LI Siyuan subsequently made Shi the military governor of Xuanwu. In 928, Li Siyuan made him the defender of Yedu and the military governor of Tianxiong Circuit (天雄, headquartered at Yedu), and gave him the honorary chancellor designation "Tong Zhongshu Menxia Pingzhangshi" ().