add agent script