In a later period, once all the direct descendants of the Kamo family had died out, Tomokage KOTOKUI, a member of a branch line of the Kamo clan, became Onmyo no kami (Director of Onmyoryo) and after Tomosuke KOTOKUI, who was the grandson of Tomokage, Reki Hakase became a hereditary post for descendants of the Kotokui family.
後に賀茂家の嫡流が断絶すると、同氏の庶流であった幸徳井友景が陰陽頭となり、孫の幸徳井友傳以後は暦博士の官職は幸徳井家の世襲となる。