Cream the butter and brown sugar in a stand mixer.
Combine the flour, coconut flour, coconut flakes, baking powder and baking soda, and pudding mix in one bowl and the egg, almond extract and milk in another.
Add the dry ingredients to the mixing bowl with the brown sugar and butter, then mix on low speed until well combined. Slowly add in the wet ingredients and continue mixing until smooth.
Air Fry the Cake:
Lightly spray a loaf pan with nonstick cooking spray. Pour batter into the loaf pan. Cover with foil.
Place into the air fryer and bake for 25 minutes, remove foil and cook for 5 more minutes. Check to be sure the cake is done by inserting a toothpick into the center. If it comes out clean, it's ready.
Prepare and Add the Toppings:
While the cake is cooking, prepare the glaze. Combine all the glaze ingredients in a medium mixing bowl and beat on high speed until smooth.
Allow loaf to cool for 10 minutes. Remove from pan and spread glaze over the top. Sprinkle with pistachios and slivered almonds.
Notes
Preheat your air fryer: Although it heats up quickly compared to an oven, it's still best to get it hot before adding the cake. Use nonstick cooking spray: This prevents your cake from sticking to the loaf pan. Check for doneness: When a toothpick inserted into the center comes out clean, it's done.