We study the problem of a principal designing wage contracts that simultaneously incentivize and insure workers. Workers’ incentives are connected through chains of productivity spillovers, represented by a network of peer-effects. We solve for the optimal linear contract for any network and show that optimal incentives are steeper for more central workers. We link firm profits to organizations’ structure via the spectral properties of the co-worker network. When production is modular, the incentive allocation rule is sensitive to the link structure across and within modules. When firms can’t write personalized con- tracts, better connected workers extract rents and total surplus is reduced. In this case, unemployment emerges endogenously because large within-group differences in centrality can decrease firm’s profits.