AgentStop: Terminating Local AI Agents Early to Save Energy in Consumer Devices

Dzung Pham, Kleomenis Katevas, Ali Shahin Shamsabadi, Hamed Haddadi
5/1/2026
17 citations
cs.LGcs.AIcs.DC

Official code: brave-experiments/AgentStop (18 stars, Python, MIT, last commit 2026-10-27).

Abstract

Autonomous agents powered by large language models (LLMs) are increasingly used to automate complex, multi-step tasks such as coding or web-based question answering. While remote, cloud-based agents offer scalability and ease of deployment, they raise privacy concerns, depend on network connectivity, and incur recurring API costs.

Show full abstract

Deploying agents locally on user devices mitigates these issues by preserving data privacy and eliminating usage-based fees. However, agentic workflows are far more resource-intensive than typical LLM interactions. Iterative reasoning, tool use, and failure retries substantially increase token consumption, often expending significant compute without successfully completing tasks. In this work, we investigate the time, token, and energy overhead of locally deployed LLM-based agents on consumer hardware. Our measurements show that agentic execution increases GPU power draw, temperature, and battery drain compared to single-inference workloads. To address this inefficiency, we introduce AgentStop, a lightweight efficiency supervisor that predicts and preemptively terminates trajectories unlikely to succeed. Leveraging low-cost execution signals, such as token-level log probabilities, AgentStop can reduce wasted energy by 15-20% with minimal impact on task performance (<5% utility drop) for challenging web-based question answering and coding benchmarks. These findings position predictive early termination as a practical mechanism for enabling sustainable, privacy-preserving LLM agents on user devices. Our project code and data are available at https://github.com/brave-experiments/AgentStop.

View on arXivView PDF

Code Implementations(1)

MIT

AgentStop: Terminating Local AI Agents Early to Save Energy in Consumer Devices

180Python, Jupyter NotebookJun 2, 20251 months agoMIT
agentsenergy-efficiencyllm

Similar Papers

Cite this paper

@article{pham2026agentstop,
  title  = {AgentStop: Terminating Local AI Agents Early to Save Energy in Consumer Devices},
  author = {Dzung Pham and Kleomenis Katevas and Ali Shahin Shamsabadi and Hamed Haddadi},
  year   = {2026},
  eprint = {2605.15206},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.15206v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.15206.svg)](https://codeofpaper.com/paper/2605.15206)

Discussion