Preheat the oven to 375 degrees F and arrange the phyllo shells on a baking sheet.
Melt the butter in a large skillet over medium heat and add the shallot, cooking for 2 minutes until softened.
Add the garlic and cook for 30 seconds, until fragrant.
Add the mushrooms and thyme, and cook for 8 to 10 minutes, stirring occasionally, until the mushrooms have released their liquid and it has fully evaporated, leaving the pan dry and the mushrooms browned.
Pour in the sherry and cook for 1 minute, scraping up any browned bits from the bottom of the pan.
Add the cream, salt and pepper, and simmer for 2 minutes, until the mixture thickens enough to coat the back of a spoon; remove from heat and let cool for 5 minutes.
Spoon the mushroom filling into the phyllo shells, filling each almost to the top.
Sprinkle the Gruyère over the filled shells.
Bake for 10 to 12 minutes, until the cheese is melted and bubbling and the edges of the shells are golden.
Scatter with chives and serve warm.
Good to Know
Make the mushroom filling up to 2 days ahead and refrigerate; fill and bake the shells the day of the party so the phyllo stays crisp rather than soft.