Xiaoke had unusual ambitions when he was young. His father and brother think he is a scoundrel. There was chaos in the world at the end of Sui Dynasty, and Shi Biao gathered in Wagang Village. In the first year of Tang Wude, Guo Xiaoke led hundreds of people to the village to go to Shimi. After seeing Guo Xiaoke, Shi Mi was very happy, so he and Xu Shi left Liyangcang, and in the following years. Guo Xiaoke has a long history under Xu.
In the Battle of Mangshan, Shimei defeated Jiangdu, saved the king, led the remnants into the customs and reached the Tang Dynasty. Most other generals and county chiefs belong to the king, but the land under Xu's jurisdiction does not belong to them. At this time, he took Shi Biao to Kanto, Zhaofu and Chang 'an. Xu decided to return to the Tang Dynasty and sent Guo Xiaoke to Chang 'an, saying, "This place belongs to the Tang Dynasty, and now it belongs to him. If I put it on the table, it will be God's failure. I will do my own work to attract wealth, and I am ashamed of it. It's best to write down the number of counties and military accounts today, and always go to the palace guard to listen to the public sacrifice. This is the advantage of Gong Wei. " After Guo Xiaoke arrived in Chang 'an, he became the magistrate of Yangzhai County, worshipped the secretariat of Songzhou, ordered Li Shiqi to plan and manage the area east of the Lake Supervisor, acquired counties and appointed them to select and enrich officials.
In the second year of Wude, Wang Xia Dou Jiande attacked Liyang and captured Wang Anli Shentong, Jia Rui and Princess Tongan in Huai 'an. Because his father was captured, he was forced to surrender to Dou Jiande and was appointed General Zuo, guarding Liyang. After Li Shiqi defected, he still joined the Tang Dynasty and discussed with Guo Xiaoke how to escape. Guo Xiaoke said, "My new thing is Dou Shi. If you move, you will see doubt. You should get results first, win trust, and then find a way. "
In the first month of the third year of Wude, Dou Jiande's wife and younger brother Cao Dan looted and harassed Henan, causing dissatisfaction among many adherents. At that time, Li Wenxiang, the leader of Xiangzhou Uprising, led more than 5,000 troops in Zhong Yangcheng, Shanxi and Mongolia, became brothers with Li Shiqi and plotted to restore the Tang Dynasty. Unexpectedly, Xiaoke and Guo Si led dozens of riders to Tang and Chang 'an.