Heat a medium pot or tall-walled skillet over medium heat. Drizzle with olive oil. Once hot, add the shallot, mushrooms, and ½ teaspoon salt. Cook until mushrooms are softened, about 8-10 minutes.
Add the orzo and minced garlic. Toast orzo for 1-2 minutes, stirring frequently to prevent sticking. Add extra oil as needed.
Drizzle in a small amount of vegetable broth to deglaze the pan and remove any stuck-on bits of orzo. Add remaining vegetable broth.
Bring to a rapid simmer over high heat. Reduce to a gentle simmer over medium-low. Cover with a lid. Simmer un the orzo is cooked through, about 10 minutes. Stir the orzo every few minutes to encourage even cooking.
Once the orzo is cooked, remove the lid and stir in the remaining ingredients: pesto, chickpeas, spinach, and capers. Cook uncovered on low until the spinach is wilted and the pesto is warmed. Serve topped with freshly ground black pepper, red pepper flakes, Parmesan, and additional capers if desired. Serve hot.
