Best example (coolest): https://github.com/lo-th/Crowd.lab
Older thinking out there: https://github.com/Jacq/crowd-sim
Overview of the field: https://urban-analytics.github.io/dust/docs/ped_sim_review.pdf
Commercial solution: https://www.ucrowds.com/