The idea of compiling the various laws had been explored since the time of Emperor Kanmu, but only began during the rein of Emperor Saga when a "Kyakushiki (law) compilation office" was established.
格式編纂の構想は、桓武天皇の頃から存在したが、嵯峨天皇の時代に「造格式所」を設置した。