Heat the oil in a saucepan over medium heat. Add the garlic and pepper flakes and cook, stirring, until lightly browned. Add the onion and cook, stirring, until soft, about 10 minutes. Add the tomatoes, capers, almonds, basil, thyme, and sugar and season with salt and pepper. Simmer for 10 minutes. (The sauce can be prepared 1 day ahead.)
Preheat the oven to 375 degrees F.
Put the almond-tomato sauce in the bottom of an ovenproof casserole dish. Lightly brush wolf fish with oil and season with salt and pepper. Place the wolf fish on top of the sauce in the center of the casserole dish, and arrange the clams around the outer edge. Bake uncovered until the wolf fish is cooked through and the clams have opened, about 15 to 20 minutes. Serve with smashed potatoes.
Recipe courtesy of Legal Sea Foods