We Built a Wasp Nest on Purpose
Costa Rica has hundreds of species of wasp. It turns out some of them will work for you, if you give them somewhere to live.
For a while, small black-and-striped caterpillars were devastating our arugula and spinach by the hundreds, and nothing organic we sprayed, garlic, chili, you name it, seemed to slow them down. The only real method we had was squishing them by hand once they got big enough to see, which is about as satisfying as it sounds.
Costa Rica already has wasps that build mud nests in the small round ground-pin hole of an electric outlet, the kind you'll find if your house is open to the jungle the way ours is. I once cleaned one out and found it stuffed with seven or eight small caterpillars, food the wasp had packed in for its larva before sealing the hole with mud and flying off. That got me thinking: what if we gave these wasps a reason to nest closer to our actual vegetables?
Then, almost on cue, I caught one in the act. A small black wasp was working through a bed of spinach in our mandala keyhole garden, the same bed that had been hit by that plague of caterpillars weeks earlier. I filmed it on my phone as it found a caterpillar hidden on the underside of a leaf and took it down, right there.
If a caterpillar plague is a problem your farm already has, somewhere nearby there's probably a wasp whose entire job is solving exactly that.

The design itself is not architecture. Take a scrap two-by-four, drill holes about an inch deep, sized to match the outlet holes these wasps already favor, and mount it somewhere sheltered, under an overhang or a big branch. We mounted a few around the farm and the shade structure and waited.
It worked. The first boards filled with mud-sealed larvae chambers within weeks, and they're still active nearly a year later. A few holes get used and vacated, then reused. One thing I'd change: sanding the hole edges, since the splinters probably aren't doing the wasps any favors.
One warning if you try this yourself: there's a different, larger mud-dauber wasp that builds vertical tube nests, often on the sides of houses, or in our case, inside a hanging cast iron pan. Those tubes, when opened, were packed with paralyzed spiders, not caterpillars. Each spider was food for a wasp larva that would otherwise have been eating insects that actually help your garden. Worth clearing those out and leaving the small hole-nesters alone instead.
