My tomatoes are doing well in general although I have these really bizarre pests on them now! They look like this -

They are apparently "slug caterpillar moth" caterpillars and that black thing on top is normal! I have a bunch of them and they all look like that. Here's a different one -

What are these things, and how do I get rid of them? They're eating little holes in all the leaves.