Myth of good and evil genius is ancient psychology, and teaches about the mind.
The ancient sages say, that the inner voice of conscience, within the matter that clothes human composite nature is a god, or “principle.” Socrates called the guiding god of his life his daimōn, or dæmon, which theosophists state, is the higher reason in us. Theosophists explain, that the dæmon is an incarnating spiritual power in the “mind” of man. This same daimōn had two dual sides: Agathodaimōn (good genius) and Kakodaimōn (evil genius). For one, this cosmic principle is represented with an ophidian shape (that of a serpent) coiling. It is the oracular and Gnōstic Christōs, but it has many names in the ancient schools.
The use of a serpent, did not always mean Evil.
Here, we see like St. Michael, Apollo slaying Python (a serpent, or dragon):
The serpent has always been the symbol of the conscience, and Wisdom. The conscience is only dual, until, the struggle ends, when the lower nature is subdued, by the Gnōsis and activity of the higher mind’s function, originally atrophied by its prior delusion. Perhaps, instead of cursing what is a piece of the lower self, simply rebuke it, and cast it aside by always, but steadily strengthening your concentration toward the good qualities of mind. The Bible speaks about doing the Will of the Propator (“the Father”), who is Proarche of All, and though reading this from the standpoint of Daoist philosophy, we can understand what it means, besides what the theologians think. Thought (Ennoia), as Valentinus held, was the Wife of the Aeon. This idea signifies the importance of what one thinks, if thought is wedded to The God; and what we think will either align us toward the Nous, or terrestrial matter. This is a fundamental teaching, rather pillar in the Persian Mazdean philosophy.
The old schools learned and perfected a knowledge of these principles and mystic processes, teaching a connection between Mind and Matter. The original idea of the Christōs was as a cosmic god; and Agathodaimōn is obviously, synonymous with the Persian deity Ahura Mazda (“the Good Mind”).
The Good Mind and the Good God are one in the same. An ophite, or a dragon often symbolised the cosmic principle of Wisdom, according to the Gnōstics. The daimōn can be depicted as both Saviour and Deceiver, but the student must learn to discern which. Kakodaimōn is what is known as kama-manas in the Sanskrit parlance of theosophical writings. Its tendency is in ever enticing man with the illusion of life, of all that holds man to physical matter, and the impure qualities. However, it is a necessary principle for the physical basis, or sōma. The student of the Gnosis is taught, that this can be conquered through the will of the Propator (or “Father”).