When building a treasure-house for Hyrieus, the brothers fixed one of the stones in the wall so that they could remove it whenever they pleased, and from time to time carried off some of the treasure.
Hyrieus thereupon set a trap in which Agamedes was caught; Trophonius, to prevent discovery, cut off his brother's head and fled with it.
He was pursued by Hyrieus, and swallowed up by the earth in the grove of Lebadeia.
Hyrieus owned a treasure inside a building built by Trophonius and Agamedes 1 which had a stone that they could take away from the outside, thus robbing him, until one of them was caught in a trap made by Hyrieus.