Images are AI-generated illustrations. Cutaways and comparisons are conceptual, not field photographs or measured results. Every AI-generated image has been personally reviewed and approved by a human. Any mistakes are therefore co-signed by the human.
A pale squiggle has appeared in your leaf. Something has been eating its way through the inside, which is an impressive amount of damage for an insect you may never have seen.
That hidden feeder is called a leafminer. For the leafmining flies discussed here, life inside the leaf begins when a female lays an egg beneath its surface. It hatches into a tiny, legless larva—the young feeding stage of the fly—which eats the tissue between the leaf’s upper and lower surfaces. The tunnel it leaves behind is the mine.
Living inside the leaf gives the larva some protection. Diglyphus isaea, a tiny beneficial wasp, has a way around that. The female finds the larva from outside the leaf, pierces the surface, and attacks it underneath. She does not need to enter the tunnel to reach the insect inside.
Finding the insect you cannot see
Before she can attack, the wasp has to find the right bit of leaf. Plant odors can help with the first part of the search: in laboratory experiments, female Diglyphus responded more strongly to damaged bean plants than to intact ones.1 That can lead her toward promising foliage, but she still needs to locate the small insect inside it.
To investigate that closer search, researchers watched females follow mines and move their antennae across the tunnel. Experiments with moving and immobilized larvae also supported a role for short-range vibration cues. Movement inside the leaf may help give the larva away.2

The precise way those vibrations reach the wasp remains unresolved. What the research shows is that a mine can provide clues as well as shelter. The damage you see as a pale trail gives the wasp somewhere useful to investigate.
The next generation comes with lunch
Once the female finds a suitable leafminer, she uses her ovipositor, the slender structure used for laying eggs, to reach through the leaf. She paralyzes the larva and places an egg on or beside it. The egg stays inside the mine, outside the leafminer’s body.3

When that egg hatches, the young wasp has food waiting. It feeds on the immobilized leafminer from the outside, eventually killing it. This makes Diglyphus a parasitoid: its young develop by feeding on another insect, called the host, which does not survive the arrangement.
You may also see the more specific term ectoparasitoid. “Ecto” means outside. Here it describes where the young wasp feeds relative to the leafminer’s body; both insects are still inside the leaf.

A little structural support
After feeding, the young wasp becomes a pupa, the stage in which it develops into an adult. It stays inside the mine for this transformation, but first it prepares the space around it.
The mature larva deposits dark waste pellets around its pupation site. These act as small pillars, keeping the upper and lower leaf surfaces apart while the wasp develops.3 Its building materials are questionable. The engineering is rather good.

From outside, you may still see only a damaged leaf. Inside, the next generation of beneficials may be developing. That is why it is worth inspecting mines before removing every leaf that looks untidy.
Sometimes the female eats first
Not every leafminer becomes a meal for a young wasp. Female Diglyphus also puncture larvae and drink their fluids without laying an egg. This kills the leafminer too, but leaves no young wasp beside it. Entomologists call the behavior host feeding.
That meal can help the female produce more eggs. In a laboratory study, females allowed to feed on hosts matured more eggs, although they did not live significantly longer.5 A leafminer eaten by the mother can therefore help her produce the eggs she will lay beside others.
For you, the distinction matters when checking a release. Finding young wasps is useful evidence, but you can have fewer living leafminers without finding a young wasp beside each one. Follow the feeding activity on the plant as well. The monitoring guide shows what to compare.
First, make sure it is the right leafminer
There is one catch to this useful arrangement: different insects make mines. Diglyphus attacks suitable larvae of several leafminer flies, including important species in the group called Liriomyza. A tunnel made by a different insect, such as a leafmining moth, does not automatically offer it the same meal.
Even among suitable flies, the match affects performance. A study comparing three Liriomyza species on several plants found that both the pest and its plant influenced attacks and host feeding.6 “It eats leafminers” is a starting point, not a diagnosis of the squiggle on your particular plant.
Use the identification guide to look for a living larva and gather the details needed to identify it. Once the pest matches, place the wasps near occupied leaves. They can do the searching. We can at least send them to the right plant.
Sources and further reading
- Finidori-Logli, Bagnères, and Clément (1996) — Role of plant volatiles in host search. Laboratory odor-choice experiments on bean plants; abstract reviewed.
- Zou, Chen, and Zhang (2012) — Role of leaf mines in host location and pupation. Experimental evidence for short-range cues; the precise vibration mechanism remains unresolved.
- UC IPM — Leafminer Diglyphus parasitoids. Attack behavior and host feeding.
- Li and Seal, UF/IFAS — Parasitoids of dipteran leafminers. External feeding, development, and hosts.
- Zhang et al. (2013) — Effects of host feeding on egg maturation and longevity. Laboratory findings; abstract reviewed.
- Musundire et al. (2012) — Host plant-related parasitism and host feeding. Study abstract available through icipe.
