Upon his return to Poland, he co-authored the military reforms of 1776–1779. At the same time until May 1792 he was the commanding officer of the Polish 5th Rifle Regiment (), after which he was the creator and the first commander of the Polish 15th Regiment of Foot.
Upon his return to Poland, he contributed to military reforms from 1776-1779, then took command of the Polish 5th Rifle Regiment until May 1792, after which he established and led the Polish 15th Regiment of Foot.