Reliable electricity has become an essential underpinning for national security in modern society. The fault-tolerant generic framework proposed herein can prevent potential outages from happening through intelligent agent coordination. Instead of limiting the system to manage existing devices, the developed system is adaptive to the future power grid in years to come. This paper proposes a hardware-in-the-loop multi-agent system with embedded models and functions