They aren't aggressive to ornamental species, but they are predators. They do not eat algae at all and detritus only makes up a small part of their diet. They mostly feed on small mollusks and crustaceans that live in the sand.
They really have no business in a reef tank since they provide no benefit and will starve to death in all but the largest tanks.