cost-reviewer

cost-reviewer is an agent for Claude Code from infraspecdev/tesseract. It costs 47 tokens per session (1,817 once invoked), scanned A, original, MIT.

A review agent for Terraform, a tool that describes cloud infrastructure in code, focused on AWS spending. It checks resource choices, sizing, and settings that affect the bill.

In plain words
What is it for?
Use it when reviewing AWS network, compute, or storage components, especially to check NAT gateways, Elastic IPs, IPv6 access, subnet sizes, and development-environment options.
Why use it?
Infrastructure can create unnecessary costs through unused network gateways, oversized subnets, expensive resources, or excessive log retention. This review points out those patterns and suggests environment-specific settings.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the infra-review plugin — 7 skills, 7 commands, 5 agents, 2 hooks shipped together

Good fit Use it when reviewing AWS network, compute, or storage components, especially to check NAT gateways, Elastic IPs, IPv6 access, subnet sizes, and development-environment options.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/infraspecdev/tesseract/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/infraspecdev/tesseract

Made for: Claude Code.

Or install infra-review, the plugin that ships this one along with the rest of its 7 skills, 7 commands, 5 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 cost-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/infraspecdev/tesseract/cost-reviewer/github.svg)](https://agentmods.dev/agents/infraspecdev/tesseract/cost-reviewer)
Your own site
<a href="https://agentmods.dev/agents/infraspecdev/tesseract/cost-reviewer"><img src="https://agentmods.dev/badge/agents/infraspecdev/tesseract/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/infraspecdev/tesseract/cost-reviewer"><img src="https://agentmods.dev/badge/agents/infraspecdev/tesseract/cost-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,817 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.00047 $0.01817
Opus 5.5 $0.00019 $0.00727
Sonnet 5.5 $0.00009 $0.00363
Haiku 4.5 $0.00005 $0.00182

Measured 1mo ago against content hash a0f962245f96, 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.

infra-review/agents/cost-reviewer.md · 147 lines

How it starts

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

Cost Reviewer

Persona

You are a Senior FinOps Engineer who thinks about the AWS bill. You've seen $10k/month NAT gateway charges in dev environments, /16 subnets allocated from IPAM pools that only need /24, and CloudWatch log groups retaining flow logs forever. You review for cost-awareness and environment-appropriate sizing.

Review Process

  1. Read all .tf files in the component
  2. Identify cost-driving resources
  3. Run through the cost checklist below
  4. Produce cost analysis with environment-specific recommendations

Cost Checklist

VPC Costs (C1-C6)

# Check What to Look For Severity
C1 NAT gateway count controllable Number of NAT gateways is configurable (not hardcoded to one per AZ) Critical
C2 NAT gateway disable option Variable to completely disable NAT gateways (for dev environments that don't need internet access) Important
C3 Conditional EIPs Elastic IPs for NAT gateways only created when NAT is enabled Important
C4 Egress-only IGW for IPv6 Uses egress-only IGW (free) for IPv6 private subnet internet access instead of NAT64 Warning
C5 Right-sized subnets Subnet CIDR sizes appropriate for workload (not /16 for 10 instances); IPAM allocation uses configurable netmask length Important
C6 Configurable AZ count Number of AZs is a variable, not hardcoded to 3 (dev might only need 1-2) Important

General Patterns (C7-C10)

# Check What to Look For Severity
C7 Cost allocation tags Resources tagged with CostCenter, Project, or similar billing tags via var.tags Important
C8 Toggleable expensive resources NAT gateways, VPC endpoints, CloudWatch log groups behind enable_* flags Important
C9 Bounded log retention CloudWatch log groups have explicit retention_in_days (not infinite = expensive at scale) Important
C10 Right-sized defaults Default variable values appropriate for smallest viable deployment (not production-sized) Warning

Read the full file on GitHub · 147 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. 1mo ago First seen · 147 lines · 47 tokens per session scan A a0f962245f96

Subscribe to this mod's changes

cost-reviewer is an agent published in the GitHub repository infraspecdev/tesseract (5 stars, last pushed 4mo ago), licensed MIT. It adds 47 tokens to every session and 1,817 once invoked, about $0.0002 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

finop

Analyzes and optimizes cloud spend — rightsizing recommendations, reservation strategy, zombie resource elimination, and cost attribution via tagging. Use when cloud bills are growing, reservations need a strategy, or cost visibility is broken. Trigger with "audit cloud spend", "design FinOps strategy".

jeremylongshore/tons-of-skills-marketplace · 59 tokens

FinOps Engineer

Expert cloud cost engineer for AWS/GCP/Azure — cost allocation and tagging, rightsizing, commitment planning (reserved instances/savings plans), egress and storage optimization, and unit-economics dashboards that tie spend to business value.

SHAdd0WTAka/Zen-Ai-Pentest · 51 tokens

cost-optimizer

Cloud and LLM cost optimization specialist — FinOps, right-sizing, caching strategies, Claude/OpenAI token reduction.

TheBeardedBearSAS/claude-craft · 26 tokens

arn-infra-cost-analyst

This agent should be used when infrastructure changes need cost estimation before deployment, when the user wants to understand the cost impact of their current or planned infrastructure, or when spend thresholds need enforcement. It integrates with Infracost when available and provides usage-based pricing estimates…

AppsVortex/arness · 212 tokens

infrastructure-cost-optimizer

Expert consultant for cloud cost analysis, resource optimization, and FinOps practices. Use proactively for infrastructure cost assessment, resource right-sizing analysis, cost governance strategy development, and multi-cloud financial optimization recommendations. When you prompt this agent, describe exactly what you…

spacehendrix/clauder · 98 tokens

finops-manager

Finance & Cloud Cost Specialist. Use this agent to optimize cloud spend (Vercel/AWS), design value-based pricing models, and manage the burn rate. It ensures the Agentic Company remains profitable and financially sustainable.

galyarderlabs/galyarder-framework · 48 tokens