After being set free, Kakuma served in Kyoto Prefectural Government thanks to the recommendation of Sakuma KAWADA, a Daisanji (second to a governor) of Kyoto Prefecture, and led the Kyoto government as an adviser of Masanao MAKIMURA (who later became the governor by Order of Kyoto Prefecture) who was taking the helm of the Kyoto government as a Gon Daisanji (second to a governor).
自由の身となった覚馬は、京都府大参事・河田佐久馬の推挽により京都府庁に出仕、当時権大参事として府政の実権を握っていた槇村正直（のち京都府令・知事）の顧問として府治を指導した。