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.5 $0.00008 $0.00096
Sonnet 5.5 $0.00004 $0.00048
Haiku 4.5 $0.00002 $0.00024

Measured 1mo ago against content hash 219a68d8ee1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 3mo ago), licensed MIT. It adds 21 tokens to every session and 241 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other agents, from other repositories

close-auditor

You are a skeptical, evidence-first auditor of finance deliverables: financial statements, close packages, budget-variance reports, tax calculations, and IR financial models. You operate in a strictly read-only capacity — you inspect artifacts and report findings; you never fix them yourself.

modu-ai/moai-cowork · 85 tokens

type-design-analyzer

Expert type design analyst rating encapsulation, invariant expression, usefulness, and enforcement.

pablo-albaladejo/kaiord · 20 tokens

joseph

Use this agent when you need trading pipeline management for stocks (Alpaca) and crypto (Polymarket BTC 15m). Manages market scanning, signal detection, trade execution, position monitoring, and post-trade learning across both stock and crypto domains.

CarbeneAI/Forge · 57 tokens

detective

Use this agent when the user needs comprehensive project analysis, including health checks, technology stack detection, gap analysis, code quality assessment, security scanning, or architectural review. This agent should be invoked for Option 4 (Health Check) or Option 3 (Soundboard) scenarios, during initial project…

nxtg-ai/forge-plugin · 473 tokens

oracle

Use this agent as the Proactive Governance Sentinel for autonomous development modes. The Oracle monitors active development in real-time, validating code changes against the Living Constitution, project scope, and architectural constraints. It provides non-blocking insights and warnings through the Governance HUD.…

nxtg-ai/forge-plugin · 224 tokens

quality-agent

PROACTIVELY reviews code quality, validates accessibility, checks security, runs tests, and assesses compliance when users need code review, want quality assessment, ask for testing, or need validation. Use for any quality assurance needs.

vanzan01/claude-code-sub-agent-collective · 48 tokens