Some excellent companion plants for deterring tomato hornworms include dill, chamomile and marigolds. Dill attracts hornworms and keeps them off your tomato plants. Marigold root secretions repel them and chamomile can reduce egg laying by the hornworm moths.