When arranged in thin lines and holding group, especially with a lower quality phalanx, turn on defensive mode.
When arranged in a thick formation and attack, especially with a high quality or elite phalanx, turn off defensive mode, which would let your Agryaspidai/Epilektoi open up their formation with pikes before going in to melee them all to death. Epilektoi's AP machaira are especially painful.