Agamedes
Commonly called son of Erginus, king of Orchomenus, and brother of Trophonius. Agamedes and Trophonius distinguished themselves as architects. They built a temple of Apollo at Delphi, and a treasury of Hyrieus, king of Hyria, in Boeotia. In the construction of the latter, they contrived to place a stone in such a manner that it could be taken away outside without anybody perceiving it. They now constantly robbed the treasury; and the king, seeing that locks and seals were uninjured, while his treasures were constantly decreasing, set traps to catch the thief.
Agamedes was thus caught, and Trophonius beheaded him in order to avert the discovery.
After this, Trophonius was immediately swallowed up by the earth in the grove of Lebadea. Here he was worshipped as a hero, and had a celebrated oracle.