This entire topic could actually be combined with Ideas to Improve AI. I agree with modman, and such a thing wouldn't be too hard.
Check the size of the opponent's group in a small area
Calculate how many can attack
If outnumbered, fall back and request back up
Else attack.
If loses are too high, call for back up.
My c++ skills are improving, but I don't really know the glest engine's classes and elements, which makes it difficult to mod it. Say, maybe someone should mae a simple file with syntax and a short description. Sure would make it easier for people to be able to modify the source. For now, I'll do it the slow way, examining everything... Maybe I'll take note, but there's still the things I got no idea what they're for...