Pulse the mushrooms, shallots, garlic, and thyme until finely chopped, scraping down the sides of the bowl occasionally, in 10 to 12 (1-second) pulses. Transfer to a medium bowl. Add the remaining mushrooms to the food processor, pulse until finely chopped, and transfer to the bowl. (Alternatively, very finely chop everything by hand.)