We investigate a multi-agent moral-hazard model where agents have expectation-based reference-dependent preferences à la Kőszegi and Rabin (2006, 2007). We show that even when each agent’s probability of success in a project is independent, a principal may employ team incentives. Because the agents are loss averse, they have first-order risk aversion to wage uncertainty. This causes the agents to work harder when their own failure is stochastically compensated through other agents’ performance. In the optimal contract, agents with high performance are always rewarded, whereas agents with low performance are rewarded if and only if other agents’ performance is high.