Cognitive processes can have profound effects on sensory experience. In this lecture I will discuss our recent electrophysiology findings revealing that prefrontal cortex is highly sensitive to behavioral errors when task rules are updated. We will also provide evidence that this engagement leads to rapid plasticity in sensory cortices altering perceptual performance.