Dragon Age games did it best. Micromanage if you want, or decide the way your companions should act and rely on it if you don't. It's a damn shame nobody has tried to steal their customizable AI system.
What I would give for the ability to set up routines and conditions to be executed automatically during fights...