Multi-agent planning system