For example, beans and peas replenish nitrogen absorbed by potatoes in their growth cycle. I also plant various herbs next to potatoes to help protect them from insect pests, including thyme, chives, ...