At what point did militaries develop special tactical units? Was it something they were able to keep secret after they were created?

by td4999
Iphikrates

What exactly do you mean by "special tactical units"? Are you referring to a subdivision of an army into distinct units of a standard size, or to highly specialised units trained for a specific tactical purpose?