The actors in a food system are represented by agents in a computer model – responding to the environment, managing resources and learning from their experiences and each other. Thus, the particular vulnerabilities of local communities can be related to the general drivers of the stresses and shocks in social, economic and environmental change.