cosmos bugs

so my cosmos this year have been infested with what looks like a tiny little green bug of some sort and today I noticed that it had turned into black fuzzy caterpillar looking thing. Last year the cosmos bloomed over 3 feet. It was really tall but this year it has been infested. I mean there are so many of them; it's disgusting! Are they harmful? And what are they? Thank you so much.