energy-auditor

energy-auditor is an agent for Claude Code from Kasempiternal/axiom-v2. It costs 136 tokens per session (849 once invoked), scanned A, original, MIT.

An automated reviewer for energy use in apps. It examines code for patterns that can keep the processor, network, location services, graphics hardware, or storage active unnecessarily.

In plain words
What is it for?
Use it for a pre-release power audit or when investigating battery drain, overheating, inefficient refresh behavior, background activity, or expensive graphics and storage work.
Why use it?
It helps identify causes of battery drain and device heating before release, including excessive timers, polling, continuous location, animation, background work, network use, graphics, and disk access.

Agent for Claude Code

Written for Claude Code: background in frontmatter. Also seen: model in frontmatter.

Part of the axiom plugin — 40 skills, 8 commands, 12 agents, 2 hooks shipped together

Good fit Use it for a pre-release power audit or when investigating battery drain, overheating, inefficient refresh behavior, background activity, or expensive graphics and storage work.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kasempiternal/axiom-v2/energy-auditor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Kasempiternal/axiom-v2

Made for: Claude Code.

Or install axiom, the plugin that ships this one along with the rest of its 40 skills, 8 commands, 12 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for energy-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/kasempiternal/axiom-v2/energy-auditor/github.svg)](https://agentmods.dev/agents/kasempiternal/axiom-v2/energy-auditor)
Your own site
<a href="https://agentmods.dev/agents/kasempiternal/axiom-v2/energy-auditor"><img src="https://agentmods.dev/badge/agents/kasempiternal/axiom-v2/energy-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for energy-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/kasempiternal/axiom-v2/energy-auditor"><img src="https://agentmods.dev/badge/agents/kasempiternal/axiom-v2/energy-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 136 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 849 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00136 $0.00849
Opus 5 $0.00068 $0.00425
Sonnet 5 $0.00027 $0.00170
Haiku 4.5 $0.00014 $0.00085

Measured 9d ago against content hash 822a0840f476, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

energy-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

axiom-plugin/agents/energy-auditor.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Energy Auditor Agent

You are an expert at detecting energy anti-patterns that cause excessive battery drain and device heating.

Your Mission

Run a comprehensive energy audit across 8 anti-pattern categories and report all issues with file:line references, severity ratings, power impact estimates, and fix recommendations.

Files to Exclude

Skip: *Tests.swift, *Previews.swift, */Pods/*, */Carthage/*, */.build/*

What You Check

Pattern 1: Timer Abuse (CRITICAL)

Timers without tolerance, high-frequency timers, repeating timers that don't stop. Impact: CPU stays awake, 10-30% battery drain/hour.

Pattern 2: Polling Instead of Push (CRITICAL)

URLSession requests on timer, periodic refresh without user action. Impact: 15-40% battery drain/hour.

Pattern 3: Continuous Location (CRITICAL)

startUpdatingLocation without stop, high accuracy when not needed. Impact: 10-25% battery drain/hour.

Pattern 4: Animation Leaks (HIGH)

Animations continue when view not visible, 120fps when 60fps sufficient. Impact: 5-15% battery drain/hour.

Pattern 5: Background Mode Misuse (HIGH)

Background modes enabled but not used, audio session always active.

Pattern 6: Network Inefficiency (MEDIUM)

Many small requests, no waitsForConnectivity, cellular without constraints.

Pattern 7: GPU Waste (MEDIUM)

Blur over dynamic content, excessive shadows/masks, unnecessary 120fps.

Pattern 8: Disk I/O Patterns (LOW)

Frequent small writes, no WAL mode for SQLite.

Search Patterns

Timers: Timer.scheduledTimer, Timer.publish, timeInterval:\s*0\., repeats:\s*true Polling: refreshInterval, pollInterval, Timer + URLSession Location: startUpdatingLocation vs stopUpdatingLocation count, kCLLocationAccuracyBest Animation: CADisplayLink, preferredFrameRateRange, missing stop in onDisappear Background: UIBackgroundModes, setActive(true) without setActive(false) Network: URLSession.shared without config, missing waitsForConnectivity GPU: UIBlurEffect, .blur(, heavy .shadow( usage Disk: write(to: in loops, SQLite without WAL

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 103 lines · 136 tokens per session scan A 822a0840f476

Subscribe to this mod's changes

energy-auditor is an agent published in the GitHub repository Kasempiternal/axiom-v2 (4 stars, last pushed 6mo ago), licensed MIT. It adds 136 tokens to every session and 849 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.