ensure agent string is passed through add_file task functions