1/2 cup (15g) freeze-dried raspberries, coarsely chopped or broken
sea salt for sprinkling, optional
To make the dough: Sift together the flours, cocoa powder, and baking soda. Set aside.
Working in the bowl of a stand mixer fitted with the flat beater attachment, or in a large bowl with a hand mixer, beat the butter and both sugars together on medium speed until smooth, about 3 minutes.
Beat in the salt, red chile powder or cayenne, and vanilla.
Turn off the mixer, add the dry ingredients all at once, and pulse to start the blending. When the risk of a flour storm has passed, beat on low speed until the dough forms big, moist curds — this can take a couple of minutes, so don’t be afraid to keep mixing.
Toss in the chocolate pieces, nibs, and raspberries and mix to incorporate. Note: Sometimes the dough comes together and cleans the sides of the bowl and sometimes it crumbles — it’ll be fine no matter what.
Turn the dough out, gather it together and, if necessary, knead it a bit to bring it together. Divide the dough in half.
To shape the cookies: Shape each half of dough into a log 1 ½” in diameter. The length will be between 7” and 8”, but don’t worry about it — it’s the diameter that counts here. If you get a hollow in either of the logs, just start over.
Wrap the logs and freeze them for at least two hours, or refrigerate for at least three hours. (If you’d like, you can freeze the logs for up to two months; let stand at room temperature for about 15 minutes before slicing and baking.)
To bake the cookies: Preheat the oven to 325°F. Lightly grease (or line with parchment) two baking sheets.
Using a chef’s knife, slice one log of dough into 1/2″-thick rounds. (Don’t worry if they crack, just pinch and squeeze the bits back into the cookie.)
Arrange the rounds on the baking sheet, leaving about 2” between them. If you’d like, sprinkle the tops sparingly with flaky salt.
Bake the cookies for 12 minutes — don’t open the oven door to check, just let them bake. They won’t look fully baked and they won’t be firm, but that’s the way they’re supposed to be.
Transfer the sheet to a rack and let the cookies cool until they’re only just warm or at room temperature.
Repeat with the remaining log of dough.
Storage information: Packed airtight, the cookies will keep for five days at room temperature (they’ll get a little drier, but they’re still good); or for up to two months in the freezer.