We present evidence that farmers adjust agricultural inputs in response to within-season temperature variation, undertaking defensive investments to reduce the adverse agroecological impacts of warmer temperatures. Using panel data from Kenyan maize growing households, we find that higher...