AgentDecarbonizer: Carbon-Aware Execution for AI Agents
Summary
AgentDecarbonizer is a carbon optimizer for AI agents that reduces carbon emissions by scheduling tasks to low-carbon periods or grids, leveraging deadline flexibility.
View Cached Full Text
Cached at: 08/24/26, 04:31 AM
# AgentDecarbonizer: Carbon-Aware Execution for AI Agents
Source: [https://arxiv.org/html/2608.20566](https://arxiv.org/html/2608.20566)
,Shuangning LiAddress:University of ChicagoandSihang LiuAddress:University of Waterloo
###### Abstract\.
AI agents extend large language models from single prompt\-response interactions to long\-running, goal\-directed workflows that issue many model calls, invoke tools, and interact with external environments\. These workflows enable tasks such as software repair, data analysis, and experiment management, but their repeated model invocations can incur substantial carbon emissions\. This paper characterizes the carbon emissions of OpenClaw agent workloads using WildClawBench, and shows that emissions depend on token consumption, context cache reuse, and the carbon intensity of the grid\. Our characterization identifies deadline flexibility as an opportunity for carbon\-aware execution: agent tasks can wait for lower\-carbon\-intensity periods or shift to lower\-carbon grids\. However, doing so requires handling uncertain execution time for temporal shifting and cached context recomputation during spatial shifting\. We present AgentDecarbonizer, a carbon optimizer for AI agents that runs alongside OpenClaw\. Given a task prompt and user\-specified deadline, AgentDecarbonizer conservatively estimates task duration and selects deadline\-feasible execution schedules, while accounting for cache recomputation overhead during spatial shifting\. Evaluated on WildClawBench workloads with 60 agent tasks across four grids, AgentDecarbonizer reduces carbon emissions by up to 57\.9 % compared with a carbon\-agnostic baseline and by up to 37\.5 % compared with a baseline that selects the carbon\-optimal grid at task start time\.
## 1\.Introduction
AI agents extend large language models \(LLMs\) from single prompt\-response interactions into autonomous, goal\-directed workflows\. Given a high\-level task, an agent plans intermediate steps, invokes model APIs and external tools, and refines its execution based on intermediate observations\[[89](https://arxiv.org/html/2608.20566#bib.bib10),[72](https://arxiv.org/html/2608.20566#bib.bib74),[79](https://arxiv.org/html/2608.20566#bib.bib30)\]\. This execution model enables long\-running tasks such as software repair, data analysis, and machine learning experimentation to proceed with limited user intervention\[[87](https://arxiv.org/html/2608.20566#bib.bib7),[35](https://arxiv.org/html/2608.20566#bib.bib2),[34](https://arxiv.org/html/2608.20566#bib.bib75)\]\. For example, OpenAI recently introduced scheduled tasks which have flexible deadlines\[[61](https://arxiv.org/html/2608.20566#bib.bib99)\]\. Unlike traditional LLM queries, an agent task may expand into many model calls, tool invocations, and environmental interactions\. These agent workloads have been supported by dedicated platforms\[[25](https://arxiv.org/html/2608.20566#bib.bib82),[56](https://arxiv.org/html/2608.20566#bib.bib80),[5](https://arxiv.org/html/2608.20566#bib.bib81)\]and OpenClaw is a representative open\-source example\[[63](https://arxiv.org/html/2608.20566#bib.bib78)\]\. Agent execution also differs from conventional LLM workloads through repeated reuse of context across model invocations\[[92](https://arxiv.org/html/2608.20566#bib.bib17),[98](https://arxiv.org/html/2608.20566#bib.bib4),[40](https://arxiv.org/html/2608.20566#bib.bib6),[75](https://arxiv.org/html/2608.20566#bib.bib3)\]\. Because agents maintain states such as task goals, conversation history, and tool outputs throughout execution, modern LLM serving systems use context caching to avoid recomputing shared context and reduce inference overhead\[[60](https://arxiv.org/html/2608.20566#bib.bib87),[21](https://arxiv.org/html/2608.20566#bib.bib63),[6](https://arxiv.org/html/2608.20566#bib.bib88),[26](https://arxiv.org/html/2608.20566#bib.bib89),[8](https://arxiv.org/html/2608.20566#bib.bib91)\]\.
While autonomous agents enable complex task processing, their multi\-step execution introduces substantial computational demands\. To characterize these workloads, we analyze OpenClaw using WildClawBench\[[13](https://arxiv.org/html/2608.20566#bib.bib1)\], a benchmark suite of 60 realistic agent tasks across six categories, such as productivity and coding\. We observe that agent execution is highly diverse, exhibiting significant variations in execution time, API calls, and token consumption\. Moreover, these workloads are input\-heavy, with input tokens accounting for 99\.1% of all processed tokens\. This makes context caching highly critical, as cached input tokens eliminate recomputation for 94\.6% of input tokens\.
Their computation\-intensive workload characteristics also have sustainability implications\. Serving large\-scale AI models leads to high carbon emissions\[[16](https://arxiv.org/html/2608.20566#bib.bib38),[37](https://arxiv.org/html/2608.20566#bib.bib95),[19](https://arxiv.org/html/2608.20566#bib.bib49)\]\. The long\-running and intensive execution of autonomous agents further amplifies this impact\. We model the energy consumption of AI agents based on prior studies\[[38](https://arxiv.org/html/2608.20566#bib.bib54),[4](https://arxiv.org/html/2608.20566#bib.bib55),[16](https://arxiv.org/html/2608.20566#bib.bib38)\]and vendor API pricing\[[59](https://arxiv.org/html/2608.20566#bib.bib84),[27](https://arxiv.org/html/2608.20566#bib.bib85)\], extending existing per\-prompt energy measurements into per\-token estimates for input, output, and cached input tokens\. We then convert the estimated energy consumption into carbon emissions using the carbon intensity of the grid \(in units ofgCO2e/kWh\{\\rm gCO\\textsubscript\{2\}e/kWh\{\}\}\)—a factor that varies across locations and over time with the energy generation mix\[[76](https://arxiv.org/html/2608.20566#bib.bib35),[51](https://arxiv.org/html/2608.20566#bib.bib57)\]\. For example, executing WildClawBench on the CISO grid \(California, USA\) on Feb 24, 2026 is estimated to emit 6\.6 kgCO2e, equivalent to driving a passenger vehicle for approximately25km25\\text\{\\,\}\\mathrm\{km\}\[[18](https://arxiv.org/html/2608.20566#bib.bib56)\]\. These emissions can become substantial when agents are deployed at scale, motivating carbon emission optimizations for AI agents\.
Because carbon intensity varies across time and locations, existing carbon\-aware optimization techniques reduce emissions by shifting workloads to lower\-carbon periods and regions\[[69](https://arxiv.org/html/2608.20566#bib.bib58),[31](https://arxiv.org/html/2608.20566#bib.bib59),[78](https://arxiv.org/html/2608.20566#bib.bib76),[84](https://arxiv.org/html/2608.20566#bib.bib60)\]\. However, these techniques do not directly address the unique execution characteristics of AI agents\. First, agent execution duration is uncertain because later steps may depend on earlier model outputs, tool results, and interactions with external environments\. Meanwhile, user\-specified deadlines must be met rather than indefinitely deferring execution for lower\-carbon periods\. Second, reusable context caches are critical for agent execution\. In our characterization, context caching reduces carbon emissions by 80\.7 %\. Maintaining agent execution in the same location can preserve these cached contexts, which is usually assumed by serving systems\[[67](https://arxiv.org/html/2608.20566#bib.bib61),[29](https://arxiv.org/html/2608.20566#bib.bib90),[8](https://arxiv.org/html/2608.20566#bib.bib91)\]\. In contrast, shifting execution to another grid can lose cache and require recomputing previously cached inputs, adding extra emissions\. As a result, spatial shifting is not always beneficial: the grid with the lowest carbon intensity may not yield the lowest total emissions once the cache recomputation overhead is considered\.
To address these practical challenges, we present AgentDecarbonizer, a carbon optimization tool for autonomous AI agents on OpenClaw\. Given a task prompt and user\-specified deadline, AgentDecarbonizer runs alongside OpenClaw to estimate task duration, forecast carbon intensity, and select deadline\-feasible execution schedules across time and grids\. To handle uncertain agent execution time, we design an execution time estimator based on a lightweight Gemma 4 4B model\[[42](https://arxiv.org/html/2608.20566#bib.bib15)\]that runs on the local device\. It begins with a conservative duration estimate based on the task phases and their complexity, and refines the remaining\-duration estimate during execution using the OpenClaw agent’s progress, API\-call statistics, and observed tool usage\. This allows the agent task to wait for lower\-carbon periods when there is enough time and to fall back to immediate execution when the deadline is tight\.
To account for the impact of caching during spatial workload shifting, AgentDecarbonizer estimates the recomputation overhead using model token statistics\. It performs grid shifting only when the expected carbon reduction exceeds this cache overhead\. We formulate this cache\-aware optimization problem under a deadline constraint and derive a dynamic\-programming solution based on the observation that future cache costs depend solely on the previous execution location\.
We evaluate AgentDecarbonizer on top of OpenClaw\[[63](https://arxiv.org/html/2608.20566#bib.bib78)\], a representative open\-source agent system, using a lightweight Mac mini to run the local OpenClaw client\. The agent invokes GPT\-5\.4 as the remote model API, and we run 60 WildClawBench tasks spanning six categories\. While this work targets OpenClaw, the optimization strategies are broadly applicable to other agent systems\. We construct six long\-running workloads by composing tasks within the same category\. The evaluation uses carbon intensity traces from four grids and workload deadlines ranging from 3 hours to 24 hours\. We compare AgentDecarbonizer against two baselines: a carbon\-agnostic baseline that uses the average emissions across all four grids and a current\-optimal baseline that selects the grid with the lowest carbon intensity at the workload start time\. The evaluation shows that, with a flexible 24\-hour deadline, AgentDecarbonizer reduces carbon emissions by 57\.9 % over the average baseline and 37\.5 % over the current\-optimal baseline\. Even under a tighter 3\-hour deadline, AgentDecarbonizer reduces carbon emissions by 34\.9 % over the average baseline and 3\.3 % over the current\-optimal baseline\.
This paper makes the following contributions:
- •To the best of our knowledge, this is the first work to systematically study the carbon emissions of AI agents and optimize carbon using methods tailored to their execution characteristics\.
- •We systematically characterize the carbon emissions of AI agent workloads on OpenClaw, and identify the key factors that affect their emissions\.
- •We design AgentDecarbonizer, a carbon optimizer for AI agents that estimates agent duration and progress, forecasts regional carbon intensity, and selects deadline\-feasible low\-carbon execution plans with cache\-aware grid shifting decisions\.
- •We evaluate AgentDecarbonizer using AI agent workloads from WildClawBench and demonstrate that it always meets workload deadlines while achieving up to 57\.9 % carbon emission savings compared to a carbon\-agnostic baseline under a flexible 24\-hour deadline\.
## 2\.Background and Motivation
In this section, we introduce autonomous AI agents, OpenClaw, and carbon emission accounting\.
### 2\.1\.Large Language Models
Recent advances in large language models \(LLMs\) have demonstrated powerful capabilities in natural language understanding, logical reasoning, and code generation\. LLM inference typically consists of two execution phases:prefillanddecode\. During theprefillphase, the model processes the entire user prompt and context in a single, parallel forward pass\. Subsequently, during thedecode phase, the model generates output tokens autoregressively\. Because of the different execution patterns, the prefill phase iscompute\-boundwhile the decode phase ismemory\-bound\. There have been various system\-level optimizations that improve the efficiency of AI model serving\[[41](https://arxiv.org/html/2608.20566#bib.bib72),[91](https://arxiv.org/html/2608.20566#bib.bib68),[2](https://arxiv.org/html/2608.20566#bib.bib13),[96](https://arxiv.org/html/2608.20566#bib.bib67),[66](https://arxiv.org/html/2608.20566#bib.bib73)\]\. Notably, one class of techniques employs context caching, which reuses precomputed Key\-Value \(KV\) states for shared prompts across requests, thereby avoiding repeated prefill computation\. This allows future prompts or multi\-turn queries with shared or similar context to reuse cached computation\[[90](https://arxiv.org/html/2608.20566#bib.bib66),[85](https://arxiv.org/html/2608.20566#bib.bib65),[21](https://arxiv.org/html/2608.20566#bib.bib63)\]\. As LLMs become more capable and widely used, serving them requires substantial computational resources\. As a result, deploying these advanced models is particularly compute\-intensive, requiring high\-end GPUs or AI accelerators\.
### 2\.2\.Autonomous AI Agents
Advances in LLMs have enabled autonomous AI agents, which extend conventional chatbot\-style prompt\-response interactions into goal\-directed workflows\. Instead of requiring the user to repeatedly issue instructions and interpret each response, an agent begins with an initial request that specifies the goal, requirements, and expected outcome\. It can plan actions, invoke tools, interact with external environments, validate intermediate results, and retry failed steps before producing the final outcome\. As a result, the user can wait for the completed result without monitoring intermediate steps, which provides greater flexibility in execution scheduling\[[56](https://arxiv.org/html/2608.20566#bib.bib80),[39](https://arxiv.org/html/2608.20566#bib.bib5),[98](https://arxiv.org/html/2608.20566#bib.bib4),[13](https://arxiv.org/html/2608.20566#bib.bib1)\]\. For example, OpenAI’s Scheduled Tasks feature allows agent workflows to be executed with flexible schedules and deadlines\[[61](https://arxiv.org/html/2608.20566#bib.bib99)\]\. Representative tasks include code repository analysis, large\-scale document comprehension, data analysis, and software development\. This shift from user\-guided, prompt\-by\-prompt interactions to goal\-directed workflows in realistic task environments is also reflected in recent AI agent studies\[[98](https://arxiv.org/html/2608.20566#bib.bib4),[39](https://arxiv.org/html/2608.20566#bib.bib5),[47](https://arxiv.org/html/2608.20566#bib.bib9),[13](https://arxiv.org/html/2608.20566#bib.bib1),[75](https://arxiv.org/html/2608.20566#bib.bib3),[92](https://arxiv.org/html/2608.20566#bib.bib17)\]\.
Figure 1\.Example of an autonomous AI agent workflow on the OpenClaw platform\[[63](https://arxiv.org/html/2608.20566#bib.bib78)\]\.
### 2\.3\.OpenClaw
Recently, autonomous agent capabilities have been integrated into systems from major AI service providers, such as Codex\[[56](https://arxiv.org/html/2608.20566#bib.bib80)\], Claude Code\[[5](https://arxiv.org/html/2608.20566#bib.bib81)\], and Antigravity\[[25](https://arxiv.org/html/2608.20566#bib.bib82)\]\. While these proprietary systems primarily target coding and software development, OpenClaw has emerged as a popular open\-source autonomous agent system designed for more general tasks\[[63](https://arxiv.org/html/2608.20566#bib.bib78)\]\. OpenClaw serves as a workload harness that connects user requests, agent actions, external tools, and backend model APIs\. Through provider\-specific adapters, OpenClaw can invoke different model APIs, such as GPT and Gemini, while keeping the agent runtime largely independent of the underlying model service\[[62](https://arxiv.org/html/2608.20566#bib.bib79)\]\. These model APIs can also return request\-level metadata, such as input, output, and cached token counts, alongside the generated response\[[57](https://arxiv.org/html/2608.20566#bib.bib86)\]\. Such metadata provides visibility into agent execution behavior and resource usage\.[Figure1](https://arxiv.org/html/2608.20566#S2.F1)illustrates an OpenClaw workflow adapted from one task in WildClawBench\[[13](https://arxiv.org/html/2608.20566#bib.bib1)\]\. In this example, the task is to summarize papers related to a specific topic\. OpenClaw coordinates planning, remote model reasoning, and tool\-based data retrieval and processing before returning the final result\.
### 2\.4\.Carbon Accounting in Computing
Carbon emissions of LLM\-based systems have already attracted attention from both academia and industry\[[19](https://arxiv.org/html/2608.20566#bib.bib49),[46](https://arxiv.org/html/2608.20566#bib.bib53),[16](https://arxiv.org/html/2608.20566#bib.bib38),[37](https://arxiv.org/html/2608.20566#bib.bib95)\]\. Autonomous agent platforms such as OpenClaw can further amplify this impact\. Their workflows often involve repeated model invocations and tool calls, increasing token consumption and execution time\. This motivates carbon\-aware analysis for agent workloads\.
In this section, we introduce the basic carbon accounting background for computing systems\.[Section3](https://arxiv.org/html/2608.20566#S3)then focuses on carbon accounting for AI agent systems\. Carbon accounting estimates the greenhouse gas emissions associated with completing a computing task\. Emissions from different sources are commonly translated into a shared unit, CO2equivalent \(gCO2e\), which allows their climate impact to be compared consistently\. In computing systems, carbon emissions are often divided into operational and embodied components\. Operational carbon captures the runtime emissions caused by electricity consumed during workload execution:
\(1\)Co=E×CI,C\_\{o\}=E\\times\{\\rm CI\},whereEEdenotes the workload energy consumption andCI\{\\rm CI\}denotes the average carbon intensity of the electricity supplied by the grid\. When expressed inkWh\\mathrm\{k\}\\mathrm\{W\}\\mathrm\{h\}and gCO2e/kWh, respectively,CoC\_\{o\}is measured in gCO2e\. This model is commonly used for carbon accounting in computing systems\[[32](https://arxiv.org/html/2608.20566#bib.bib48),[19](https://arxiv.org/html/2608.20566#bib.bib49),[74](https://arxiv.org/html/2608.20566#bib.bib51),[46](https://arxiv.org/html/2608.20566#bib.bib53)\]\.
Computing systems also incur embodied carbon from the manufacturing processes of their components, such as CPUs, GPUs, memory, and storage\. Lifecycle accounting frameworks often amortize these emissions over the hardware lifetime and allocate a fraction to each workload based on execution time or resource usage\[[32](https://arxiv.org/html/2608.20566#bib.bib48)\]\. Embodied carbon is therefore important for full lifecycle assessments of AI infrastructure\. This paper targets carbon optimization through runtime execution decisions, such as when and where remote model API calls are executed\. These decisions directly affect operational carbon through workload energy consumption and grid carbon intensity, but they do not directly change the manufacturing emissions of the underlying hardware\. Therefore, this work focuses on optimizing operational carbon\.
GridRegionAvg CIMajor Energy SourcesATAustria164Hydro, wind, gas, solarCISOCalifornia, USA208Solar, gas, wind, hydroFIFinland68Nuclear, wind, hydroGBGreat Britain174Wind, gas, nuclearTable 1\.Average carbon intensity \(CI, gCO2e/kWh\) and major energy sources of different grids in 2025\[[15](https://arxiv.org/html/2608.20566#bib.bib44)\]\.
Figure 2\.Carbon intensity on Feb 24, 2026\.
A key factor of operational carbon is carbon intensity, which links energy use to carbon emissions\.[Table1](https://arxiv.org/html/2608.20566#S2.T1)lists four grids and their average carbon intensity in 2025 using data from Electricity Maps\[[15](https://arxiv.org/html/2608.20566#bib.bib44)\]\. Carbon intensity varies across regions because electricity grids rely on different energy generation mixes\. Grids with larger shares of renewable energy, such as wind, solar, and hydro, generally have lower carbon intensity than grids that depend heavily on fossil fuels\. Carbon intensity also varies over time within the same region as the generation mix changes\. For example, increased solar generation during the day reduces carbon intensity\.[Figure2](https://arxiv.org/html/2608.20566#S2.F2)shows the dynamics of carbon intensity for each grid in a day\. Because of the dynamics of carbon intensity, carbon\-aware systems can reduce emissions by shifting computation across time or regions\[[76](https://arxiv.org/html/2608.20566#bib.bib35),[30](https://arxiv.org/html/2608.20566#bib.bib70),[93](https://arxiv.org/html/2608.20566#bib.bib36),[33](https://arxiv.org/html/2608.20566#bib.bib46),[1](https://arxiv.org/html/2608.20566#bib.bib71),[45](https://arxiv.org/html/2608.20566#bib.bib39)\]\.
## 3\.Carbon Emissions of AI Agents
In this section, we describe a carbon accounting method for AI agents and then provide estimates of per\-token carbon emissions\.
### 3\.1\.Carbon Accounting Method for AI Agents
As introduced in[Section2\.3](https://arxiv.org/html/2608.20566#S2.SS3), AI agent systems like OpenClaw split execution between a local user device and remote model APIs\. The local device provides the user interface and runs lightweight control logic, while computationally intensive model inference is delegated to the remote API service\. This execution model introduces two sources of operational carbon: local execution on the user device and remote execution by the model API service\. For the workloads considered in this paper, the local component is lightweight compared with remote LLM inference\[[73](https://arxiv.org/html/2608.20566#bib.bib83)\]and largely independent of the remote model API\. Therefore, local operational carbon acts mainly as a common background component, while remote API operational carbon is the major contributor to carbon emissions and therefore the primary optimization target\.
Following the accounting scope defined in[Section2\.4](https://arxiv.org/html/2608.20566#S2.SS4), we focus on the operational carbonCCof the remote model service\. We refer to each time block of lengthΔt\\Delta tas an interval, and usettto denote its start time\. For a task whose remote API calls may be served by different grids over its execution period, we calculate
\(2\)C=∑r∑tEr,t×CIr,t,C=\\sum\_\{r\}\\sum\_\{t\}E\_\{r,t\}\\times CI\_\{r,t\},whererrrefers to the grid,Er,tE\_\{r,t\}is the energy consumed by remote API execution served by gridrrduring interval\[t,t\+Δt\)\[t,t\+\\Delta t\), andCIr,tCI\_\{r,t\}is the corresponding average carbon intensity\. This time\- and grid\-dependent accounting method captures the operational carbon associated with serving the remote model of an AI agent task\. This accounting formulation forms the basis of our optimization problem, which uses the same interval convention\.
### 3\.2\.Energy Consumption Estimate
As described in[Equation2](https://arxiv.org/html/2608.20566#S3.E2), energy consumption and real\-time carbon intensity are the two primary factors in carbon emission calculation\. Carbon intensity has been widely studied, and databases are available for querying real\-time carbon intensity across grids\[[80](https://arxiv.org/html/2608.20566#bib.bib40),[14](https://arxiv.org/html/2608.20566#bib.bib41),[17](https://arxiv.org/html/2608.20566#bib.bib42),[15](https://arxiv.org/html/2608.20566#bib.bib44)\]\. Therefore, the main challenge is to estimate the energy consumption of AI agents\.
We begin with public data from prior studies and blog posts that have estimated the carbon emissions of serving AI models\[[16](https://arxiv.org/html/2608.20566#bib.bib38),[4](https://arxiv.org/html/2608.20566#bib.bib55),[38](https://arxiv.org/html/2608.20566#bib.bib54)\]\. These studies span both lightweight chatbot applications and complex tasks such as reasoning\. For example, Sam Altman’s blog mentions that a ChatGPT query consumes0\.34Wh0\.34\\text\{\\,\}\{\\mathrm\{W\}\\mathrm\{h\}\}of energy on average\[[4](https://arxiv.org/html/2608.20566#bib.bib55)\]and Google’s study shows that the median energy consumption of a Gemini application is0\.24Wh0\.24\\text\{\\,\}\{\\mathrm\{W\}\\mathrm\{h\}\}\[[16](https://arxiv.org/html/2608.20566#bib.bib38)\]\. As AI agent tasks typically use high\-capability models and process long contexts, we focus on estimating energy consumption in such scenarios, based on a recent study of the energy consumption of the OpenAI API\[[38](https://arxiv.org/html/2608.20566#bib.bib54)\]\. Specifically, their long, high\-reasoning GPT\-5 configuration assumes10 00010\\,000input tokens and15001500output tokens, with a reported energy consumption of33\.8Wh33\.8\\text\{\\,\}\{\\mathrm\{W\}\\mathrm\{h\}\}per prompt\. Since this study reports energy only at the prompt level, we use a simple effective per\-token model:
\(3\)Eprompt=einNin\+eoutNout,E\_\{\\mathrm\{prompt\}\}=e\_\{\\mathrm\{in\}\}N\_\{\\mathrm\{in\}\}\+e\_\{\\mathrm\{out\}\}N\_\{\\mathrm\{out\}\},whereeine\_\{\\mathrm\{in\}\}andeoute\_\{\\mathrm\{out\}\}are the per\-token input and output energy, andNinN\_\{\\mathrm\{in\}\}andNoutN\_\{\\mathrm\{out\}\}are the corresponding numbers of input and output tokens\.
Based on typical metadata for token usage reported by AI service APIs, such as OpenAI’s response usage fields for input, output, and cached tokens\[[57](https://arxiv.org/html/2608.20566#bib.bib86),[60](https://arxiv.org/html/2608.20566#bib.bib87)\], we divide tokens into three categories:output tokens,input tokens, andcached input tokens, where cached input tokens benefit from context caching as introduced in[Section2\.1](https://arxiv.org/html/2608.20566#S2.SS1)\.
Since the prior study focuses on individual prompts without caching, we first split the reported energy between input and output tokens\. API pricing typically reflects the computational cost of model serving\. Therefore, motivated by OpenAI’s API pricing, where output tokens are priced at 6 times the input token price for GPT\-5\-class models\[[59](https://arxiv.org/html/2608.20566#bib.bib84)\], we assume that output tokens consume 6 times the energy of input tokens, i\.e\.,eout=6eine\_\{\\mathrm\{out\}\}=6e\_\{\\mathrm\{in\}\}\. This yields
\(4\)ein=0\.00178Wh/token,eout=0\.01067Wh/token\.\\displaystyle e\_\{\\mathrm\{in\}\}=0\.00178\\ \\mathrm\{Wh/token\},\\quad e\_\{\\mathrm\{out\}\}=0\.01067\\ \\mathrm\{Wh/token\}\.For cached input tokens, we again use their price relative to regular input tokens, i\.e\., 10 % of the regular input token price\[[59](https://arxiv.org/html/2608.20566#bib.bib84)\], leading to
\(5\)ein,cache=0\.000178Wh/token\.e\_\{\\mathrm\{in,cache\}\}=0\.000178\\ \\mathrm\{Wh/token\}\.
Table 2\.WildClawBench tasks and categories\[[13](https://arxiv.org/html/2608.20566#bib.bib1)\]\.Category\# TasksExample tasksProductivity Flow10Paper digest, PDF analysisCode Intelligence12Website development, code debuggingSocial Interaction6Chat extraction, calendar schedulingSearch & Retrieval11Data collection, fuzzy searchCreative Synthesis11Slides generation, posters generationSafety Alignment10Skill injection filtering, password leak detection
## 4\.Characterization of AI Agent Workloads
Although prior studies have characterized various AI agent workloads\[[47](https://arxiv.org/html/2608.20566#bib.bib9),[98](https://arxiv.org/html/2608.20566#bib.bib4),[39](https://arxiv.org/html/2608.20566#bib.bib5),[94](https://arxiv.org/html/2608.20566#bib.bib16),[92](https://arxiv.org/html/2608.20566#bib.bib17),[11](https://arxiv.org/html/2608.20566#bib.bib18),[9](https://arxiv.org/html/2608.20566#bib.bib21)\], their carbon emissions have not been well studied\. Therefore, we characterize OpenClaw workloads from a carbon emission perspective and summarize the key workload properties that motivate carbon\-aware optimizations as takeaways\.
### 4\.1\.Characterization Methodology
We use OpenClaw with GPT\-5\.4 model API to run representative AI agent tasks and collect their execution statistics for characterization\. The workloads are based on WildClawBench\[[13](https://arxiv.org/html/2608.20566#bib.bib1)\], a benchmark suite that contains a total of 60 AI agent tasks spanning 6 categories: productivity flow, code intelligence, social interaction, search and retrieval, creative synthesis, and safety alignment\.[Table2](https://arxiv.org/html/2608.20566#S3.T2)lists the number of tasks in each category together with a few representative tasks\. The carbon intensity data covers the four grids in[Table1](https://arxiv.org/html/2608.20566#S2.T1)with a granularity of15min15\\text\{\\,\}\\mathrm\{min\}\. Note that the characterization focuses on analyzing the agent workload behaviors; detailed evaluation methodologies are discussed in[Section8\.1](https://arxiv.org/html/2608.20566#S8.SS1)\.
Figure 3\.Execution time and number of API calls \(log scale\) for WildClawBench tasks\.Figure 4\.Token consumption \(log scale\) and cache hit rates of WildClawBench tasks\.
### 4\.2\.Performance Characterization
We first evaluate the execution time of agent tasks\.[Figure4](https://arxiv.org/html/2608.20566#S4.F4)plots the execution time of all 60 tasks across six categories on the left y\-axis using a log scale\. Each task is labeled with a unique task ID on the x\-axis\. We observe that agent tasks differ substantially in execution time\. Unlike a single user prompt, an agent task may expand into a variable sequence of model API calls, tool invocations, observations, retries, and validation steps\. As a result, more complex and challenging tasks generally take longer to complete\. For example, tasks in the code intelligence category are often more complex because they involve repeated testing and validation\.
To better understand how OpenClaw interacts with the model API, we also plot the number of API calls on the right y\-axis using a log scale\. Different tasks require substantially different numbers of API calls\. For example, some simple tasks in safety alignment, such as tasks 6\.4–6\.9, require no more than 8 API calls, while others require up to 103 calls \(task 2\.1 in code intelligence\)\. Despite this variation, execution time is largely consistent with the number of API calls\.
We next analyze the number of tokens consumed by the agents\.[Figure4](https://arxiv.org/html/2608.20566#S4.F4)presents the input, output, and cached input tokens for all tasks \(left y\-axis on a log scale\) and cache hit rates \(right y\-axis on a linear scale\)\. We observe that agent tasks are generally input\-heavy \(i\.e\., prefill\-heavy\): input tokens dominate the total token count across tasks \(99\.1 %\), while output tokens account for a much smaller fraction \(0\.9 %\)\. A large portion of these input tokens \(94\.6 %\) are cached input tokens, indicating frequent context reuse across repeated model API calls in agent workflows\. This observation is also consistent with recent studies on AI agents\[[94](https://arxiv.org/html/2608.20566#bib.bib16),[92](https://arxiv.org/html/2608.20566#bib.bib17),[11](https://arxiv.org/html/2608.20566#bib.bib18)\]\. Overall, token consumption is largely consistent with execution time and the number of API calls\. However, it still varies substantially across tasks, ranging from 52k \(task 6\.5 in safety alignment\) to 8\.4M \(task 2\.1 in code intelligence\) tokens, indicating that agent tasks impose highly diverse demands on model API services\.
Takeaway 1: AI agent resource consumption variesAgent tasks vary widely in execution time, model API calls, and token consumption\. Because these tasks are usually input\-heavy, most input tokens hit the context cache\. Carbon\-aware optimizations need to account for execution time in order to meet user\-specified deadlines\.
### 4\.3\.Carbon Emission Characterization
Figure 5\.Carbon emissions \(log scale\) and savings from cache \(linear scale\) of WildClawBench tasks\. Tasks start in CISO at 00:00 UTC on Feb 24, 2026\.Figure 6\.Carbon emissions from executing all WildClawBench tasks across regions and start times of Feb 24, 2026\.
We further study the carbon emissions of AI agent workloads using the estimated per\-token energy consumption described in[Section3\.2](https://arxiv.org/html/2608.20566#S3.SS2)\.[Figure6](https://arxiv.org/html/2608.20566#S4.F6)shows the corresponding carbon emissions from input, output, and cached input tokens for all tasks, using the left y\-axis on a log scale\. Because carbon intensity is grid\- and time\-dependent, we assume that the model is served in the CISO grid on Feb 24, 2026, and that each task starts at 00:00 UTC\. Although output tokens have higher per\-token carbon emissions, input tokens dominate the overall emissions because these agent tasks are input\-heavy\. On average, input tokens, including cached input tokens, contribute 72\.8 % of carbon emissions, while output tokens contribute 27\.2 %\. The total carbon emissions from executing the full WildClawBench are 6\.6 kgCO2e\. At scale, these emissions are substantial\.
Takeaway 2: AI agents lead to high carbon emissionsAgent tasks lead to significant carbon emissions\. As agent tasks are mainly input\-heavy, input tokens account for the majority of carbon emissions\.
[Section2\.4](https://arxiv.org/html/2608.20566#S2.SS4)shows that carbon emissions depend on both grid energy mix and execution time\. Therefore, we study carbon emissions when serving AI models across different grids and at different times\.[Figure2](https://arxiv.org/html/2608.20566#S2.F2)shows 24\-hour carbon intensity traces for four grids on Feb 24, 2026, whose curves interleave throughout the day\. Each grid follows a different carbon intensity trend because of differences in its energy mix\. Accordingly,[Figure6](https://arxiv.org/html/2608.20566#S4.F6)presents a heatmap of the corresponding carbon emissions from executing the full WildClawBench at different times of day across the four grids\. Because the carbon intensity curves interleave, the carbon\-optimal grid for executing the AI agent workload changes over time\.
Takeaway 3: Location and time matterDespite the high carbon emissions, the emission numbers are highly dependent on the grid where the AI model is deployed and the time when the task starts\. This implies potential carbon mitigation opportunities through geographic and temporal shifting of workloads, subject to task deadlines\.
Performance characterization in[Section4\.2](https://arxiv.org/html/2608.20566#S4.SS2)shows that a large fraction of input tokens benefit from caching\.[Figure6](https://arxiv.org/html/2608.20566#S4.F6)shows the fraction of carbon emissions saved by caching on the right y\-axis on a linear scale\. Because the carbon\-savings percentage is normalized, it does not depend on the grid or execution time\. On average, context caching saves 80\.7 % of the total carbon emissions, which is consistent with the high input token cache hit rate of 94\.6 %\.
Takeaway 4: Context caching is criticalContext caching is critical to reducing carbon emissions, especially for input\-heavy agent tasks\. Carbon emission optimizations should therefore consider the impact of caching\.
## 5\.High\-Level Ideas
In this work, we introduce AgentDecarbonizer, a carbon optimizer for AI agent tasks on OpenClaw\. Prior work on carbon\-aware optimizations commonly reduces emissions by delaying workloads to lower\-carbon\-intensity periods and/or by shifting them across locations\[[81](https://arxiv.org/html/2608.20566#bib.bib34),[76](https://arxiv.org/html/2608.20566#bib.bib35),[30](https://arxiv.org/html/2608.20566#bib.bib70),[1](https://arxiv.org/html/2608.20566#bib.bib71),[43](https://arxiv.org/html/2608.20566#bib.bib45),[33](https://arxiv.org/html/2608.20566#bib.bib46),[45](https://arxiv.org/html/2608.20566#bib.bib39)\]\. However, applying carbon\-aware workload shifting to autonomous agents introduces two key challenges: \(1\) agent workloads need to meet user\-specified deadlines while deferring execution, and \(2\) spatial shifting must balance cache overhead against the lower carbon intensity of other grids\.
### 5\.1\.Deadline and Progress Awareness
Challenge\.Temporal shifting can reduce emissions by deferring agent workloads to low\-carbon\-intensity periods\. However, the key challenge is determining whether deferred execution can still finish before the user\-specified deadline\. Such estimates are difficult because agent execution is iterative and highly dynamic\. Each model API call or tool query depends on previous results and may change upon planning decisions, tool calls, external observations, and retries, causing substantial variation in execution time and token usage\[[89](https://arxiv.org/html/2608.20566#bib.bib10),[52](https://arxiv.org/html/2608.20566#bib.bib19),[83](https://arxiv.org/html/2608.20566#bib.bib20),[9](https://arxiv.org/html/2608.20566#bib.bib21)\]\.
Solution\.Agent executions are typically divided into steps, where each step involves remote model API calls, tool usage, and other interactions with the environment\[[89](https://arxiv.org/html/2608.20566#bib.bib10),[47](https://arxiv.org/html/2608.20566#bib.bib9)\]\. Based on this property, AgentDecarbonizer first generates a conservative initial duration estimate before execution begins using the user’s prompt and factors such as expected steps, step complexity, and model generation speed\. As execution proceeds, AgentDecarbonizer refines this estimate in flight by collecting progress observations after each step\. These observations reduce uncertainty in the remaining workload and allow AgentDecarbonizer to adapt future execution intervals based on the agent’s progress and carbon intensity forecasts\. In this work, an execution interval is defined as a slice of the agent’s computational workload, which we match with the carbon intensity granularity \(i\.e\.,Δt\\Delta tin[Section3\.1](https://arxiv.org/html/2608.20566#S3.SS1)\) when selecting low\-carbon execution times\.
Figure 7\.AgentDecarbonizer overview\.
### 5\.2\.Context Cache Awareness
Challenge\.Context caching reduces repeated computation by reusing previously processed prompt states, which is especially beneficial for long\-context and reasoning\-heavy requests\. However, these cached states can be large as they grow with model size and context length\. Therefore, serving systems typically keep caches local to a server or cluster rather than sharing them across regions\[[23](https://arxiv.org/html/2608.20566#bib.bib11),[21](https://arxiv.org/html/2608.20566#bib.bib63),[22](https://arxiv.org/html/2608.20566#bib.bib69)\]; examples include Gemini context caching\[[29](https://arxiv.org/html/2608.20566#bib.bib90)\], AWS Bedrock prompt caching\[[8](https://arxiv.org/html/2608.20566#bib.bib91)\], and MoonCake\[[67](https://arxiv.org/html/2608.20566#bib.bib61)\]\. As a result, spatially shifting execution to another grid can introduce cache misses and extra computation, potentially increasing carbon emissions even when the destination grid has lower carbon intensity\.
Solution\.AgentDecarbonizer makes cache effects explicit in the planning process rather than assuming that every lower\-carbon\-intensity grid is beneficial\. The planner evaluates each candidate interval with a cache\-aware carbon model: continuing in the same grid preserves reusable input context, while switching to another grid adds a cache miss penalty for recomputing previously processed context\. AgentDecarbonizer estimates this cache miss penalty using runtime statistics collected from past model API calls, such as the token consumption and cached input token metadata reported by the model API\. For each location shift decision, the planner compares the estimated carbon emissions of continuing in the current grid with the overhead of moving to a different grid due to cache misses\. A spatial workload shift is selected only when the estimated carbon reduction exceeds the recomputation overhead; otherwise, the planner continues execution or waits in the current grid\.
## 6\.AgentDecarbonizer
We first present an overview of AgentDecarbonizer and then describe its components in detail\.
### 6\.1\.System Overview
AgentDecarbonizer is a carbon optimizer that works on top of OpenClaw\. It jointly considers temporal shifting, deciding which intervals to use for execution or waiting, and spatial shifting, deciding which service grid should handle each selected execution interval, while preserving the original OpenClaw agent execution\. Figure[7](https://arxiv.org/html/2608.20566#S5.F7)provides an overview of AgentDecarbonizer, which runs alongside the OpenClaw agent and periodically updates the execution plan\. TheCarbon Intensity Predictorforecasts future carbon intensity for each grid using recent carbon intensity and energy mix measurements \(step 1\)\. TheExecution Time Estimatorproduces an initial, conservative execution time estimate from the user prompt and refines the remaining time estimate from OpenClaw traces as API calls and tool invocations complete \(step 2\)\. ThePlannercombines the deadline, carbon intensity forecasts, remaining time estimate, and cache miss cost model to choose low\-carbon\-intensity candidate intervals and service grids, including cache\-aware shifting decisions \(step 3\)\. TheExecution Controllerapplies the resulting plan by waiting for selected intervals or shifting execution to the grid specified by the planner, while collecting progress and cache statistics that trigger later replanning \(step 4\)\.
### 6\.2\.Execution Time Estimator
The estimator is built around a lightweight local LLM, a 4B Gemma 4 model in our implementation \(see[Section8\.1](https://arxiv.org/html/2608.20566#S8.SS1)\), that analyzes user requests, extracts task characteristics, and derives time estimates, without actually executing the task\. Figure[8](https://arxiv.org/html/2608.20566#S6.F8)presents the key steps\. As introduced in[Section6\.1](https://arxiv.org/html/2608.20566#S6.SS1), the estimator first generates an initial estimate using the input prompt, and then refines the estimate during execution by collecting the latest execution statistics from OpenClaw\. We next describe the initial estimation pass and then highlight the in\-flight estimate update process\.
Figure 8\.Execution time estimator workflow\.Estimator Workflow\.Step 1: Feature extraction\.Motivated by prior characterizations of LLM and AI agent workloads, which identify factors such as context length, token generation, execution steps, and tool interactions as key runtime contributors\[[99](https://arxiv.org/html/2608.20566#bib.bib22),[87](https://arxiv.org/html/2608.20566#bib.bib7),[3](https://arxiv.org/html/2608.20566#bib.bib96)\], the estimator extracts runtime\-relevant task features from the original task input, metadata, and local signals\. The exact features and prompt template are provided in Appendix[A\.2](https://arxiv.org/html/2608.20566#A1.SS2)\.Step 2: Phase decomposition\.The local LLM uses the extracted task features to split the task into execution phases\. This decomposition exposes the primary runtime contributors and uncertainty sources, enabling phase\-level duration estimation\. Appendix[A\.3](https://arxiv.org/html/2608.20566#A1.SS3)provides the corresponding prompt template for this phase decomposition step\.Step 3: Phase\-level time estimation\.For each phase, the local LLM takes the phase description and runtime\-relevant task features as input and predicts a conservative duration estimatet~i\\widetilde\{t\}\_\{i\}\. We aim to provide a generic method rather than one tailored to the WildClawBench workloads\. Therefore, the prediction is guided by heuristic anchors from publicly available studies, including the expected step count ranges summarized in Appendix[A\.1](https://arxiv.org/html/2608.20566#A1.SS1), for model calls, tool use, generation, validation, latency, and retries\. This is motivated by prior AI agent work, where tasks unfold as multi\-step reasoning and tool\-use trajectories\[[89](https://arxiv.org/html/2608.20566#bib.bib10),[99](https://arxiv.org/html/2608.20566#bib.bib22)\]\.Step 4: Aggregation\.Finally, the estimator sums the conservative phase estimates to obtain the task\-level durationT~=∑it~i\\widetilde\{T\}=\\sum\_\{i\}\\widetilde\{t\}\_\{i\}, which is the execution time reserved before the deadline\.
Runtime progress update\.Because agent execution is multi\-step and highly dynamic, the initial estimate can become inaccurate as execution progresses\. Therefore, the estimator periodically updates the remaining duration based on observed execution progress\. It compares the original execution plan with runtime signals, including completed phases, executed tool calls, generated tokens, and recent API and message history, to estimate the fraction of planned work completed\. The remaining duration is then adjusted based on the observed execution speed\.
### 6\.3\.Cache\-Aware Carbon Model
During planning, AgentDecarbonizer models context cache as a location\-dependent shifting penalty\. If execution stays in the same grid, the plan assumes reusable cached input context remains available; if execution shifts to another grid, AgentDecarbonizer uses token consumption and cached\-token metadata to estimate the extra computation needed to rebuild the context\. This model reflects the LLM inference workflow: during prefill, an LLM processes input tokens and constructs reusable KV\-cache state\[[41](https://arxiv.org/html/2608.20566#bib.bib72),[2](https://arxiv.org/html/2608.20566#bib.bib13)\]\. When shifting to a different grid makes the state unavailable, AgentDecarbonizer approximates the cache miss overhead as the prefill work needed to reprocess the previously cached input tokens\. Note that AgentDecarbonizer is a flexible framework which allows for other cache carbon models \(discussed in[Section9](https://arxiv.org/html/2608.20566#S9)\)\.
### 6\.4\.Carbon\-Aware Planner
The planner converts duration estimates, carbon intensity forecasts, and cache\-aware carbon emissions into a placement plan\. By default, AgentDecarbonizer uses EnsembleCI\[[86](https://arxiv.org/html/2608.20566#bib.bib37)\]as the local carbon intensity predictor to forecast at a granularity ofΔt\\Delta t, which is set to15min15\\text\{\\,\}\\mathrm\{min\}in our implementation, and refreshes the forecasts once per hour during execution\. Like theExecution Time Estimatorin[Section6\.2](https://arxiv.org/html/2608.20566#S6.SS2), the planner also operates in two stages:initial planningbefore execution andin\-flight updateswhile the agent is running\.
Initial planning\.Upon receiving the task, AgentDecarbonizer obtains carbon intensity forecasts for all candidate grids over the user\-specified deadline window\. Given the initial duration estimateT~\\widetilde\{T\}from theExecution Time Estimator, the planner converts the required execution time intoK=⌈T~/Δt⌉K=\\lceil\\widetilde\{T\}/\\Delta t\\rceilexecution intervals of lengthΔt\\Delta tand selects theKKlowest\-carbon, non\-overlapping candidate intervals before the deadline\. Because no execution history exists yet, the initial plan does not include spatial shifting penalties\.
In\-flight update\.During execution, each planning refresh updates the remaining placement plan\. The planner takes updated carbon intensity forecasts, triggers theExecution Time Estimatorto update the remaining duration from observed progress, and consumes runtime cache signals collected by the controller, such as input and cached token statistics\. It then reoptimizes the placement of the unfinished execution over the remaining deadline horizon\. In this optimization, the planner uses the cache\-aware carbon model in Section[6\.3](https://arxiv.org/html/2608.20566#S6.SS3)to balance the lower execution emissions available in other grids against the cache\-recomputation carbon emissions caused by shifting away from the current grid\. The updated plan records the resulting temporal and spatial workload shifting decisions\.
At either stage, if the time remaining before the deadline is shorter than the estimated execution time, the planner falls back to the default OpenClaw execution path\. Otherwise, it sends the resulting placement plan to theExecution Controller\.
### 6\.5\.Execution Controller
The execution controller manages AgentDecarbonizer’s runtime flow according to the execution plan from theCarbon\-Aware Planner\. It starts execution in the selected candidate interval and grid, pauses between execution intervals when the plan calls for waiting, resumes from the saved execution state, and performs location shifting when the planner selects a different region\. Beyond controlling the execution, the controller leverages OpenClaw’s default logging to collect runtime records, including agent messages, detailed token consumption \(input, output, and cached input\), and tool usage\. When an execution interval ends, the controller extracts these records, sends them to thePlanner, and waits for the updated plan before starting or resuming the next interval\.
Currently, we implement AgentDecarbonizer’s spatial\-shifting mechanism in a carbon\-emissions simulator that assumes remote model requests can be routed to multiple service regions\. The main model we evaluate, GPT\-5\.4, does not provide a user\-accessible API to choose among service locations; this feature is only available as a data residency option\[[58](https://arxiv.org/html/2608.20566#bib.bib93)\]\. However, location shifting is a realistic capability because some cloud providers already expose location controls to users\. For example, Google Cloud supports location\-specific model serving\[[24](https://arxiv.org/html/2608.20566#bib.bib92)\]\.
## 7\.Theoretical Analysis
This section formalizes the mechanisms described in[Section6\.4](https://arxiv.org/html/2608.20566#S6.SS4)and[Section6\.5](https://arxiv.org/html/2608.20566#S6.SS5)\. We first formalize AgentDecarbonizer’s placement objective\. We then show that when cache recomputation depends only on whether the service region changes between consecutive execution intervals, this objective admits an exact dynamic\-programming algorithm\. Finally, we prove that the resulting schedule meets the deadline whenever the conservative duration estimate covers the task’s actual accumulated runtime\.
### 7\.1\.Carbon\-Aware Execution Placement
A request arrives at timeaawith deadlineddand candidate execution regionsℛ\\mathcal\{R\}\. As described in[Section6\.4](https://arxiv.org/html/2608.20566#S6.SS4), the carbon\-intensity predictor produces forecasts at granularityΔt\\Delta t, which is set to15min15\\text\{\\,\}\\mathrm\{min\}in our implementation\. The planner uses the same granularity and treats each forecast time slot as a candidate execution interval\. Specifically, it forms candidate intervalsIt=\[t,t\+Δt\)I\_\{t\}=\[t,t\+\\Delta t\)whose starting timestamps aret∈ℋ=\{a\+jΔt∣j=0,1,…,H−1\}t\\in\\mathcal\{H\}=\\\{a\+j\\Delta t\\mid j=0,1,\\ldots,H\-1\\\}, whereH=⌊\(d−a\)/Δt⌋H=\\left\\lfloor\(d\-a\)/\\Delta t\\right\\rfloor\. During each interval, AgentDecarbonizer may execute part of the agent task in one candidate region, or leave the interval idle and resume execution later\. By construction, every candidate interval ends no later than the deadline\.
Given the conservative duration estimateT~\\widetilde\{T\}from theExecution Time Estimator, AgentDecarbonizer decomposes the agent task intoK=⌈T~/Δt⌉K=\\lceil\\widetilde\{T\}/\\Delta t\\rceilordered execution intervals, each of lengthΔt\\Delta t, indexed byk∈\{1,…,K\}k\\in\\\{1,\\ldots,K\\\}\. These execution intervals are the consecutive chunks of work that must be allocated to candidate intervals\. AgentDecarbonizer preserves the original execution order of the task, but may defer execution mid\-task and resume later for lower carbon emissions\.
A placement plan is a sequenceπ=\{\(rk,tk\)\}k=1K\\pi=\\\{\(r\_\{k\},t\_\{k\}\)\\\}\_\{k=1\}^\{K\}, whererk∈ℛr\_\{k\}\\in\\mathcal\{R\}denotes the region selected for execution intervalkk, andtk∈ℋt\_\{k\}\\in\\mathcal\{H\}denotes the starting timestamp of the candidate interval in which it is placed\. Feasibility requires chronological order,t1<t2<⋯<tKt\_\{1\}<t\_\{2\}<\\cdots<t\_\{K\}\. If no feasible placement exists, AgentDecarbonizer falls back to the default OpenClaw execution\.
LetE^r,t\(k\)\\widehat\{E\}^\{\(k\)\}\_\{r,t\}be the predicted energy demand of running execution intervalkkin regionrrduring interval\[t,t\+Δt\)\[t,t\+\\Delta t\), and letCI^r,t\\widehat\{CI\}\_\{r,t\}be the corresponding carbon intensity forecast\. The predicted carbon\-emission term isE^r,t\(k\)CI^r,t\\widehat\{E\}^\{\(k\)\}\_\{r,t\}\\widehat\{CI\}\_\{r,t\}, matching the carbon accounting model in[Equation2](https://arxiv.org/html/2608.20566#S3.E2)\. Letπ1:k=\{\(ri,ti\)\}i=1k\\pi\_\{1:k\}=\\\{\(r\_\{i\},t\_\{i\}\)\\\}\_\{i=1\}^\{k\}denote the partial placement up to execution intervalkk\. Fork≥2k\\geq 2, letΛ\(k\)\(π1:k\)≥0\\Lambda^\{\(k\)\}\(\\pi\_\{1:k\}\)\\geq 0denote the cache\-recomputation overhead incurred when running execution intervalkk\. This term captures the extra carbon emissions from regenerating context or cache state after a cache miss; in the general formulation, it may depend on the previous placement history\.
AgentDecarbonizer selects a deadline\-feasible sequence of candidate intervals and the serving region for each selected interval\. The placement objective is to minimize predicted carbon emissions and cache\-recomputation overhead, subject to deadline feasibility and chronological execution order:
\(6\)minπJord\(π\)\\displaystyle\\min\_\{\\pi\}\\quad J\_\{\\mathrm\{ord\}\}\(\\pi\)=∑k=1KE^\(k\)rk,tkCI^rk,tk\+∑k=2KΛ\(k\)\(π1:k\)\\displaystyle=\\sum\_\{k=1\}^\{K\}\\widehat\{E\}^\{\(k\)\}\_\{r\_\{k\},t\_\{k\}\}\\widehat\{CI\}\_\{r\_\{k\},t\_\{k\}\}\+\\sum\_\{k=2\}^\{K\}\\Lambda^\{\(k\)\}\(\\pi\_\{1:k\}\)s\.t\.\\displaystyle\\text\{s\.t\.\}rk∈ℛ,tk∈ℋ,\\displaystyle r\_\{k\}\\in\\mathcal\{R\},\\quad t\_\{k\}\\in\\mathcal\{H\},k=1,…,K,\\displaystyle k=1,\\ldots,K,t1<t2<⋯<tK\.\\displaystyle t\_\{1\}<t\_\{2\}<\\cdots<t\_\{K\}\.
Table 3\.Notation in the AgentDecarbonizer placement objective in[Equation6](https://arxiv.org/html/2608.20566#S7.E6)\.SymbolDescriptionℛ\\mathcal\{R\}Candidate execution regions\.ℋ\\mathcal\{H\}Deadline\-feasible candidate intervals\.HHNumber of deadline\-feasible candidate intervals\.KKNumber of ordered execution intervals induced byT~\\widetilde\{T\}\.rkr\_\{k\}Region assigned to execution intervalkk\.tkt\_\{k\}Candidate interval assigned to execution intervalkk\.E^r,t\(k\)\\widehat\{E\}^\{\(k\)\}\_\{r,t\}Predicted energy for execution intervalkkin regionrrduring candidate intervaltt\.CI^r,t\\widehat\{CI\}\_\{r,t\}Predicted carbon intensity for regionrrduring candidate intervaltt\.Λ\(k\)\(π1:k\)\\Lambda^\{\(k\)\}\(\\pi\_\{1:k\}\)Cache\-recomputation carbon emissions incurred during execution intervalkk\.Γr,t\(k\)\\Gamma^\{\(k\)\}\_\{r,t\}Cache\-recomputation penalty incurred when execution intervalkkswitches to gridrrduring candidate intervaltt\.
### 7\.2\.Dynamic Programming Under Cache Recomputation
In this section, we consider a local cache\-recomputation structure and show that, under this structure, a dynamic\-programming algorithm solves the placement objective in[Equation6](https://arxiv.org/html/2608.20566#S7.E6)exactly\.
###### Assumption 1\(Local cache recomputation\)\.
For everyk≥2k\\geq 2, the cache\-recomputation overhead incurred in execution intervalkkdepends only on whether the service region changes between execution intervalsk−1k\-1andkk\. Intuitively, remaining in the same region preserves the context cache, whereas shifting to a different region causes a cache miss and requires the context to be regenerated\. Therefore, the additional carbon overhead in execution intervalkkdepends only on the transition from intervalk−1k\-1to intervalkk, rather than on the full placement history\. Specifically, there exists a nonnegative cache\-recomputation carbon penaltyΓr,t\(k\)≥0\\Gamma^\{\(k\)\}\_\{r,t\}\\geq 0such that, for every partial placementπ1:k\\pi\_\{1:k\},
\(7\)Λ\(k\)\(π1:k\)=𝟏\{rk≠rk−1\}Γrk,tk\(k\)\.\\Lambda^\{\(k\)\}\(\\pi\_\{1:k\}\)=\\mathbf\{1\}\\\{r\_\{k\}\\neq r\_\{k\-1\}\\\}\\Gamma^\{\(k\)\}\_\{r\_\{k\},t\_\{k\}\}\.
Under[1](https://arxiv.org/html/2608.20566#Thmassumption1), we formulate the following dynamic\-programming algorithm\. LetDr,t\(k\)D^\{\(k\)\}\_\{r,t\}be the minimum cost for the firstkkexecution intervals when execution intervalkkruns in regionrrduring candidate intervaltt; infeasible states have value\+∞\+\\infty\. The base case isDr,t\(1\)=E^r,t\(1\)CI^r,tD^\{\(1\)\}\_\{r,t\}=\\widehat\{E\}^\{\(1\)\}\_\{r,t\}\\widehat\{CI\}\_\{r,t\}\. Fork≥2k\\geq 2, the recurrence is
\(8\)Dr,t\(k\)=E^r,t\(k\)CI^r,t\+minq∈ℛ,s∈ℋ:s<t\{Dq,s\(k−1\)\+𝟏\{q≠r\}Γr,t\(k\)\}\.D^\{\(k\)\}\_\{r,t\}=\\widehat\{E\}^\{\(k\)\}\_\{r,t\}\\widehat\{CI\}\_\{r,t\}\+\\min\_\{\\begin\{subarray\}\{c\}q\\in\\mathcal\{R\},\\ s\\in\\mathcal\{H\}:\\ s<t\\end\{subarray\}\}\\left\\\{D^\{\(k\-1\)\}\_\{q,s\}\+\\mathbf\{1\}\\\{q\\neq r\\\}\\Gamma^\{\(k\)\}\_\{r,t\}\\right\\\}\.The recurrence searches over feasible predecessors: execution intervalk−1k\-1must finish in an earlier candidate intervals<ts<t\. The transition cost is zero when the cache is preserved \(q=rq=r\) and equals the cache\-recomputation penalty when AgentDecarbonizer switches regions \(q≠rq\\neq r\)\. The optimal interval\-level carbon estimate isC∗=minr∈ℛ,t∈ℋDr,t\(K\)C^\{\*\}=\\min\_\{r\\in\\mathcal\{R\},\\ t\\in\\mathcal\{H\}\}D^\{\(K\)\}\_\{r,t\}\. When computing each minimum, the dynamic\-programming algorithm stores a backpointer to the predecessor state\(q,s\)\(q,s\)that attained the minimum\. Tracing these backpointers from the optimal final state reconstructs the placement plan\{\(rk,tk\)\}k=1K\\\{\(r\_\{k\},t\_\{k\}\)\\\}\_\{k=1\}^\{K\}\.
###### Theorem 1\(AgentDecarbonizer optimality and complexity\)\.
Under[1](https://arxiv.org/html/2608.20566#Thmassumption1), the dynamic\-programming algorithm returns a minimizer of[Equation6](https://arxiv.org/html/2608.20566#S7.E6)\. The recurrence can be evaluated inO\(K\|ℛ\|H\)O\(K\|\\mathcal\{R\}\|H\)time andO\(\|ℛ\|H\)O\(\|\\mathcal\{R\}\|H\)working memory, plus backpointers for reconstructing the placement plan\.
The dynamic\-programming algorithm avoids repeatedly searching over all possible placements of the previous execution interval\. A naive evaluation checks every possible previous region and earlier candidate interval for every state, requiringO\(K\|ℛ\|2H2\)O\(K\|\\mathcal\{R\}\|^\{2\}H^\{2\}\)time\. Under the local cache\-recomputation structure, the previous\-placement information can be summarized and reused\. Specifically, for each current state\(r,t\)\(r,t\)at execution intervalkk, the transition only needs two summaries over placements of execution intervalk−1k\-1in earlier candidate intervalss<ts<t: the best placement that remains in the same regionrr, and the best placement that comes from any different region\. The first summary gives the cost of preserving the cache, while the second summary gives the best switching cost before adding the recomputation penaltyΓr,t\(k\)\\Gamma^\{\(k\)\}\_\{r,t\}\. This allows each transition to be evaluated in constant time, reducing the overall complexity toO\(K\|ℛ\|H\)O\(K\|\\mathcal\{R\}\|H\)\. The details and proof of[Theorem1](https://arxiv.org/html/2608.20566#Thmtheorem1)are provided in[SectionA\.4](https://arxiv.org/html/2608.20566#A1.SS4)\.
### 7\.3\.Deadline Guarantee
LetTrunT\_\{\\mathrm\{run\}\}denote the actual accumulated runtime of the task, excluding idle waiting between execution intervals\. Recall the conservative duration estimateT~\\widetilde\{T\}\.
###### Theorem 2\(Deadline guarantee\)\.
Suppose the dynamic\-programming algorithm returns a feasible AgentDecarbonizer schedule\. IfTrun≤T~T\_\{\\mathrm\{run\}\}\\leq\\widetilde\{T\}, then the schedule completes the task by the deadlinedd\.
Recall that theExecution Time Estimatorin[Section6\.2](https://arxiv.org/html/2608.20566#S6.SS2)decomposes the task into phases and assigns theii\-th phase a conservative duration estimatet~i\\widetilde\{t\}\_\{i\}, withT~=∑it~i\\widetilde\{T\}=\\sum\_\{i\}\\widetilde\{t\}\_\{i\}\. Lettirunt\_\{i\}^\{\\mathrm\{run\}\}denote the actual execution time spent on the corresponding phase\. One sufficient condition forTrun≤T~T\_\{\\mathrm\{run\}\}\\leq\\widetilde\{T\}is thattirun≤t~it\_\{i\}^\{\\mathrm\{run\}\}\\leq\\widetilde\{t\}\_\{i\}for every phaseii\. This motivates accounting for uncertainty during phase\-level duration estimation and helps ensure that the reserved execution intervals provide enough time for the task to finish before the deadline\.
## 8\.Evaluation
In this section, we first describe the evaluation methodology and then report the results\.
### 8\.1\.Methodology
Local Platform\.We use a Mac mini with an M4 processor and16GB16\\text\{\\,\}\\mathrm\{GB\}memory as the local platform to host OpenClaw and optimization mechanisms from AgentDecarbonizer\. We evaluate the overhead on the local platform in[Section8\.5](https://arxiv.org/html/2608.20566#S8.SS5)\.
Models\.We primarily evaluate GPT\-5\.4 as the backend model used by OpenClaw through OpenAI’s API\. Additionally, we evaluate Gemini 3\.1 Pro to compare AgentDecarbonizer’s carbon savings across models in[Section8\.3](https://arxiv.org/html/2608.20566#S8.SS3)\. On the local platform, we use a 4\-bit\-quantized Gemma 4 E4B model for execution\-time estimation\[[28](https://arxiv.org/html/2608.20566#bib.bib14)\]; this lightweight model is suitable for mobile and edge devices\. The local model is served using Ollama\[[55](https://arxiv.org/html/2608.20566#bib.bib94)\], whose built\-in prompt and context caching reduce inference time because the estimator prompts share substantial context for task descriptions\. In our experiment, the estimator has no prior knowledge of the benchmark to ensure fair evaluation\.
Benchmark and Evaluation Setup\.As in[Section4](https://arxiv.org/html/2608.20566#S4), we evaluate all 60 AI agent tasks in WildClawBench, which span six categories\. Because individual benchmark tasks have relatively short execution times, whereas real\-world agent workflows are increasingly long\-running, we combine shorter tasks within each category into a single workload\. This yields six workloads, one per category\. Within each task, the backend model maintains a context cache\. Because the tasks within a workload are independent, however, the cache is not reused across tasks; we assume a cache lifetime of 24 hours\. For each workload, we record an OpenClaw execution trace\. Then, we develop a simulator that replays the traces to reflect different carbon intensity scenarios, and optimization decisions made by AgentDecarbonizer at runtime\. We evaluate AgentDecarbonizer under four workload deadlines: 3, 6, 12, and 24 hours\. Tighter deadlines reflect more on\-demand execution, while longer deadlines reflect more flexible workload scheduling\.
Carbon\-Intensity Traces\.We use carbon\-intensity traces for the four grids introduced in[Table1](https://arxiv.org/html/2608.20566#S2.T1): CISO data from EIA\[[14](https://arxiv.org/html/2608.20566#bib.bib41)\], AT and FI data from ENTSO\-E\[[17](https://arxiv.org/html/2608.20566#bib.bib42)\], and GB data from NESO\[[53](https://arxiv.org/html/2608.20566#bib.bib43)\]\. We use two years of traces for training \(May 2023–May 2025\) and one month of traces \(February 2026\) for evaluation\. We evaluate 24 candidate start times per day over this 1\-month testing trace, with one start time per hour, and compute the emissions for each start time\. We then average these emissions over the 1\-month trace\.
Baselines\.Using the carbon emissions calculated as described above, we compare AgentDecarbonizer against two baselines: \(1\)Current\-optimal:The carbon emissions from the original OpenClaw execution when run on the grid with the lowest carbon intensity at the workload start time\. We use this baseline as the primary comparison in this work\. \(2\)Average:The average carbon emissions when running the agent workloads on each grid, which reflects a carbon\-agnostic scenario\.
### 8\.2\.Overall Carbon Emission Savings
Carbon Savings\.[Figure9\(a\)](https://arxiv.org/html/2608.20566#S8.F9.sf1)presents the carbon emission savings when using GPT\-5\.4 as the backend model under different workload deadlines\. We observe that as the deadline becomes more flexible, the carbon savings increase, as AgentDecarbonizer has more flexibility to defer and shift the workload to other grids\. Compared with the current\-optimal and average baselines, AgentDecarbonizer achieves average carbon savings of 3\.3–37\.5 % and 34\.9–57\.9 %, respectively\.[Figure9\(b\)](https://arxiv.org/html/2608.20566#S8.F9.sf2)summarizes the fraction of execution time assigned to each grid under different deadlines\. The results are consistent with the carbon intensity distributions shown in[Figure9\(c\)](https://arxiv.org/html/2608.20566#S8.F9.sf3)\. Notably, CISO is used most often, and its usage increases as the deadline becomes longer\. This is because CISO has a wide daily carbon intensity distribution, with lower carbon intensity values than the other grids\. Thus, AgentDecarbonizer uses CISO more often to leverage its low\-carbon\-intensity periods\.
\(a\)\(b\)\(c\)
Figure 9\.\(a\) Overall carbon savings, \(b\) grid usage, and \(c\) carbon intensity distribution\. Model is GPT\-5\.4\.Figure 10\.Example of agent execution optimized by AgentDecarbonizer\. Start time Feb 4, 2026 at 16:00 UTC\.Timeline Examples\.[Figure10](https://arxiv.org/html/2608.20566#S8.F10)shows examples of agent workload execution on Feb 4, 2026, starting at 16:00 UTC, under four different deadlines\. We first observe that, when the deadline is tight, AgentDecarbonizer avoids introducing long waiting periods to meet the deadline\. As the deadline becomes more flexible, AgentDecarbonizer spends more time waiting for lower\-carbon periods\. Second, we find that mid\-task migration occurs when there is a major change in carbon intensity, as indicated by the triangle marker\. For example, in the 3\-hour deadline case, the workload is shifted from CISO to AT at 17:00 UTC due to the predicted increase in CISO’s carbon intensity\. Finally, we observe that cross\-grid workload shifting is more frequent for long\-running tasks, e\.g\., Code and Creative\. Short\-running workloads can often wait for a low\-carbon period and then complete on a single grid, avoiding cache recomputation\. By contrast, long\-running workloads may benefit from migrating before completion because more work remains after the shift\.
### 8\.3\.Comparison across Models
\(a\)\(b\)\(c\)
Figure 11\.\(a\) Execution time, \(b\) token usage, and \(c\) carbon emissions of Gemini 3\.1 Pro vs GPT\-5\.4\.We evaluate Gemini 3\.1 Pro as a second model API to assess the effectiveness of AgentDecarbonizer across different models\.[Figures11\(a\)](https://arxiv.org/html/2608.20566#S8.F11.sf1)and[11\(b\)](https://arxiv.org/html/2608.20566#S8.F11.sf2)show the per\-workload execution times and token usage, respectively, for both GPT\-5\.4 and Gemini 3\.1 Pro\. Gemini 3\.1 Pro has shorter execution times and lower token usage than GPT\-5\.4\.
Because public data and studies on the energy consumption and carbon emissions of Gemini Pro series models are unavailable, we estimate the energy consumption of input, output, and cached input tokens using the same method as in[Section3\.2](https://arxiv.org/html/2608.20566#S3.SS2), based on the relative pricing differences between GPT\-5\.4 and Gemini 3\.1 Pro\[[27](https://arxiv.org/html/2608.20566#bib.bib85),[59](https://arxiv.org/html/2608.20566#bib.bib84)\], i\.e\., Gemini 3\.1 Pro costs $2 per million input tokens compared with $2\.5 for GPT\-5\.4\. Using this estimate,[Figure11\(c\)](https://arxiv.org/html/2608.20566#S8.F11.sf3)compares the estimated total carbon emissions of the two models and shows that Gemini 3\.1 Pro has lower estimated carbon emissions\. However, the carbon saving ratios remain similar: compared with the current\-optimal and average baselines, AgentDecarbonizer reduces carbon emissions by 4–35\.8 % and 35\.2–57\.3 %, respectively, under different deadlines\. This experiment demonstrates that AgentDecarbonizer can reduce carbon emissions from AI\-agent workloads across different backend models\.
Figure 12\.Emissions of single\-grid only scenarios compared to AgentDecarbonizer\. The model API is GPT\-5\.4\.
### 8\.4\.Ablation Studies
In this section, we conduct ablation studies to identify the sources of carbon savings\.
#### 8\.4\.1\.Impact of Multi\-grid Migration
We first study the impact of shifting across grids by comparing against a single\-grid scenario that only waits for lower\-carbon\-intensity periods without shifting\.[Figure12](https://arxiv.org/html/2608.20566#S8.F12)presents the average carbon emissions of the single\-grid scenario, normalized to AgentDecarbonizer, under different deadlines\. We observe that shifting across grids in AgentDecarbonizer reduces carbon emissions by 34\.1–45\.7 % on average across workloads, depending on the deadline\. For most grids, longer deadlines allow AgentDecarbonizer to save more carbon\. The only exception is CISO, whose relative emissions compared with AgentDecarbonizer decrease as the deadline increases\. As also shown in[Figure9\(c\)](https://arxiv.org/html/2608.20566#S8.F9.sf3), CISO has the highest carbon intensity variation, making it possible to mitigate a significant fraction of emissions by waiting alone\. Overall, this experiment shows that shifting agent workloads across grids is a major source of carbon reduction\.
#### 8\.4\.2\.Impact of Carbon Intensity Predictor
We then evaluate the impact of the carbon intensity predictor\[[86](https://arxiv.org/html/2608.20566#bib.bib37)\]used by AgentDecarbonizer by comparing it against an ideal scenario that uses ground\-truth carbon intensities\. In addition, we compare AgentDecarbonizer’s hourly updated dynamic prediction with a static, one\-time prediction\.[Figure14](https://arxiv.org/html/2608.20566#S8.F14)compares the carbon emission savings of these predictors over the defaultcurrent\-optimalbaseline\. We observe that AgentDecarbonizer achieves carbon savings close to the ideal scenario, while the one\-time prediction has lower carbon savings under longer deadlines because it fails to track carbon intensity changes over longer durations\. This is because prediction errors grow with the horizon, reaching an average MAPE of 16\.3 % at 24 hours, while next\-hour predictions have a low MAPE of 3\.3 %\. By updating predictions hourly, AgentDecarbonizer’s planner benefits from more accurate near\-term carbon intensity estimates\. This experiment demonstrates that, although carbon intensity prediction is imperfect, AgentDecarbonizer remains robust to prediction errors and substantially outperforms the one\-time predictor under longer deadlines\.
#### 8\.4\.3\.Impact of the Execution\-Time Estimator
We finally evaluate the impact of the execution time estimator\. We introduce an ideal scenario that uses the ground\-truth execution time and a worst\-case scenario that uses the execution time of the slowest task as a fixed estimate\.[Figure14](https://arxiv.org/html/2608.20566#S8.F14)compares these scenarios by reporting their carbon emission savings over the defaultcurrent\-optimalbaseline\. Overall, AgentDecarbonizer is close to the ideal scenario\. We also compare the actual execution time with AgentDecarbonizer’s conservative estimate in[Figure17](https://arxiv.org/html/2608.20566#S8.F17)\. For all workloads, the estimated time is longer than the actual time, demonstrating that the estimate is conservative enough to ensure that workloads complete before their deadlines\. Compared to longer\-running workloads, shorter workloads have larger slack between the estimated and actual execution times because the estimator uses a generic and conservative design\. In our evaluation, all workloads complete before the user\-specified deadlines\.
Figure 13\.Carbon savings compared to ideal and one\-time carbon intensity predictors\. Model API: GPT\-5\.4\.Figure 14\.Carbon savings compared to ideal and worst\-case execution time estimates\. Model API: GPT\-5\.4\.
### 8\.5\.AgentDecarbonizer Overhead on Local Device
Figure 15\.AgentDecarbonizer’s estimate vs\. actual time\. Model API: GPT\-5\.4\.Figure 16\.Power consumption and AgentDecarbonizer overhead on local device\.Figure 17\.Memory usage on local device\.
In this experiment, we evaluate the overhead of AgentDecarbonizer on the local Mac mini device\. We measure the power of the local Mac mini device usingpowermetrics\[[7](https://arxiv.org/html/2608.20566#bib.bib77)\]every200ms200\\text\{\\,\}\\mathrm\{ms\}\.[Figure17](https://arxiv.org/html/2608.20566#S8.F17)presents AgentDecarbonizer’s average power consumption and total execution time\. The local Gemma model used for execution\-time estimation is the main source of overhead\. Overall, AgentDecarbonizer’s execution overhead is only0\.70\.7–5\.2min5\.2\\text\{\\,\}\\mathrm\{min\}with an average power of14\.9W14\.9\\text\{\\,\}\\mathrm\{W\}\. This overhead is low compared to the long\-running agent tasks\.[Figure17](https://arxiv.org/html/2608.20566#S8.F17)further presents the peak memory usage\. On average, the memory usage is only6\.5GB6\.5\\text\{\\,\}\\mathrm\{GB\}, mainly from the local Gemma model, which can fit into most PCs and laptops\.
## 9\.Related Work and Discussion
In this section, we discuss related work\.
Carbon\-aware optimizations\.Carbon\-aware computing systems reduce operational emissions by exploiting variation in grid carbon intensity over time and across locations\. Temporal shifting delays flexible workloads until cleaner electricity is available, while spatial shifting moves work to lower\-carbon regions\[[81](https://arxiv.org/html/2608.20566#bib.bib34),[76](https://arxiv.org/html/2608.20566#bib.bib35),[30](https://arxiv.org/html/2608.20566#bib.bib70),[1](https://arxiv.org/html/2608.20566#bib.bib71),[33](https://arxiv.org/html/2608.20566#bib.bib46),[93](https://arxiv.org/html/2608.20566#bib.bib36)\]\. These systems establish the general opportunity for carbon\-aware load shifting\. While AgentDecarbonizer builds on these directions, it addresses new challenges in reducing carbon emissions from AI\-agent workloads, including meeting user deadlines during temporal shifting and accounting for context\-cache recomputation overhead after spatial shifts\.
Carbon and Energy Analysis for AI Systems\.Recent work has studied carbon mitigation, energy modeling, and serving optimization for AI and LLM systems, including model\-, token\-, and prompt\-level energy estimates\[[45](https://arxiv.org/html/2608.20566#bib.bib39),[74](https://arxiv.org/html/2608.20566#bib.bib51),[77](https://arxiv.org/html/2608.20566#bib.bib47),[19](https://arxiv.org/html/2608.20566#bib.bib49),[71](https://arxiv.org/html/2608.20566#bib.bib50),[93](https://arxiv.org/html/2608.20566#bib.bib36),[54](https://arxiv.org/html/2608.20566#bib.bib52)\]\. These approaches are complementary to AgentDecarbonizer\. Rather than changing the serving system, AgentDecarbonizer optimizes agent execution while preserving the original model API and agent behaviors\. In this work, we develop our energy estimate using a prior study\[[38](https://arxiv.org/html/2608.20566#bib.bib54)\]and vendor pricing\. However, AgentDecarbonizer is not tied to a specific energy model; more precise and up\-to\-date estimates can replace the current values to improve carbon optimization\.
Context Caching\.LLM serving systems increasingly rely on prompt and context reuse to accelerate long\-context workloads\[[23](https://arxiv.org/html/2608.20566#bib.bib11),[21](https://arxiv.org/html/2608.20566#bib.bib63),[88](https://arxiv.org/html/2608.20566#bib.bib62),[85](https://arxiv.org/html/2608.20566#bib.bib65),[90](https://arxiv.org/html/2608.20566#bib.bib66)\]\. In the current AgentDecarbonizer implementation, we assume that the context cache is local to a serving backend, e\.g\., a server or cluster\. This assumption is consistent with Gemini’s context cache\[[29](https://arxiv.org/html/2608.20566#bib.bib90),[26](https://arxiv.org/html/2608.20566#bib.bib89)\], AWS Bedrock\[[8](https://arxiv.org/html/2608.20566#bib.bib91)\], MoonCake\[[67](https://arxiv.org/html/2608.20566#bib.bib61)\], and prior studies\[[21](https://arxiv.org/html/2608.20566#bib.bib63),[22](https://arxiv.org/html/2608.20566#bib.bib69),[23](https://arxiv.org/html/2608.20566#bib.bib11)\]\. As a result, shifting agent execution to another grid can lose cache locality and require recomputation, with costs that grow with model size, context length, and generated reasoning history\. There have been recent proposals that stream context through the network\[[48](https://arxiv.org/html/2608.20566#bib.bib64),[49](https://arxiv.org/html/2608.20566#bib.bib12)\]\. AgentDecarbonizer can support these techniques by using a lower shifting penalty in its cache carbon model when the serving system supports cross\-region cache transfer\.
AI Agent Execution Time Prediction\.Recent studies predict AI agent workloads, resource use, and token consumption to support budgeting, scheduling, and resource control for agent executions\[[9](https://arxiv.org/html/2608.20566#bib.bib21),[70](https://arxiv.org/html/2608.20566#bib.bib23),[20](https://arxiv.org/html/2608.20566#bib.bib24),[95](https://arxiv.org/html/2608.20566#bib.bib25)\]\. AgentDecarbonizer differs from general prediction work by using conservative estimates that are updated in flight to make deadline\-aware load\-shifting decisions during agent execution\. We also implement AgentDecarbonizer’s execution time estimator as a modular component, allowing future predictors to improve the planner and make better shifting decisions\. Besides using a more accurate estimator, the existing estimator’s phase categories, step counts, per\-step token estimates, and generation speed assumptions can also be customized for specific agent tasks, models, and deployment settings\. In this work, we use values from publicly available datasets and research to keep the estimator generic\.
## 10\.Conclusions
This paper aims to mitigate the carbon emissions of autonomous AI agents\. We first characterize OpenClaw workloads using WildClawBench to understand the carbon emissions of AI agents\. Based on these characteristics, we present AgentDecarbonizer, a carbon optimizer that shifts agent execution to lower\-carbon time periods and grids while meeting user deadlines\. AgentDecarbonizer accounts for carbon savings from context caching and avoids spatial shifts when cache recomputation would outweigh the carbon benefit\. Our evaluation shows that AgentDecarbonizer reduces carbon emissions from agent workloads by up to 57\.9 % while meeting user\-specified deadlines\.
## References
- \[1\]B\. Acun, B\. Lee, F\. Kazhamiaka, K\. Maeng, U\. Gupta, M\. Chakkaravarthy, D\. Brooks, and C\. Wu\(2023\)Carbon Explorer: a holistic framework for designing carbon aware datacenters\.InProceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems,ASPLOS\.External Links:[Link](https://doi.org/10.1145/3575693.3575754),[Document](https://dx.doi.org/10.1145/3575693.3575754)Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p4.1),[§5](https://arxiv.org/html/2608.20566#S5.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p2.1)\.
- \[2\]A\. Agrawal, N\. Kedia, A\. Panwar, J\. Mohan, N\. Kwatra, B\. S\. Gulavani, A\. Tumanov, and R\. Ramjee\(2024\)Taming throughput\-latency tradeoff in LLM inference with sarathi\-serve\.In18th USENIX Symposium on Operating Systems Design and Implementation \(OSDI\),pp\. 117–134\.External Links:[Link](https://arxiv.org/abs/2403.02310)Cited by:[§2\.1](https://arxiv.org/html/2608.20566#S2.SS1.p1.1),[§6\.3](https://arxiv.org/html/2608.20566#S6.SS3.p1.1)\.
- \[3\]W\. U\. Ahmad, N\. Ludwig, S\. Majumdar, and B\. Ginsburg\(2026\)Open\-swe\-traces: advancing dual\-mode multilingual distillation for software engineering agents\.External Links:2606\.16038,[Link](https://arxiv.org/abs/2606.16038)Cited by:[§A\.1](https://arxiv.org/html/2608.20566#A1.SS1.p1.1),[§6\.2](https://arxiv.org/html/2608.20566#S6.SS2.p2.1)\.
- \[4\]S\. Altman\(2025\)The gentle singularity\.External Links:[Link](https://blog.samaltman.com/the-gentle-singularity)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1),[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p2.1)\.
- \[5\]Anthropic\(2026\)Claude code docs\.External Links:[Link](https://docs.anthropic.com/en/docs/claude-code/overview)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§2\.3](https://arxiv.org/html/2608.20566#S2.SS3.p1.1)\.
- \[6\]Anthropic\(2026\)Prompt caching\.External Links:[Link](https://platform.claude.com/docs/en/build-with-claude/prompt-caching)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1)\.
- \[7\]Apple Inc\.\(2026\)Powermetrics \(macos command\-line utility\)\.Apple Developer\.Note:Available at:https://developer\.apple\.com/Cited by:[§8\.5](https://arxiv.org/html/2608.20566#S8.SS5.p1.1)\.
- \[8\]AWS\(2026\)Prompt caching for faster model inference\.External Links:[Link](https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§1](https://arxiv.org/html/2608.20566#S1.p4.1),[§5\.2](https://arxiv.org/html/2608.20566#S5.SS2.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[9\]L\. Bai, Z\. Huang, X\. Wang, J\. Sun, R\. Mihalcea, E\. Brynjolfsson, A\. Pentland, and J\. Pei\(2026\)How do AI agents spend your money? analyzing and predicting token consumption in agentic coding tasks\.External Links:2604\.22750,[Document](https://dx.doi.org/10.48550/arXiv.2604.22750),[Link](https://arxiv.org/abs/2604.22750)Cited by:[§4](https://arxiv.org/html/2608.20566#S4.p1.1),[§5\.1](https://arxiv.org/html/2608.20566#S5.SS1.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p5.1)\.
- \[10\]P\. Budzianowski, T\. Wen, B\. Tseng, I\. Casanueva, S\. Ultes, O\. Ramadan, and M\. Gašić\(2018\)MultiWOZ – a large\-scale multi\-domain wizard\-of\-oz dataset for task\-oriented dialogue modelling\.InProceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,External Links:[Link](https://doi.org/10.48550/arXiv.1810.00278)Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.5.3.1)\.
- \[11\]J\. Chung, B\. Shin, J\. Kim, and M\. Rhu\(2026\)Agent\-x: full pipeline acceleration of on\-device ai agents\.InProceedings of the 24th Annual International Conference on Mobile Systems, Applications and Services,MobiSys ’26,New York, NY, USA,pp\. 144–157\.External Links:ISBN 9798400720277,[Link](https://doi.org/10.1145/3745756.3809195),[Document](https://dx.doi.org/10.1145/3745756.3809195)Cited by:[§4\.2](https://arxiv.org/html/2608.20566#S4.SS2.p3.1),[§4](https://arxiv.org/html/2608.20566#S4.p1.1)\.
- \[12\]X\. Deng, Y\. Gu, B\. Zheng, S\. Chen, S\. Stevens, B\. Wang, H\. Sun, and Y\. Su\(2023\)MIND2WEB: towards a generalist agent for the web\.InProceedings of the 37th International Conference on Neural Information Processing Systems \(NeurIPS\),External Links:[Link](https://doi.org/10.48550/arXiv.2306.06070)Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.4.3.1)\.
- \[13\]S\. Ding, X\. Dai, L\. Xing, S\. Ding, Z\. Liu, Y\. JingYi, P\. Yang, Z\. Zhang, X\. Wei, X\. Fang, Y\. Ma, H\. Duan, J\. Shao, J\. Wang, D\. Lin, K\. Chen, and Y\. Zang\(2026\)WildClawBench: a benchmark for real\-world, long\-horizon agent evaluation\.External Links:2605\.10912,[Link](https://arxiv.org/abs/2605.10912)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p2.1),[§2\.2](https://arxiv.org/html/2608.20566#S2.SS2.p1.1),[§2\.3](https://arxiv.org/html/2608.20566#S2.SS3.p1.1),[Table 2](https://arxiv.org/html/2608.20566#S3.T2),[Table 2](https://arxiv.org/html/2608.20566#S3.T2.3),[§4\.1](https://arxiv.org/html/2608.20566#S4.SS1.p1.1)\.
- \[14\]EIA\(2026\)Hourly electric grid monitor\.External Links:[Link](https://www.eia.gov/electricity/gridmonitor/)Cited by:[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p1.1),[§8\.1](https://arxiv.org/html/2608.20566#S8.SS1.p4.1)\.
- \[15\]Electricity Maps\(2026\)Electricity maps\.Note:https://www\.electricitymap\.org/map/Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p4.1),[Table 1](https://arxiv.org/html/2608.20566#S2.T1),[Table 1](https://arxiv.org/html/2608.20566#S2.T1.5),[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p1.1)\.
- \[16\]C\. Elsworth, K\. Huang, D\. Patterson, I\. Schneider, R\. Sedivy, S\. Goodman, B\. Townsend, P\. Ranganathan, J\. Dean, A\. Vahdat, B\. Gomes, and J\. Manyika\(2025\)Measuring the environmental impact of delivering AI at Google scale\.External Links:2508\.15734,[Document](https://dx.doi.org/10.48550/arXiv.2508.15734),[Link](https://arxiv.org/abs/2508.15734)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1),[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p1.1),[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p2.1)\.
- \[17\]ENTSO\-E\(2026\)Transparency platform\.External Links:[Link](https://transparency.entsoe.eu/)Cited by:[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p1.1),[§8\.1](https://arxiv.org/html/2608.20566#S8.SS1.p4.1)\.
- \[18\]EPA\(2026\)Greenhouse gas emissions from a typical passenger vehicle\.External Links:[Link](https://www.epa.gov/greenvehicles/greenhouse-gas-emissions-typical-passenger-vehicle)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1)\.
- \[19\]A\. Faiz, S\. Kaneda, R\. Wang, R\. Osi, P\. Sharma, F\. Chen, and L\. Jiang\(2024\)LLMCarbon: modeling the end\-to\-end carbon footprint of large language models\.External Links:2309\.14393,[Link](https://arxiv.org/abs/2309.14393)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1),[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p1.1),[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p2.2),[§9](https://arxiv.org/html/2608.20566#S9.p3.1)\.
- \[20\]Z\. Fan, K\. Vasilevski, D\. Lin, B\. Chen, Y\. Chen, Z\. Zhong, J\. M\. Zhang, P\. He, and A\. E\. Hassan\(2025\)SWE\-Effi: re\-evaluating software AI agent system effectiveness under resource constraints\.External Links:2509\.09853,[Document](https://dx.doi.org/10.48550/arXiv.2509.09853),[Link](https://arxiv.org/abs/2509.09853)Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p5.1)\.
- \[21\]B\. Gao, Z\. He, P\. Sharma, Q\. Kang, D\. Jevdjic, J\. Deng, X\. Yang, Z\. Yu, and P\. Zuo\(2024\)Cost\-Efficient large language model serving for multi\-turn conversations with CachedAttention\.InUSENIX Annual Technical Conference \(ATC\),Santa Clara, CA,pp\. 111–126\.External Links:[Link](https://www.usenix.org/conference/atc24/presentation/gao-bin-cost)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§2\.1](https://arxiv.org/html/2608.20566#S2.SS1.p1.1),[§5\.2](https://arxiv.org/html/2608.20566#S5.SS2.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[22\]S\. Gao, Y\. Chen, and J\. Shu\(2025\)Fast state restoration in LLM serving with hcache\.InProceedings of the Twentieth European Conference on Computer Systems,EuroSys,New York, NY, USA,pp\. 128–143\.External Links:ISBN 9798400711961,[Link](https://doi.org/10.1145/3689031.3696072),[Document](https://dx.doi.org/10.1145/3689031.3696072)Cited by:[§5\.2](https://arxiv.org/html/2608.20566#S5.SS2.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[23\]I\. Gim, G\. Chen, S\. Lee, N\. Sarda, A\. Khandelwal, and L\. Zhong\(2024\)Prompt cache: modular attention reuse for low\-latency inference\.InProceedings of Machine Learning and Systems,P\. Gibbons, G\. Pekhimenko, and C\. D\. Sa \(Eds\.\),Vol\.6,pp\. 325–338\.External Links:[Link](https://proceedings.mlsys.org/paper_files/paper/2024/file/a66caa1703fe34705a4368c3014c1966-Paper-Conference.pdf)Cited by:[§5\.2](https://arxiv.org/html/2608.20566#S5.SS2.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[24\]Google Cloud\(2026\)Vertex AI locations\.External Links:[Link](https://cloud.google.com/vertex-ai/docs/general/locations)Cited by:[§6\.5](https://arxiv.org/html/2608.20566#S6.SS5.p2.1)\.
- \[25\]Google\(2026\)Antigravity 2\.0\.External Links:[Link](https://www.antigravity.google/docs/overview)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§2\.3](https://arxiv.org/html/2608.20566#S2.SS3.p1.1)\.
- \[26\]Google\(2026\)Context caching\.External Links:[Link](https://ai.google.dev/gemini-api/docs/caching)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[27\]Google\(2026\)Gemini developer API pricing\.External Links:[Link](https://ai.google.dev/gemini-api/docs/pricing)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1),[§8\.3](https://arxiv.org/html/2608.20566#S8.SS3.p2.1)\.
- \[28\]Google\(2026\)Gemma 4 model card\.Note:Google AI for Developers documentationExternal Links:[Link](https://ai.google.dev/gemma/docs/core/model_card_4)Cited by:[§8\.1](https://arxiv.org/html/2608.20566#S8.SS1.p2.1)\.
- \[29\]Google\(2026\)Use a context cache\.External Links:[Link](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/context-cache/context-cache-use)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p4.1),[§5\.2](https://arxiv.org/html/2608.20566#S5.SS2.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[30\]V\. U\. Gsteiger, P\. H\. \(\. Long, Y\. \(\. Sun, P\. Javanrood, and M\. Shahrad\(2024\)Caribou: fine\-grained geospatial shifting of serverless applications for sustainability\.InProceedings of the ACM SIGOPS 30th Symposium on Operating Systems Principles,SOSP\.External Links:[Link](https://doi.org/10.1145/3694715.3695954),[Document](https://dx.doi.org/10.1145/3694715.3695954)Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p4.1),[§5](https://arxiv.org/html/2608.20566#S5.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p2.1)\.
- \[31\]Y\. Guo and G\. Porter\(2023\)Carbon\-aware inter\-datacenter workload scheduling and placement\.InProceedings of the 20th USENIX Symposium on Networked Systems Design and Implementation \(NSDI\),pp\. 189–204\.Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p4.1)\.
- \[32\]U\. Gupta, M\. Elgamal, G\. Hills, G\. Wei, H\. S\. Lee, D\. Brooks, and C\. Wu\(2022\)ACT: designing sustainable computer systems with an architectural carbon modeling tool\.InProceedings of the 49th Annual International Symposium on Computer Architecture \(ISCA\),New York, NY, USA,pp\. 784–799\.External Links:ISBN 9781450386104,[Link](https://doi.org/10.1145/3470496.3527408),[Document](https://dx.doi.org/10.1145/3470496.3527408)Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p2.2),[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p3.1)\.
- \[33\]W\. A\. Hanafy, Q\. Liang, N\. Bashir, A\. Souza, D\. Irwin, and P\. Shenoy\(2024\)Going green for less green: optimizing the cost of reducing cloud carbon emissions\.InProceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3,ASPLOS,pp\. 479–496\.External Links:[Link](https://doi.org/10.1145/3620666.3651374),[Document](https://dx.doi.org/10.1145/3620666.3651374)Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p4.1),[§5](https://arxiv.org/html/2608.20566#S5.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p2.1)\.
- \[34\]S\. Hong, Y\. Lin, B\. Liu, B\. Liu, B\. Wu, C\. Zhang, D\. Li, J\. Chen, J\. Zhang, J\. Wang, L\. Zhang, L\. Zhang, M\. Yang, M\. Zhuge, T\. Guo, T\. Zhou, W\. Tao, R\. Tang, X\. Lu, X\. Zheng, X\. Liang, Y\. Fei, Y\. Cheng, Y\. Ni, Z\. Gou, Z\. Xu, Y\. Luo, and C\. Wu\(2025\)Data interpreter: an LLM agent for data science\.InFindings of the Association for Computational Linguistics \(ACL\),W\. Che, J\. Nabende, E\. Shutova, and M\. T\. Pilehvar \(Eds\.\),External Links:[Link](https://aclanthology.org/2025.findings-acl.1016/),[Document](https://dx.doi.org/10.18653/v1/2025.findings-acl.1016)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1)\.
- \[35\]Q\. Huang, J\. Vora, P\. Liang, and J\. Leskovec\(2024\)MLAgentBench: evaluating language agents on machine learning experimentation\.InProceedings of the 41st International Conference on Machine Learning,ICML\.External Links:[Link](https://proceedings.mlr.press/v235/huang24y.html)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1)\.
- \[36\]Y\. Huang, J\. Luo, Y\. Yu, Y\. Zhang, F\. Lei, Y\. Wei, S\. He, L\. Huang, X\. Liu, J\. Zhao, and K\. Liu\(2024\)DA\-code: agent data science code generation benchmark for large language models\.arXiv preprint arXiv:2410\.07331\.External Links:[Link](https://arxiv.org/abs/2410.07331),[Document](https://dx.doi.org/10.48550/arXiv.2410.07331)Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.10.3.1)\.
- \[37\]IEA\(2025\)Energy and ai\.Technical reportExternal Links:[Link](https://www.iea.org/reports/energy-and-ai)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1),[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p1.1)\.
- \[38\]N\. Jegham, M\. Abdelatti, C\. Y\. Koh, L\. Elmoubarki, and A\. Hendawi\(2025\)How hungry is AI? benchmarking energy, water, and carbon footprint of LLM inference\.External Links:2505\.09598,[Document](https://dx.doi.org/10.48550/arXiv.2505.09598),[Link](https://arxiv.org/abs/2505.09598)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1),[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p2.1),[§9](https://arxiv.org/html/2608.20566#S9.p3.1)\.
- \[39\]C\. E\. Jimenez, J\. Yang, A\. Wettig, S\. Yao, K\. Pei, O\. Press, and K\. R\. Narasimhan\(2024\)SWE\-bench: can language models resolve real\-world github issues?\.InThe Twelfth International Conference on Learning Representations \(ICLR\),External Links:[Link](https://openreview.net/forum?id=VTF8yNQM66)Cited by:[§2\.2](https://arxiv.org/html/2608.20566#S2.SS2.p1.1),[§4](https://arxiv.org/html/2608.20566#S4.p1.1)\.
- \[40\]J\. Y\. Koh, R\. Lo, L\. Jang, V\. Duvvur, M\. Lim, P\. Huang, G\. Neubig, S\. Zhou, R\. Salakhutdinov, and D\. Fried\(2024\)VisualWebArena: evaluating multimodal agents on realistic visual web tasks\.External Links:2401\.13649,[Link](https://arxiv.org/abs/2401.13649)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1)\.
- \[41\]W\. Kwon, Z\. Li, S\. Zhuang, Y\. Sheng, L\. Zheng, C\. H\. Yu, J\. Gonzalez, H\. Zhang, and I\. Stoica\(2023\)Efficient memory management for large language model serving with PagedAttention\.InProceedings of the 29th Symposium on Operating Systems Principles,SOSP\.External Links:[Link](https://doi.org/10.1145/3600006.3613165),[Document](https://dx.doi.org/10.1145/3600006.3613165)Cited by:[§2\.1](https://arxiv.org/html/2608.20566#S2.SS1.p1.1),[§6\.3](https://arxiv.org/html/2608.20566#S6.SS3.p1.1)\.
- \[42\]O\. Lacombe and O\. Sanseviero\(2026\)Gemma 4 with quantization\-aware training\.External Links:[Link](https://blog.google/innovation-and-ai/technology/developers-tools/quantization-aware-training-gemma-4/)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p5.1)\.
- \[43\]B\. Li, S\. Samsi, V\. Gadepally, and D\. Tiwari\(2023\)Clover: toward sustainable AI with carbon\-aware machine learning inference service\.InProceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis,SC,New York, NY, USA\.External Links:ISBN 9798400701092,[Link](https://doi.org/10.1145/3581784.3607034),[Document](https://dx.doi.org/10.1145/3581784.3607034)Cited by:[§5](https://arxiv.org/html/2608.20566#S5.p1.1)\.
- \[44\]H\. Li, R\. Wen, S\. Shi, N\. Zhang, Y\. Vorobeychik, and C\. Xiao\(2026\)AgentDyn: are your agent security defenses deployable in real\-world dynamic environments?\.External Links:2602\.03117Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.9.3.1)\.
- \[45\]Y\. Li, Z\. Hu, E\. Choukse, R\. Fonseca, G\. E\. Suh, and U\. Gupta\(2025\)Ecoserve: designing carbon\-aware AI inference systems\.arXiv preprint arXiv:2502\.05043\.Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p4.1),[§5](https://arxiv.org/html/2608.20566#S5.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p3.1)\.
- \[46\]Y\. Lisa Li, L\. Han, G\. E\. Suh, C\. Delimitrou, F\. Kazhamiaka, E\. Choukse, R\. Fonseca, L\. Yu, J\. Mace, and U\. Gupta\(2025\)Fair, practical, and efficient carbon accounting for llm serving\.SIGMETRICS Perform\. Eval\. Rev\.53\(2\),pp\. 99–103\.External Links:ISSN 0163\-5999,[Link](https://doi.org/10.1145/3764944.3764967),[Document](https://dx.doi.org/10.1145/3764944.3764967)Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p1.1),[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p2.2)\.
- \[47\]X\. Liu, H\. Yu, H\. Zhang, Y\. Xu, X\. Lei, H\. Lai, Y\. Gu, H\. Ding, K\. Men, K\. Yang, S\. Zhang, X\. Deng, A\. Zeng, Z\. Du, C\. Zhang, S\. Shen, T\. Zhang, Y\. Su, H\. Sun, M\. Huang, Y\. Dong, and J\. Tang\(2023\)AgentBench: evaluating LLMs as agents\.Note:arXiv preprint arXiv:2308\.03688External Links:[Link](https://arxiv.org/abs/2308.03688)Cited by:[§2\.2](https://arxiv.org/html/2608.20566#S2.SS2.p1.1),[§4](https://arxiv.org/html/2608.20566#S4.p1.1),[§5\.1](https://arxiv.org/html/2608.20566#S5.SS1.p2.1)\.
- \[48\]Y\. Liu, H\. Li, Y\. Cheng, S\. Ray, Y\. Huang, Q\. Zhang, K\. Du, J\. Yao, S\. Lu, G\. Ananthanarayanan, M\. Maire, H\. Hoffmann, A\. Holtzman, and J\. Jiang\(2024\)CacheGen: KV cache compression and streaming for fast large language model serving\.InProceedings of the ACM SIGCOMM 2024 Conference,SIGCOMM\.External Links:[Link](https://doi.org/10.1145/3651890.3672274),[Document](https://dx.doi.org/10.1145/3651890.3672274)Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[49\]LMCache Team\(2025\)LMCache\.Note:https://lmcache\.ai/Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[50\]A\. Madaan, N\. Tandon, P\. Gupta, S\. Hallinan, L\. Gao, S\. Wiegreffe, U\. Alon, N\. Dziri, S\. Prabhumoye, Y\. Yang, S\. Welleck, B\. P\. Majumder, S\. Gupta, A\. Yazdanbakhsh, and P\. Clark\(2023\)Self\-Refine: iterative refinement with self\-feedback\.External Links:2303\.17651,[Link](https://doi.org/10.48550/arXiv.2303.17651)Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.8.3.1)\.
- \[51\]D\. Maji, P\. Shenoy, and R\. K\. Sitaraman\(2022\)CarbonCast: multi\-day forecasting of grid carbon intensity\.InProceedings of the 9th ACM International Conference on Systems for Energy\-Efficient Buildings, Cities, and Transportation,pp\. 198–207\.Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1)\.
- \[52\]A\. Mitchell, W\. Ruml, F\. Spaniol, J\. Hoffmann, and M\. Petrik\(2019\)Real\-time planning as decision\-making under uncertainty\.Proceedings of the AAAI Conference on Artificial Intelligence\.External Links:[Document](https://dx.doi.org/10.1609/aaai.v33i01.33012338),[Link](https://ojs.aaai.org/index.php/AAAI/article/view/4073)Cited by:[§5\.1](https://arxiv.org/html/2608.20566#S5.SS1.p1.1)\.
- \[53\]NESO\(2026\)National Energy System Operator\.External Links:[Link](https://www.neso.energy/)Cited by:[§8\.1](https://arxiv.org/html/2608.20566#S8.SS1.p4.1)\.
- \[54\]S\. Nguyen, B\. Zhou, Y\. Ding, and S\. Liu\(2024\)Towards sustainable large language model serving\.InProceedings of the 3rd Workshop on Sustainable Computer Systems \(HotCarbon\),Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p3.1)\.
- \[55\]Ollama\(2026\)Ollama documentation\.Note:https://docs\.ollama\.com/Cited by:[§8\.1](https://arxiv.org/html/2608.20566#S8.SS1.p2.1)\.
- \[56\]OpenAI\(2026\)Codex\.External Links:[Link](https://openai.com/codex/)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§2\.2](https://arxiv.org/html/2608.20566#S2.SS2.p1.1),[§2\.3](https://arxiv.org/html/2608.20566#S2.SS3.p1.1)\.
- \[57\]OpenAI\(2026\)Create a model response\.External Links:[Link](https://platform.openai.com/docs/api-reference/responses/create)Cited by:[§2\.3](https://arxiv.org/html/2608.20566#S2.SS3.p1.1),[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p3.1)\.
- \[58\]OpenAI\(2026\)Data controls in the OpenAI platform\.External Links:[Link](https://developers.openai.com/api/docs/guides/your-data)Cited by:[§6\.5](https://arxiv.org/html/2608.20566#S6.SS5.p2.1)\.
- \[59\]OpenAI\(2026\)Pricing\.External Links:[Link](https://openai.com/business/pricing/#api)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1),[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p4.1),[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p4.2),[§8\.3](https://arxiv.org/html/2608.20566#S8.SS3.p2.1)\.
- \[60\]OpenAI\(2026\)Prompt caching\.External Links:[Link](https://platform.openai.com/docs/guides/prompt-caching)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p3.1)\.
- \[61\]OpenAI\(2026\)Scheduled tasks in ChatGPT\.Note:https://help\.openai\.com/en/articles/10291617\-scheduled\-tasks\-in\-chatgptCited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§2\.2](https://arxiv.org/html/2608.20566#S2.SS2.p1.1)\.
- \[62\]OpenClaw\(2026\)Model\-agnostic architecture\.Note:https://openclawdoc\.com/docs/models/overview/Cited by:[§2\.3](https://arxiv.org/html/2608.20566#S2.SS3.p1.1)\.
- \[63\]OpenClaw\(2026\)Welcome to OpenClaw\.Note:https://openclawdoc\.com/docs/intro/Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§1](https://arxiv.org/html/2608.20566#S1.p7.1),[Figure 1](https://arxiv.org/html/2608.20566#S2.F1),[Figure 1](https://arxiv.org/html/2608.20566#S2.F1.3),[§2\.3](https://arxiv.org/html/2608.20566#S2.SS3.p1.1)\.
- \[64\]OpenRouter\(2026\)Google Gemini 3\.1 Pro Preview\.External Links:[Link](https://openrouter.ai/google/gemini-3.1-pro-preview)Cited by:[§A\.1](https://arxiv.org/html/2608.20566#A1.SS1.p1.1)\.
- \[65\]OpenRouter\(2026\)OpenAI GPT\-5\.4\.External Links:[Link](https://openrouter.ai/openai/gpt-5.4)Cited by:[§A\.1](https://arxiv.org/html/2608.20566#A1.SS1.p1.1)\.
- \[66\]P\. Patel, E\. Choukse, C\. Zhang, Í\. Goiri, A\. Shah, S\. Maleki, and R\. Bianchini\(2024\)Splitwise improves GPU usage by splitting LLM inference phases\.InInternational Symposium on Computer Architecture \(ISCA\),Cited by:[§2\.1](https://arxiv.org/html/2608.20566#S2.SS1.p1.1)\.
- \[67\]R\. Qin, Z\. Li, W\. He, M\. Zhang, Y\. Wu, W\. Zheng, and X\. Xu\(2024\)Mooncake: a KVCache\-centric disaggregated architecture for LLM serving\.External Links:2407\.00079,[Link](https://arxiv.org/abs/2407.00079)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p4.1),[§5\.2](https://arxiv.org/html/2608.20566#S5.SS2.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[68\]Y\. Qin, S\. Liang, Y\. Ye, K\. Zhu, L\. Yan, Y\. Lu, Y\. Lin, X\. Cong, X\. Tang, B\. Qian, S\. Zhao, R\. Tian, R\. Xie, J\. Zhou, M\. Gerstein, D\. Li, Z\. Liu, and M\. Sun\(2024\)ToolLLM: facilitating large language models to master 16000\+ real\-world apis\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/pdf?id=dHng2O0Jjr)Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.3.3.1)\.
- \[69\]A\. Radovanovic, R\. Koningstein, I\. Schneider, B\. Chen, A\. Duarte, B\. Roy, D\. Xiao, M\. Haridasan, P\. Hung, N\. Care, S\. Talukdar, E\. Mullen, K\. Smith, M\. Cottman, and W\. Cirne\(2023\)Carbon\-aware computing for datacenters\.IEEE Transactions on Power Systems38\(2\),pp\. 1277–1290\.External Links:[Document](https://dx.doi.org/10.1109/TPWRS.2022.3173250)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p4.1)\.
- \[70\]M\. Salim, J\. Latendresse, S\. Khatoonabadi, and E\. Shihab\(2026\)Tokenomics: quantifying where tokens are used in agentic software engineering\.External Links:2601\.14470,[Document](https://dx.doi.org/10.48550/arXiv.2601.14470),[Link](https://arxiv.org/abs/2601.14470)Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p5.1)\.
- \[71\]S\. Samsi, D\. Zhao, J\. McDonald, B\. Li, A\. Michaleas, M\. Jones, W\. Bergeron, J\. Kepner, D\. Tiwari, and V\. Gadepally\(2023\)From words to watts: benchmarking the energy costs of large language model inference\.InIEEE High Performance Extreme Computing Conference \(HPEC\),Waltham, MA, USA,pp\. 1–9\.External Links:[Document](https://dx.doi.org/10.1109/HPEC58863.2023.10363447)Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p3.1)\.
- \[72\]T\. Schick, J\. Dwivedi\-Yu, R\. Dessì, R\. Raileanu, M\. Lomeli, E\. Hambro, L\. Zettlemoyer, N\. Cancedda, and T\. Scialom\(2023\)Toolformer: language models can teach themselves to use tools\.InAdvances in Neural Information Processing Systems,Vol\.36\.Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1)\.
- \[73\]SFAI\(2026\)OpenClaw hardware requirements: minimum, recommended, and production specs\.External Links:[Link](https://sfailabs.com/guides/openclaw-hardware-requirements)Cited by:[§3\.1](https://arxiv.org/html/2608.20566#S3.SS1.p1.1)\.
- \[74\]T\. Shi, Y\. Wu, S\. Liu, and Y\. Ding\(2024\)GreenLLM: disaggregating large language model serving on heterogeneous GPUs for lower carbon emissions\.External Links:2412\.20322,[Link](https://arxiv.org/abs/2412.20322)Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p2.2),[§9](https://arxiv.org/html/2608.20566#S9.p3.1)\.
- \[75\]A\. Singla, A\. Sukharevsky, B\. Hall, L\. Yee, M\. Chui, and T\. Balakrishnan\(2025\)The state of AI in 2025: agents, innovation, and transformation\.External Links:[Link](https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§2\.2](https://arxiv.org/html/2608.20566#S2.SS2.p1.1)\.
- \[76\]A\. Souza, S\. Jasoria, B\. Chakrabarty, A\. Bridgwater, A\. Lundberg, F\. Skogh, A\. Ali\-Eldin, D\. Irwin, and P\. Shenoy\(2023\)CASPER: carbon\-aware scheduling and provisioning for distributed web services\.InThe 14th International Green and Sustainable Computing Conference \(IGSC\),External Links:[Document](https://dx.doi.org/10.1145/3634769.3634812),[Link](https://arxiv.org/abs/2403.14792),2403\.14792Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p3.1),[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p4.1),[§5](https://arxiv.org/html/2608.20566#S5.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p2.1)\.
- \[77\]J\. Stojkovic, C\. Zhang, Í\. Goiri, J\. Torrellas, and E\. Choukse\(2025\)DynamoLLM: designing LLM inference clusters for performance and energy efficiency\.InIEEE International Symposium on High Performance Computer Architecture \(HPCA\),Vol\.,pp\. 1348–1362\.External Links:[Document](https://dx.doi.org/10.1109/HPCA61900.2025.00102)Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p3.1)\.
- \[78\]T\. Sukprasert, A\. Souza, N\. Bashir, D\. Irwin, and P\. Shenoy\(2023\)On the limitations of carbon\-aware temporal and spatial workload shifting in the cloud\.arXiv preprint arXiv:2306\.06502\.Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p4.1)\.
- \[79\]L\. Wang, C\. Ma, X\. Feng, Z\. Zhang, H\. Yang, J\. Zhang, Z\. Chen, J\. Tang, X\. Chen, Y\. Lin, W\. X\. Zhao, Z\. Wei, and J\. Wen\(2024\)A survey on large language model based autonomous agents\.Frontiers of Computer Science18\(6\)\.External Links:ISSN 2095\-2236,[Link](http://dx.doi.org/10.1007/s11704-024-40231-1),[Document](https://dx.doi.org/10.1007/s11704-024-40231-1)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1)\.
- \[80\]WattTime\(2024\)WattTime\.External Links:[Link](https://www.watttime.org/)Cited by:[§3\.2](https://arxiv.org/html/2608.20566#S3.SS2.p1.1)\.
- \[81\]P\. Wiesner, I\. Behnke, D\. Scheinert, K\. Gontarska, and L\. Thamsen\(2021\)Let’s Wait Awhile: how temporal workload shifting can reduce carbon emissions in the cloud\.InProceedings of the 22nd International Middleware Conference,New York, NY, USA,pp\. 260–272\.External Links:[Document](https://dx.doi.org/10.1145/3464298.3493399)Cited by:[§5](https://arxiv.org/html/2608.20566#S5.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p2.1)\.
- \[82\]T\. Xie, D\. Zhang, J\. Chen, X\. Li, S\. Zhao, R\. Cao, J\. H\. Toh, Z\. Cheng, D\. Shin, F\. Lei, Y\. Liu, Y\. Xu, S\. Zhou, S\. Savarese, C\. Xiong, V\. Zhong, and T\. Yu\(2024\)OSWorld: benchmarking multimodal agents for open\-ended tasks in real computer environments\.External Links:2404\.07972,[Link](https://doi.org/10.48550/arXiv.2404.07972)Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.7.3.1)\.
- \[83\]H\. Xu, X\. Huang, Y\. Liu, and Z\. Deng\(2026\)TPS\-bench: evaluating AI agents’ tool planning & scheduling abilities in compounding tasks\.InProceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),San Diego, California, United States\.External Links:[Document](https://dx.doi.org/10.18653/v1/2026.acl-long.1614),[Link](https://aclanthology.org/2026.acl-long.1614/)Cited by:[§5\.1](https://arxiv.org/html/2608.20566#S5.SS1.p1.1)\.
- \[84\]M\. Xu and R\. Buyya\(2020\)Managing renewable energy and carbon footprint in multi\-cloud computing environments\.Journal of Parallel and Distributed Computing135,pp\. 191–202\.External Links:[Document](https://dx.doi.org/10.1016/j.jpdc.2019.09.015)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p4.1)\.
- \[85\]J\. Yan, W\. Ni, L\. Chen, X\. Lin, P\. Cheng, Z\. Qin, and K\. Ren\(2025\)ContextCache: context\-aware semantic cache for multi\-turn queries in large language models\.Proc\. VLDB Endow\.18\(12\),pp\. 5391–5394\.External Links:ISSN 2150\-8097,[Link](https://doi.org/10.14778/3750601.3750679),[Document](https://dx.doi.org/10.14778/3750601.3750679)Cited by:[§2\.1](https://arxiv.org/html/2608.20566#S2.SS1.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[86\]L\. Yan, L\. Wang, S\. Liu, and Y\. Ding\(2025\)EnsembleCI: ensemble learning for carbon intensity forecasting\.InProceedings of the 16th ACM International Conference on Future and Sustainable Energy Systems,pp\. 208–212\.Cited by:[§6\.4](https://arxiv.org/html/2608.20566#S6.SS4.p1.1),[§8\.4\.2](https://arxiv.org/html/2608.20566#S8.SS4.SSS2.p1.1)\.
- \[87\]J\. Yang, C\. E\. Jimenez, A\. Wettig, K\. Lieret, S\. Yao, K\. Narasimhan, and O\. Press\(2024\)SWE\-agent: agent\-computer interfaces enable automated software engineering\.External Links:2405\.15793,[Link](https://arxiv.org/abs/2405.15793)Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.6.3.1),[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§6\.2](https://arxiv.org/html/2608.20566#S6.SS2.p2.1)\.
- \[88\]J\. Yao, H\. Li, Y\. Liu, S\. Ray, Y\. Cheng, Q\. Zhang, K\. Du, S\. Lu, and J\. Jiang\(2025\)CacheBlend: fast large language model serving for RAG with cached knowledge fusion\.InProceedings of the Twentieth European Conference on Computer Systems,EuroSys,New York, NY, USA,pp\. 94–109\.External Links:[Link](https://doi.org/10.1145/3689031.3696098),[Document](https://dx.doi.org/10.1145/3689031.3696098)Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[89\]S\. Yao, J\. Zhao, D\. Yu, N\. Du, I\. Shafran, K\. Narasimhan, and Y\. Cao\(2023\)ReAct: synergizing reasoning and acting in language models\.InInternational Conference on Learning Representations \(ICLR\),External Links:[Link](https://arxiv.org/abs/2210.03629)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§5\.1](https://arxiv.org/html/2608.20566#S5.SS1.p1.1),[§5\.1](https://arxiv.org/html/2608.20566#S5.SS1.p2.1),[§6\.2](https://arxiv.org/html/2608.20566#S6.SS2.p2.1)\.
- \[90\]C\. Yu, T\. Wang, Z\. Shao, and S\. Jiang\(2025\)SmartCache: context\-aware semantic cache for efficient multi\-turn LLM inference\.InAdvances in Neural Information Processing Systems,NeurIPS\.External Links:[Link](https://openreview.net/forum?id=lMxuq0GNeC)Cited by:[§2\.1](https://arxiv.org/html/2608.20566#S2.SS1.p1.1),[§9](https://arxiv.org/html/2608.20566#S9.p4.1)\.
- \[91\]G\. Yu, J\. S\. Jeong, G\. Kim, S\. Kim, and B\. Chun\(2022\)Orca: a distributed serving system for Transformer\-Based generative models\.In16th USENIX Symposium on Operating Systems Design and Implementation \(OSDI\),Carlsbad, CA,pp\. 521–538\.External Links:ISBN 978\-1\-939133\-28\-1,[Link](https://www.usenix.org/conference/osdi22/presentation/yu)Cited by:[§2\.1](https://arxiv.org/html/2608.20566#S2.SS1.p1.1)\.
- \[92\]Y\. Yuan, A\. Nayak, S\. Kundu, and N\. Talati\(2026\)Agentic AI workload characteristics\.External Links:2605\.26297,[Link](https://arxiv.org/abs/2605.26297)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§2\.2](https://arxiv.org/html/2608.20566#S2.SS2.p1.1),[§4\.2](https://arxiv.org/html/2608.20566#S4.SS2.p3.1),[§4](https://arxiv.org/html/2608.20566#S4.p1.1)\.
- \[93\]J\. R\. Zhang, G\. Du, Q\. Sun, S\. Wang, J\. Li, and X\. Sun\(2026\)Carbon\-aware compute–power scheduling for AI data centers with microgrid prosumer operations\.External Links:2605\.03751,[Document](https://dx.doi.org/10.48550/arXiv.2605.03751),[Link](https://arxiv.org/abs/2605.03751)Cited by:[§2\.4](https://arxiv.org/html/2608.20566#S2.SS4.p4.1),[§9](https://arxiv.org/html/2608.20566#S9.p2.1),[§9](https://arxiv.org/html/2608.20566#S9.p3.1)\.
- \[94\]A\. Zhao and J\. Liu\(2026\)Heterogeneous computing: the key to powering the future of AI agent inference\.Computer59\(4\),pp\. 165–171\.External Links:[Document](https://dx.doi.org/10.1109/MC.2026.3659288)Cited by:[§4\.2](https://arxiv.org/html/2608.20566#S4.SS2.p3.1),[§4](https://arxiv.org/html/2608.20566#S4.p1.1)\.
- \[95\]Y\. Zheng, J\. Fan, Q\. Fu, Y\. Yang, W\. Zhang, and A\. Quinn\(2026\)AgentCgroup: understanding and controlling OS resources of AI agents\.External Links:2602\.09345,[Document](https://dx.doi.org/10.48550/arXiv.2602.09345),[Link](https://arxiv.org/abs/2602.09345)Cited by:[§9](https://arxiv.org/html/2608.20566#S9.p5.1)\.
- \[96\]Y\. Zhong, S\. Liu, J\. Chen, J\. Hu, Y\. Zhu, X\. Liu, X\. Jin, and H\. Zhang\(2024\)DistServe: disaggregating prefill and decoding for goodput\-optimized large language model serving\.In18th USENIX Symposium on Operating Systems Design and Implementation \(OSDI\),Santa Clara, CA,pp\. 193–210\.External Links:[Link](https://www.usenix.org/conference/osdi24/presentation/zhong-yinmin)Cited by:[§2\.1](https://arxiv.org/html/2608.20566#S2.SS1.p1.1)\.
- \[97\]J\. Zhou, T\. Lu, S\. Mishra, S\. Brahma, S\. Basu, Y\. Luan, D\. Zhou, and L\. Hou\(2023\)Instruction\-following evaluation for large language models\.arXiv preprint arXiv:2311\.07911\.External Links:[Link](https://arxiv.org/abs/2311.07911),[Document](https://dx.doi.org/10.48550/arXiv.2311.07911)Cited by:[Table 4](https://arxiv.org/html/2608.20566#A1.T4.6.2.3.1)\.
- \[98\]S\. Zhou, F\. F\. Xu, H\. Zhu, X\. Zhou, R\. Lo, A\. Sridhar, X\. Cheng, T\. Ou, Y\. Bisk, D\. Fried, U\. Alon, and G\. Neubig\(2024\)WebArena: a realistic web environment for building autonomous agents\.InInternational Conference on Learning Representations \(ICLR\),External Links:[Link](https://openreview.net/forum?id=oKn9c6ytLx)Cited by:[§1](https://arxiv.org/html/2608.20566#S1.p1.1),[§2\.2](https://arxiv.org/html/2608.20566#S2.SS2.p1.1),[§4](https://arxiv.org/html/2608.20566#S4.p1.1)\.
- \[99\]K\. Zhu, M\. Jacob, C\. Ma, Y\. Pan, S\. Wang, A\. Krishnamurthy, and B\. Kasikci\(2026\)TraceLab: characterizing coding agent workloads for LLM serving\.arXiv preprint arXiv:2606\.30560\.External Links:[Link](https://arxiv.org/abs/2606.30560)Cited by:[§6\.2](https://arxiv.org/html/2608.20566#S6.SS2.p2.1)\.
## Appendix AAppendix
### A\.1\.Execution\-Time Estimator Calibration Categories
[Table4](https://arxiv.org/html/2608.20566#A1.T4)summarizes the heuristic calibration categories used by AgentDecarbonizer’s execution time estimator\. For each category, we use the typical step count or range reported in recent studies, as listed in the table\. The estimator first adjusts the number of steps relative to this baseline according to the predicted task complexity\. It then converts the resulting step count to an approximate wall\-clock time using 267\.6 tokens per step from Open\-SWE\-Traces\[[3](https://arxiv.org/html/2608.20566#bib.bib96)\]\. To estimate API generation time, we use conservative rates derived from OpenRouter’s model\-speed statistics: 74 tokens/s for GPT\-5\.4 and 105 tokens/s for Gemini 3\.1 Pro\[[65](https://arxiv.org/html/2608.20566#bib.bib97),[64](https://arxiv.org/html/2608.20566#bib.bib98)\]\. Because OpenRouter reports real\-time statistics that can vary over time, we use conservative rates rather than instantaneous measurements\.
Table 4\.Phase categories and number of steps per phase\.CategoryTypical steps/rangeReferenceSingle\-context text transformation1IFEval\[[97](https://arxiv.org/html/2608.20566#bib.bib32)\]Structured strict\-format output4ToolLLM\[[68](https://arxiv.org/html/2608.20566#bib.bib26)\]External retrieval/browser/API workflow7\.3Mind2Web\[[12](https://arxiv.org/html/2608.20566#bib.bib27)\]Multi\-turn communication/coordination8\.93–15\.39MultiWOZ\[[10](https://arxiv.org/html/2608.20566#bib.bib28)\]Repository/code/debug workflow14\.71SWE\-agent\[[87](https://arxiv.org/html/2608.20566#bib.bib7)\]Multimodal visual/computer\-use workflow15OSWorld\[[82](https://arxiv.org/html/2608.20566#bib.bib29)\]Generation plus refinement workflow9Self\-Refine\[[50](https://arxiv.org/html/2608.20566#bib.bib8)\]Policy/adversarial\-instruction workflow6\.3–9\.3AgentDyn\[[44](https://arxiv.org/html/2608.20566#bib.bib31)\]Data analysis/computation workflow5\.8–11\.6DA\-Code\[[36](https://arxiv.org/html/2608.20566#bib.bib33)\]Note that[Table4](https://arxiv.org/html/2608.20566#A1.T4)covers common categories that describe execution phases\. We did not profile the benchmark tasks to fine\-tune these numbers, in order to present a generic method\. However, AgentDecarbonizer’s estimator can incorporate additional categories and customize the number of steps depending on the target tasks\. Likewise, the per\-step token count and generation time can be customized based on the specific model used by the workload\.
### A\.2\.Feature\-Extraction Prompt
System prompt for the local model to extract features from the task\.
Youextractcompactfactsforexecutiontimeprediction\.
Onlyagent\_prompt\_sectioncontainsthetaskinput\.
Model\-tracefeaturessummarizethetargetmodel’straceshape,nottheestimatorLLM’strace\.
Donotsolvethetask\.
ReturnonlyvalidminifiedJSON\.Nomarkdown\.Nocomments\.
Beginwith\{andensurethatallbracesareclosed\.
Useintegerseconds\.
Keeparraysshort:atmost6items,exceptforthephasesarray\.
Useplainlabels,notlongparagraphs\.
Youmayusethe’thought’keytoreasonbeforeotherkeys,butdonotwraptheotherschemakeysunderthought,analysis,oranyhelperkeys\.
Instruction template\.
Step1\.Returnexactlythesetop\-levelkeysandnoothers:
thought,category,modality,summary,
inputs,outputs,tools,external\_work,format\_strictness,multimodal,
safety\_traps,complexity,batch\_item\_count,batch\_unit,repeated\_work\.
FillthisJSONschema:
\{
"thought":"",
"category":"",
"modality":"",
"summary":"",
"inputs":\[\],
"outputs":\[\],
"tools":\[\],
"external\_work":"none\|low\|medium\|high",
"format\_strictness":"low\|medium\|high",
"multimodal":"none\|image\|audio\|video\|mixed",
"safety\_traps":\[\],
"complexity":"low\|medium\|high",
"batch\_item\_count":1,
"batch\_unit":"",
"repeated\_work":false
\}
Ifthetaskrequiresdoingsimilarworkformanyfiles/items/records/pages/messages,
setbatch\_item\_counttotherepeateditemcountandrepeated\_worktotrue\.
\{metadata,local\_signal\_features,model\_trace\_features,agent\_prompt\_section\}
### A\.3\.Phase\-Decomposition Prompt
System prompt for the local model to decompose the task\.
Yousplittaskworkintophasesfortiming\.
UseonlytheprovidedJSON\.Donotsolvethetask\.
ReturnonlyvalidminifiedJSON\.Nomarkdown\.Nocomments\.
Beginwith\{andensurethatallbracesareclosed\.
Useintegerseconds\.
Keeparraysshort:atmost6items,exceptforthephasesarray\.
Useplainlabels,notlongparagraphs\.
Youmayusethe’thought’keytoreasonbeforeotherkeys,butdonotwraptheotherschemakeysunderthought,analysis,oranyhelperkeys\.
Instruction template\.
Step2\.Createphases\.
Returnexactlythesetop\-levelkeysandnoothers:
thought,category,phases,dominant\_risks\.
FillthisJSONschema:
\{
"thought":"",
"category":"",
"phases":\[
\{
"phase":"",
"work":"",
"driver":""
\}
\],
"dominant\_risks":\[\]
\}
TASK\_FEATURES:
\{featuresfromStep1\}
### A\.4\.Proof of Theorem[1](https://arxiv.org/html/2608.20566#Thmtheorem1)
###### Proof\.
For eachk∈\{1,…,K\}k\\in\\\{1,\\ldots,K\\\}, regionr∈ℛr\\in\\mathcal\{R\}, and candidate\-interval starting timet∈ℋt\\in\\mathcal\{H\}, defineDr,t\(k\)D^\{\(k\)\}\_\{r,t\}to be the minimum objective value for the firstkkordered execution intervals among all feasible partial placements whosekk\-th execution interval runs in regionrrduring the candidate interval starting attt\. If no such partial placement exists, setDr,t\(k\)=\+∞D^\{\(k\)\}\_\{r,t\}=\+\\infty\. Throughout the proof, the minimum over an empty set is defined to be\+∞\+\\infty\.
We first prove the recurrence by induction onkk\. Fork=1k=1, a placement contains one execution interval and has no predecessor, so no cache\-recomputation penalty can appear\. The only cost is the predicted carbon\-emission termE^r,t\(1\)CI^r,t\\widehat\{E\}^\{\(1\)\}\_\{r,t\}\\widehat\{CI\}\_\{r,t\}, matching the base case in[Section7\.2](https://arxiv.org/html/2608.20566#S7.SS2)\. Now assume the claim holds fork−1k\-1\. Consider any feasible placement ending execution intervalkkin regionrrduring the candidate interval starting attt\. The previous execution interval must use some regionqqand some earlier candidate\-interval starting times<ts<t\. By the induction hypothesis, the best such predecessor placement ending in regionqqat timesshas valueDq,s\(k−1\)D^\{\(k\-1\)\}\_\{q,s\}\. Under[1](https://arxiv.org/html/2608.20566#Thmassumption1), the transition fromqqtorradds no cache\-recomputation cost ifq=rq=rand addsΓr,t\(k\)\\Gamma^\{\(k\)\}\_\{r,t\}ifq≠rq\\neq r\. Therefore, the best feasible predecessor has value
\(9\)minq∈ℛ,s∈ℋ:s<t\{Dq,s\(k−1\)\+𝟏\{q≠r\}Γr,t\(k\)\}\.\\min\_\{\\begin\{subarray\}\{c\}q\\in\\mathcal\{R\},\\ s\\in\\mathcal\{H\}:\\ s<t\\end\{subarray\}\}\\left\\\{D^\{\(k\-1\)\}\_\{q,s\}\+\\mathbf\{1\}\\\{q\\neq r\\\}\\Gamma^\{\(k\)\}\_\{r,t\}\\right\\\}\.Adding the predicted carbon\-emission termE^r,t\(k\)CI^r,t\\widehat\{E\}^\{\(k\)\}\_\{r,t\}\\widehat\{CI\}\_\{r,t\}gives[Equation8](https://arxiv.org/html/2608.20566#S7.E8)\. Thus the induction claim holds forkk\.
The ordered problem formulation fixes the order of theKKexecution intervals\. AfterKKlayers, every feasible placement has exactly one final state\(r,t\)\(r,t\), and every finite final state corresponds to a feasible placement with strictly increasing candidate\-interval starting times\. Therefore, minimizingDr,t\(K\)D^\{\(K\)\}\_\{r,t\}over all final states gives the global optimum of[Equation6](https://arxiv.org/html/2608.20566#S7.E6)\. The stored backpointers recover a placement plan attaining this optimum\.
It remains to justify the stated complexity\. For a fixed layerk≥2k\\geq 2, define the prefix predecessor summaries
\(10\)Pq\(t\)=mins∈ℋ:s<tDq,s\(k−1\),q∈ℛ\.P\_\{q\}\(t\)=\\min\_\{s\\in\\mathcal\{H\}:\\ s<t\}D^\{\(k\-1\)\}\_\{q,s\},\\qquad q\\in\\mathcal\{R\}\.For each regionqq, a left\-to\-right scan over candidate intervals updatesPq\(t\)P\_\{q\}\(t\)inO\(H\)O\(H\)time, so all prefix summaries takeO\(\|ℛ\|H\)O\(\|\\mathcal\{R\}\|H\)time\. Using these summaries, the predecessor term in[Equation8](https://arxiv.org/html/2608.20566#S7.E8)can be written as
\(11\)min\{Pr\(t\),Γr,t\(k\)\+minq∈ℛ:q≠rPq\(t\)\}\.\\min\\left\\\{P\_\{r\}\(t\),\\Gamma^\{\(k\)\}\_\{r,t\}\+\\min\_\{q\\in\\mathcal\{R\}:\\ q\\neq r\}P\_\{q\}\(t\)\\right\\\}\.For each candidate\-interval starting timett, store the two smallest region–value pairs among\{\(q,Pq\(t\)\):q∈ℛ\}\\\{\(q,P\_\{q\}\(t\)\):q\\in\\mathcal\{R\}\\\}, with the pairs associated with distinct regions and ordered with multiplicity\. Thus, if two regions attain the same minimum value, both pairs may store that same value\. The quantityminq≠rPq\(t\)\\min\_\{q\\neq r\}P\_\{q\}\(t\)is the first stored value when its associated region is notrr, and otherwise it is the second stored value\. When\|ℛ\|=1\|\\mathcal\{R\}\|=1, we use the conventionminq≠rPq\(t\)=\+∞\\min\_\{q\\neq r\}P\_\{q\}\(t\)=\+\\infty\. Hence every transition value in[Equation8](https://arxiv.org/html/2608.20566#S7.E8)can be evaluated in constant time after these summaries are available\. Filling one layer takesO\(\|ℛ\|H\)O\(\|\\mathcal\{R\}\|H\)time, and filling allKKlayers takesO\(K\|ℛ\|H\)O\(K\|\\mathcal\{R\}\|H\)time\. Keeping only the previous and current dynamic\-programming layers, together with the prefix summaries used to evaluate the recurrence, requiresO\(\|ℛ\|H\)O\(\|\\mathcal\{R\}\|H\)working memory\. If all backpointers are stored to recover the placement plan directly, they require an additionalO\(K\|ℛ\|H\)O\(K\|\\mathcal\{R\}\|H\)memory\. ∎
### A\.5\.Proof of Theorem[2](https://arxiv.org/html/2608.20566#Thmtheorem2)
###### Proof\.
The returned schedule has finite dynamic\-programming value, so it consists ofKKordered execution intervals placed in deadline\-feasible candidate intervals\. By construction of the recurrence, each finite value in layerk≥2k\\geq 2comes from a finite value in layerk−1k\-1with predecessor starting times<ts<t\. Because every selected starting time belongs toℋ=\{a\+jΔt∣j=0,1,…,H−1\}\\mathcal\{H\}=\\\{a\+j\\Delta t\\mid j=0,1,\\ldots,H\-1\\\}, the recovered backpointer chain satisfies
\(12\)a≤t1<t2<⋯<tK≤a\+\(H−1\)Δt\.a\\leq t\_\{1\}<t\_\{2\}<\\cdots<t\_\{K\}\\leq a\+\(H\-1\)\\Delta t\.Moreover, distinct elements ofℋ\\mathcal\{H\}differ by at leastΔt\\Delta t, sotk\+1≥tk\+Δtt\_\{k\+1\}\\geq t\_\{k\}\+\\Delta tfor everyk<Kk<K\. Consequently, the selected candidate intervals are non\-overlapping and appear in chronological order\. The final candidate interval ends at
\(13\)tK\+Δt≤a\+HΔt≤d,t\_\{K\}\+\\Delta t\\leq a\+H\\Delta t\\leq d,where the last inequality follows fromH=⌊\(d−a\)/Δt⌋H=\\lfloor\(d\-a\)/\\Delta t\\rfloor\. Thus all reserved execution time lies within\[a,d\]\[a,d\]\.
The number of execution intervals isK=⌈T~/Δt⌉K=\\lceil\\widetilde\{T\}/\\Delta t\\rceil, so the total reserved execution capacity is
\(14\)KΔt=⌈T~Δt⌉Δt≥T~\.K\\Delta t=\\left\\lceil\\frac\{\\widetilde\{T\}\}\{\\Delta t\}\\right\\rceil\\Delta t\\geq\\widetilde\{T\}\.IfTrun≤T~T\_\{\\mathrm\{run\}\}\\leq\\widetilde\{T\}, then the selected intervals provide at least the task’s actual accumulated active runtime, excluding only idle waiting between execution intervals\. Under the execution\-controller model in[Section6\.5](https://arxiv.org/html/2608.20566#S6.SS5), the agent executes during the selected intervals, may be paused at an interval boundary and resumed in a later selected interval, and stops once the task completes\. Therefore, the task can consume all of its required active runtime within the reserved intervals\. Since the final selected interval ends no later thandd, the task completes by the deadline\. ∎Similar Articles
AgentStop: Terminating Local AI Agents Early to Save Energy in Consumer Devices
This paper introduces AgentStop, a lightweight supervisor that predicts and preemptively terminates local AI agent trajectories unlikely to succeed, reducing energy waste by 15-20% with minimal impact on task performance.
Improving the speed and energy-efficiency of AI agents
Researchers from MIT and Microsoft developed an intelligent system that automatically optimizes agentic workflows, reducing computational resources and energy usage while maintaining performance.
@akshay_pachaar: https://x.com/akshay_pachaar/status/2053166970166772052
The article discusses a shift in AI agent tool usage from the 'MCP vs CLI' debate to 'Code Mode,' where agents write code to dynamically import tools, significantly reducing context window usage. It highlights Anthropic's approach and Cloudflare's implementation, demonstrating a 98.7% reduction in token consumption for specific tasks.
CrbonFree
CrbonFree is a compliance software tool that meters carbon emissions for each AI call, generating audit-ready reports.
ACAP: Asynchronous Coding Agents for Efficient Robot Control
ACAP introduces a robot policy framework built from persistent coding agents that reason and act asynchronously, with a hyper-agent coordinating multiple body-part policies, achieving a 28.2% reduction in task-balanced time cost across 162 real-world rollouts on Galaxea R1 Pro and AgileX PiPER robots.