I like borage because it is pretty but I'm not sure it deters anything. I've raised it off and on for years.
I do little planning with my yarden. My squash ramble thru the flower beds or all over the bird house cleanings. Peppers use to grow in with the various perennial flowers and shrubs.
Remember that dill is a huge favorite of the Swallow Tail Butterfly larvae. So is parsley. They can strip a plant in a day.
My real planning is in how many tomatoes and of what kind to grow since I only need a few. I only want cherry or plum size except for one for sandwiches. I plant lots of basil and marigolds in with the tomatoes. My Rue lived with them for 5 or 6 years. I need to get a new one this year. I also need to decide how many of the small eggplant I want/need. I love those little eggplant. Just large enough for one serving.
GOD bless and keep each of you.