Interestingly, individual firms behave more as centrally-planned economies, and market activity is mostly absent inside of them. This is a long-studied curiosity: https://en.wikipedia.org/wiki/Theory_of_the_firm
The book _The People's Republic of Walmart_ by Leigh Phillips <sp?> and Michael Rozowski <sp?> makes a compelling argument why employing the same technologies companies use to manage supply chains and decision making on a state level could actually produce a working communist system.
Of course, we first would need to agree that this is desirable and that's probably the point where it breaks down.