This is how the history of Cogi and Whisp goes in The Pharaoh (CTaRAoMToLaCN).
Madam Magianort: Well. I think I found a book while being trapped in here.
Iago: It's a book about genies. Writtin by the Brothers Grimm and Alpha Trion. One of the 13 original Primes.
Mater: You can read it, Iago.
Iago: It was a long long time ago. Mystery and magic ruled.
Alpha Trion: [narrating] It was the age of the Genie. Cogi loved being a Genie, granting wishes to his finders, making their dreams come true. But, something was missing. When the 13 wishes were granted, he returned to his lantern, alone. Cogi was lonely. The maker of the Knights of Iacon wanted to help. Quintessa whispered an idea to the ear of the next finder and made a wish for Cogi.
Alpha Trion [voice]: It was during an eclipse and the magic of the wish transformed Cogi's shadow into Ryan Grant, who Micronus Prime nicknamed him after Gigi's sister, Whisp. Always together, they were like brothers. But, Whisp wanted to be more then just a shadow. He wanted to be a genie too. Whisp grew jealous of Cogi's powers, then he discovered that he is not bound by the rules of the lantern. He started to whisper ideas to the ears of the finders, convincing to use their wishes to serve his own needs. Learning from this, my sister and brother Alchemist Prime and Solus Prime, and with the help of the Brothers Grimm, they created a mirror to protect the finders from Whisp. During another eclipse, Cogi felt compelled to break the rules and used the mirror to stop Whisp. The mirror was shattered to 13 pieces but Whisp's spell over the finder was broken.