An Agentic Framework for Automated Power System Studies and Grid Connection Assessment
Organizations: Grid Agents
Abstract
Connecting new generation and demand to the grid depends on two scarce skills: checking applications against a large, changing body of regulation, and running the network studies that decide where and how a project connects. We present Grid Agents, an AI system that brings both together, and the methodology we use to evaluate it. The Grid Ontology is its knowledge system. It represents the regulation, standards and engineering knowledge that grid work depends on, makes it searchable, and evolves as the agents learn from use. Every answer drawn from it rests on evidence the agents cite. Grid Studio is an agent system specialised for power-system engineering. It works in its own engineering environment with domain tools and a study framework, draws on the Grid Ontology, and relies on established solvers for every number it reports. In both, engineers make the decisions. We bring eight published power-system benchmark families, previously scattered across separate papers, into one suite of 519 tasks, and we verify not only each answer but the work behind it, by replaying the agent's tool calls. The Grid Ontology cites the right regulatory evidence more often than a general coding agent or retrieval pipelines, leads on LegalBench-RAG and ranks first on the public leaderboards of the Enterprise RAG Challenge and ViDoRe V3. Grid Studio scores highest on the 519 power-system tasks and is the fastest of all the systems we compare, both by a statistically significant margin. With an optimiser in the loop, its reinforcement packages cost 33-67% less on average than those the agent designs alone.
Figures & tables
| Kind | Holds |
|---|---|
| Semantic | Facts about the domain, an operator and its projects, and rules for responding |
| Procedural | Skills, which are written methods for a task such as a connection study |
| Episodic | Experiences and the lessons drawn from them |
| Benchmark | Developed by | What it tests | Depth | Items |
| Regulatory knowledge | ||||
| (Grid Ontology) | ||||
| GB Regulation Set | Grid Agents (this work) | Questions on GB grid regulation | R1–R3 | 45 |
| Enterprise RAG Challenge [ 55 ] | TimeToAct Austria | Questions on annual reports | R1–R3 | 100 |
| LegalBench-RAG [ 42 ] | ZeroEntropy, UC Berkeley (CUAD) | Exact clause spans in contracts | R4 | 50 |
| ViDoRe V3 [ 30 ] | Illuin Technology, NVIDIA | Pages of visually rich documents | R1–R3 | 2,419 |
| (a) Same model | GB Regulation Set | LegalBench-RAG | ||||||
| System | Recall | nDCG | MRR | Hit rate | Answer acc. | Precision | Recall | F1 |
| Grid Ontology | 0.967 | 0.945 | 0.944 | 0.978 | 1.000 | 0.980 | 0.980 | 0.980 ±0.030 |
| Claude Code (file tools) | 0.856 | 0.863 | 0.878 | 0.889 | 1.000 | 0.900 | 0.900 | 0.900 ±0.080 |
| Vector + reranker [ 24 , 47 , 37 ] | 0.922 | 0.917 | 0.933 | 0.956 | 0.889 | 0.820 | 1.000 | 0.869 ±0.057 |
| PageIndex [ 58 ] | 0.400 | 0.389 | 0.378 | 0.400 | 0.444 | 0.762 | 0.920 | 0.799 ±0.090 |
| MS GraphRAG [ 7 ] | 0.344 | 0.347 | 0.367 | 0.378 | 0.333 | – | – | – |
| System | Mean (%) | Median time (s) |
|---|---|---|
| Grid Studio | 0.1 † | 0.4 † |
| Codex CLI | 0.3 | 0.7 |
| Claude Code | 3.2 | 0.9 |
| Power-Agent | 0.3 | 0.5 |
| GPT-6.1 sol, base model | 2.9 | 10.6 |
| Fable 5.1, base model | 3.0 | 39.6 |
| Network | Project | Agent alone | With optimiser |
|---|---|---|---|
| 30-bus | 400 MW | 151.0 | 81.6 |
| 118-bus | 500 MW | 173.3 | 71.1 |
| 118-bus | 700 MW | 395.3 | 166.4 |
| 118-bus, three cases | 700 MW | 481.0 | 160.4 |
| 2,000-bus | 1,100 MW | 512.7 | 344.5 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Depth level | Question | Answer key |
| R1. Single passage | “In the RIIO-3 Final Determinations for Electricity Transmission, what are ‘user progression milestones’ as referenced in the CUSC?” | Conditional and Construction Progression Milestones |
| R2. Figure or table | “According to the G99 connection process diagram for Types A-D PGMs, how many sequential phases are shown in the flowchart, …?” | Six phases |
| R3. Several passages | “Under the Grid Code, … what is the post-fault voltage recovery level (Urec2) at tclear according to Figure ECC.6.3.15.7, and at what operating condition must the equipment be capable of satisfying the Fault Ride Through requirements …?” | 0.85 pu at 0.14 s, at rated MW and maximum leading power factor |
| R4. Clause spans | “Consider the Blockchain Administration and Development Agreement between ARCA U.S. Treasury Fund and ARCA Capital Management, LLC; What is the renewal term for this contract?” | A 605-character clause |
| L1. As given | “On the PEGASE 9241-bus, run DC power flow. What is the loading of transformer 1652 in percent?” | 976.22% |
| L2. Stated changes | On case118, scale the load at bus 7 by P 0.9705 and Q 1.0312 and the load at bus 56 by P 1.0881 and Q 0.9949, run an AC power flow and report the voltage magnitude at bus 79. | 1.009223 pu |
| System | Record checked | Work is verified when |
|---|---|---|
| Grid Studio | Its tool calls, replayed | A study of the required type ran on exactly the required state |
| Power-Agent | Every state its solver returned, logged in the sandbox | A logged state matches our own solution of each required network |
| Claude Code, Codex CLI | The solved states they report with their answer | Each required state matches our own solution of the required network |
| Base models | The solved states they report with their answer | As for Claude Code and Codex CLI |
| End-to-end score (%) | |||||||||
| System | PFBench | PF | PAB-SS | PSAB | PCB | PGLib | ProOPF | RL2Grid | Mean |
| Grid Studio | 100.0 0.0 | 100.0 0.0 | 100.0 0.0 | 100.0 0.0 | 99.2 0.9 | 100.0 0.0 | 100.0 0.0 | 100.0 0.0 | 99.9 0.1 |
| Coding agents and Power-Agent | |||||||||
| Codex CLI | 100.0 | 100.0 | 100.0 | 100.0 | 94.9 | 100.0 | 100.0 | 100.0 | 99.4 |
| Claude Code | 94.5 | 92.5 | 91.0 | 84.4 | 78.5 | 88.3 | 63.8 | 89.9 | 85.4 |
| Power-Agent | 100.0 | 97.9 | 100.0 | 100.0 | 97.5 | 100.0 | 100.0 | 100.0 | 99.4 |
| System | Configuration |
|---|---|
| Grid Studio | With its domain tools, memory off |
| Claude Code | CLI v2.1.289 on the same model as Grid Studio, with shell and Python (NumPy, SciPy) |
| Codex CLI | CLI v0.160.0 on GPT-6.1 sol, with shell and Python (NumPy, SciPy) |
| Power-Agent | Claude Code CLI v2.1.289 on the same model as Grid Studio, with PowerMCP 0.4.1, the PowerSkills playbooks as published, shell, Python and pandapower |
| GPT-6.1 sol | One completion, no tools, network as text in the prompt |
| Fable 5.1 | Claude Fable 5.1, one completion, no tools, network as text in the prompt |
| Span | Doc | |||
| System | P | R | F1 | F1 |
| Grid Ontology | 0.587 | 0.748 | 0.616 | 0.980 |
| Claude Code (file tools) | 0.570 | 0.679 | 0.561 | 0.900 |
| Recursive LM | – | – | 0.467 | 0.860 |
| Vector + reranker | 0.029 | 0.343 | 0.050 | 0.869 |
| PageIndex, official | 0.050 | 0.723 | 0.087 | 0.799 |
| nDCG@10 ( 100) | |||||
|---|---|---|---|---|---|
| Set | Ours | VAR | NeMo | JEV | Jina |
| Finance (EN) | 77.62 | 76.67 | 75.88 | 74.49 | 74.24 |
| Finance (FR) | 60.94 | 60.30 | 58.60 | 56.96 | 51.43 |
| Computer science | 85.60 | 84.81 | 84.49 | 84.01 | 83.46 |
| Human resources | 73.48 | 74.51 | 74.50 | 71.68 | 69.10 |
| Energy | 75.36 | 75.68 | 75.52 | 73.42 | 71.17 |
Power Systems
Power systems research studies the planning, operation, control, and protection of electrical grids and their integration with energy resources.
See all 242 papers