How Do Agentic AI Systems Deal With Software Energy Concerns? A Pull Request-Based Study
Tanjum Motin Mitul, Md. Masud Mazumder, Md Nahidul Islam Opu, Shaiful Chowdhury · 2025
Read How Do Agentic AI Systems Deal With Software Energy Concerns? A Pull Request-Based Study by Tanjum Motin Mitul, Md. Masud Mazumder, Md Nahidul Islam Opu, Shaiful Chowdhury (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2512-24636.txt.
Introduction
Tanjum Motin Mitul and three colleagues ask whether AI coding agents care about energy. Agents now write much software automatically. Their own training and running costs are large. Whether the code they produce is energy-aware was unclear. The team examines agent-authored pull requests from a public dataset. Energy-explicit changes were isolated for close study.
Two hundred sixteen pull requests made the cut. Thematic analysis produced a taxonomy of energy-aware work. The techniques applied mostly match established research advice. Encouragingly, agents do show energy awareness in their artifacts. A downside tempers the finding. Optimization pull requests are accepted less often than others. Reviewers cite harm to maintainability as the reason. The study maps both the promise and the friction of energy-aware agent coding.
Catalog record
| CREATOR | Tanjum Motin Mitul, Md. Masud Mazumder, Md Nahidul Islam Opu, Shaiful Chowdhury |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 21 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2512-24636
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
How Do Agentic AI Systems Deal With Software Energy Concerns? A Pull Request-Based Study Tanjum Motin Mitul, Md. Masud Mazumder, Md Nahidul Islam Opu, Shaiful Chowdhury Abstract . As Software Engineering enters its new era (SE 3.0), AI coding agents increasingly automate software development workflows. However, it remains unclear how exactly these agents recognize and address software energy concerns—an issue growing in importance due to large-scale data centers, energy-hungry language models, and battery-constrained devices. In this paper, we examined the energy awareness of agent-authored pull requests (PRs) using a publicly available dataset. We identified 216 energy-explicit PRs and conducted a thematic analysis, deriving a taxonomy of energy-aware work. Our further analysis of the applied optimization techniques shows that most align with established research recommendations. Although building and running these agents is highly energy-intensive, encouragingly, the results indicate that they exhibit energy awareness when generating software artifacts. However, optimization-related PRs are accepted less frequently than others, largely due to their negative impact on maintainability. 1. Introduction Energy consumption has become a core concern in software engineering due to its environmental, economic, and battery-life impacts ( 31 ) . Data centers consume a substantial amount of electricity, and the growing adoption of Large Language Models (LLMs) further increases compute demand and energy use, thereby raising operational costs and carbon emissions ( 30 ; 22 ; 4 ) . On the user side, energy-inefficient software shortens battery life in mobile and IoT devices, influencing device preferences ( 44 ; 53 ; 41 ) . In response, researchers and developers have long worked to reduce energy consumption at both the hardware and software levels ( 10 ; 43 ; 9 ) . This has become even more important as in the SE 3.0 era, AI systems frequently produce and submit code changes as standard artifacts ( 35 ; 28 ) , many times as GitHub pull requests (PRs). Therefore, the ability of these agents to recognize energy issues can influence real-world energy use at scale ( 19 ) . Recent studies have compared the energy efficiency of AI-generated code and human-generated code, finding that AI-generated code can often reduce energy consumption ( 52 ; 50 ) . However, it remains unclear how these AI agents explicitly address energy consumption and which techniques they employ to improve software energy efficiency. This understanding is crucial for training future coding agents to make them more energy-aware. This study addresses this research gap by investigating the following two research questions using the AIDev ( 35 ) dataset. RQ1: What aspects of energy concerns are considered by AI agents? After a rigorous manual annotation process, we identified 216 energy-explicit pull requests (PRs). We applied thematic analysis ( 18 ) on these PRs and developed a five-category taxonomy: Insight , Setup , Optimization , Trade-off , and Maintenance . RQ2: Which energy optimization techniques are followed by the AI agents? We extracted 21 optimization techniques employed by the coding agents in these pull requests and found that nearly all of these techniques align with research-based recommendations, suggesting that AI agents are well aware of effective energy optimization strategies. However, despite their potential, this category of PRs is accepted less frequently due to their impact on code maintainability, thus implying the importance of future research producing techniques that can make software artifacts (e.g., code) that are not only energy efficient but also maintainable. To enable replication, we share our data and code publicly. 1 1 1 https://github.com/SQMLab/LLM-energy 2. Related Works Prior work has extensively studied software energy concerns and optimization techniques. Cruz and Abreu ( 17 ) cataloged energy patterns by mining commits, issues, and PRs across Android and iOS apps, while Bao et al. ( 6 ) identified recurring power-management activities through repository mining. Li and Halfond ( 32 ) empirically evaluated common energy-saving practices, showing that some changes reduce energy use while others have a limited impact. Gottschalk et al. ( 26 ) proposed refactoring-based approaches validated through measurement. Additional work proposed mechanism-level optimizations, including display management ( 29 ) , GUI recoloring and optimization ( 33 ; 36 ) , network request batching ( 8 ; 45 ) , UI update batching ( 10 ) , and kernel-level improvements ( 15 ) . Pinto et al. ( 47 ) and Moura et al. ( 41 ) mined StackOverflow posts and GitHub code changes, respectively, identifying recurring energy-saving strategies and common pitfalls, but without focusing on agent-authored or AI-generated artifacts. More recently, researchers evaluated the energy efficiency of AI-assisted coding tools. Vartziotis et al. ( 52 ) assessed green code generation from tools such as Copilot, ChatGPT-3, and CodeWhisperer. Tuttle et al. ( 51 ) found that LLM-generated code often consumes more energy than human-written code. In contrast, Stivala et al. ( 50 ) showed that Copilot reduces energy consumption when explicitly prompted, highlighting trade-offs between objectives. However, these works did not examine which energy concerns the LLM-assisted agents address and how exactly they perform energy optimization. This understanding is crucial for making future AI agents more energy aware. 3. Methodology For this study, we utilized the all_pull_request subset of the AIDev ( 35 ) dataset (Zenodo v3 ( 34 ) ), which contains GitHub pull requests authored by five leading AI coding agents: Claude Code, Cursor, Devin, GitHub Copilot, and OpenAI Codex. We did not select the subset of popular projects only because that gives us only 41 energy-aware PRs, hindering the robustness of our analysis. For our qualitative analysis, we adopted the thematic analysis approach, which is common to discover themes from text and code ( 47 ; 2 ; 24 ; 41 ) . For this, we followed the guidelines of Cruzes et. al ( 18 ) —namely, reading and identifying relevant text segments, initial coding, generating themes and merging them to higher-level themes, and validation. To identify PRs related to energy consumption, we applied a keyword-based filtering strategy ( 47 ; 41 ; 6 ; 17 ) . A PR is selected if it contains at least one energy-related and one action-related term, where \textit{EnergyTerm}\in\{\textit{energy, power, battery}\} and \textit{ActionTerm}\in { consumption, efficiency, saving, optimization, leak, drain, time, profiling } ( 47 ; 41 ) . To capture different morphological variants of these terms (e.g., consume/consumed/consumption , efficient/efficiency , optimize/optimise ), we matched common term stems rather than exact word forms. All matching is performed in a case-insensitive manner on the content (titles and descriptions) of PRs. This filtering step yielded 1,295 candidate PRs. Keyword-based search, however, can produce many false positives ( 47 ; 41 ) . Therefore, we performed a manual evaluation to identify PRs that explicitly address energy consumption. The PR descriptions were written in Markdown and often are very long, making the manual analysis extremely challenging. To alleviate this issue, we developed a visualization tool 2 2 2 https://github.com/SQMLab/LLM-energy/tree/main/Annotely that renders PR content in a format similar to GitHub’s README view, and highlights the hit terms from our provided list, making it much faster to read relevant content. As an initial calibration step, the first and second authors (two grad students in software engineering) jointly labeled 30 PRs as “Energy” or “Not Energy” in a meeting with the last author, who has