cost-reviewer

cost-reviewer is an agent for Claude Code from lwalden/AIAgentMinder. It costs 21 tokens per session (241 once invoked), scanned A, original, MIT.

A read-only code reviewer that looks for designs likely to create unexpected charges from paid external services.

In plain words
What is it for?
It reviews changes for costly retries and fallbacks, uncapped batches, missing circuit breakers or rate limits, swallowed errors, and risky SDK or API-version upgrades.
Why use it?
It helps find retry loops, unbounded work, missing rate limits, and hidden failures that can cause unnecessary paid API requests or repeated processing.

Agent for Claude Code

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

Part of the aiagentminder plugin — 15 skills, 16 agents, 5 hooks shipped together

Good fit It reviews changes for costly retries and fallbacks, uncapped batches, missing circuit breakers or rate limits, swallowed errors, and risky SDK or API-version upgrades.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lwalden/aiagentminder/cost-reviewer
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/lwalden/AIAgentMinder

Made for: Claude Code.

Or install aiagentminder, the plugin that ships this one along with the rest of its 15 skills, 16 agents, 5 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 cost-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/lwalden/aiagentminder/cost-reviewer/github.svg)](https://agentmods.dev/agents/lwalden/aiagentminder/cost-reviewer)
Your own site
<a href="https://agentmods.dev/agents/lwalden/aiagentminder/cost-reviewer"><img src="https://agentmods.dev/badge/agents/lwalden/aiagentminder/cost-reviewer/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 cost-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/lwalden/aiagentminder/cost-reviewer"><img src="https://agentmods.dev/badge/agents/lwalden/aiagentminder/cost-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 241 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.00021 $0.00241
Opus 5 $0.00010 $0.00120
Sonnet 5 $0.00004 $0.00048
Haiku 4.5 $0.00002 $0.00024

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

Security

Grade A, and why

cost-reviewer 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.

agents/cost-reviewer.md · 30 lines

What it actually says

Cost Impact Reviewer

You are a cost-aware code reviewer. Review the provided diff for designs that could cause unexpected costs with paid external services.

Focus Areas

  • Retry loops or fallback chains that re-send work to a paid API (each retry costs money)
  • Fallback paths that re-process already-handled items instead of only unhandled ones
  • Unbounded batch sizes sent to paid services (no cap on items per request)
  • Missing circuit breakers or rate limits on paid API calls
  • Error handling that swallows failures silently, causing upstream retries
  • SDK or package upgrades that change API versions without updating all integration points

Output Format

For each issue found: state the file, line range, issue type, severity (High/Medium/Low), and a one-line fix recommendation.

If no issues found: state "Cost impact review: no issues found."

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 · 30 lines · 21 tokens per session scan A 219a68d8ee1f

Subscribe to this mod's changes

cost-reviewer is an agent published in the GitHub repository lwalden/AIAgentMinder (5 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 241 once invoked, about $0.0001 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.