I take a military analogy to it. War is probably the most chaotic situation anywhere. And to cater for it, they develop a lot of discipline, starting with formations and strict routine.
The key is to create a bubble of control. Once you control a zone, once you form a secure perimeter, it's much easier to control the rest.
This zone of security is most easily done with Agile. Agile lets you control that sprint. Agile lets you gain more control over a large project, sprint by sprint.
A lot of people abuse agile. They forget that it's a way of ensuring control. These people overextend and they lose it.
Routines and SOPs are also really good. A lot of companies trust their developers completely. After all, they hire the smartest people they know.
But just because they're smart, it doesn't mean they know what to do. A SOP keeps people moving in formation. If you know where everyone is, you can secure a huge perimeter. If people have full freedom, they will often break formation because they don't see the big picture.
Communication is absolutely vital. Whether in war or software, sometimes you don't even know where you are. Sometimes you don't know when someone is crossing into another person's zone. It's also important that these people don't simply communicate to one another, or just to their team leader. It creates a bottleneck, a point of failure. This is where project management apps like Jira and Slack come in.
It's also vital that you know your environment. You should know what you're getting into. This is where system analysts, business logic, and similar experts come in. They are there to scout things out before the grunts move in. The project manager may tell people where to go, but the system analysts tell them what is safe.
In general, I think that if you believe a project is completely safe, you simply don't know enough about it. You should be well aware of the chaos and have a plan for it.