Agent does way too much

Is there a way to get the agent to simply do what I ask for, instead of spitting out loads and loads of code by default?