In a mixing bowl, whisk together the chocolate pudding mix with cold milk until the mixture is smooth and begins to thicken, about 2-3 minutes. The pudding should be glossy and slightly set.
Gently fold in the instant coffee or espresso powder, if using, for an extra depth of chocolate flavor.
Spread a layer of crushed cookies evenly at the bottom of your serving dish to create a crunchy base that mimics dirt.
Pour half of the chocolate pudding over the crushed cookies, smoothing it out with a spatula to create an even layer.
Add another layer of crushed cookies on top of the pudding for additional texture.
Pour the remaining pudding over the cookie layer, spreading it evenly to cover the entire surface.
Cover the dish tightly with plastic wrap and chill in the refrigerator for at least 2 hours to allow the flavors to meld and the pudding to set properly.
Once chilled, sprinkle the top with more crushed cookies for a dirt effect and scatter a handful of colorful gummy worms on top for a spooky, squirming finish.
Gently press some gummy worms into the pudding to make them look like they’re crawling out of the dirt for a more chaotic, fun presentation.
Serve slices of the messy, colorful dirt cake and enjoy the playful textures and flavors with friends or family.