limit agent threads