We want to leave users to decide whether they want to use agent or not, so we add a new command `set agent on|off' in this patch. -- Yao (齐尧)