Building proactive operation and maintenance system with CODE and LOG
State Grid Zhejiang Power Supply Co has developed a proactive operation and maintenance (O&M) system to address challenges brought by the rapid growth of new-type power systems. Traditional post-incident O&M approaches are no longer sufficient amid rising system complexity. To address these issues, the company has created an innovative dual-agent framework comprising CODE and LOG, enabling a transition from reactive to proactive O&M.
CODE, an intelligent code review agent, improves code quality during system construction. Powered by advanced models and a professional knowledge base, it identifies and resolves hidden vulnerabilities in Java source code, SQL statements, and open-source components. By enforcing stringent quality control at the source, CODE has significantly reduced system anomalies. For instance, it identified and addressed 72 high-risk issues during a major system upgrade, cutting system response latency by 60 percent. Since 2025, CODE has reviewed over 50 million lines of code and intercepted thousands of defects, preventing maintenance-induced anomalies.
LOG, an intelligent log analysis agent, ensures real-time system monitoring and early risk detection during operations. By analyzing data such as system metrics and access logs, LOG identifies performance degradation trends and traces root causes of anomalies within minutes. In one case, it detected hardware defects and stopped a potential large-scale failure during peak billing hours. Since its launch in 2026, LOG has issued 13 early warnings and prevented three major system anomalies, detecting all anomalies before users were affected.
Together, CODE and LOG form a comprehensive intelligent O&M system, integrating static quality control and dynamic real-time monitoring. This system has reduced State Grid Zhejiang’s failure rates by 45.5 percent and improved efficiency in root-cause localization. Moving forward, the company aims to enhance the agents’ capabilities and provide a scalable O&M framework to support the secure and stable operation of modern power systems across the industry.




