This paper studies the effects of moral hazard on employment and wage dynamics using a continuous-time competitive search model with aggregate productivity shocks. Unobservable idiosyncratic shocks require employers to design dynamic optimal contracts to incentivize workers to exert effort. To...