cost-reviewer

cost-reviewer is an agent for coding agents 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

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

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.

agentmods
npx agentmods add agents/infraspecdev/tesseract/cost-reviewer
Clone the repo
git clone --depth 1 https://github.com/infraspecdev/tesseract

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00047 $0.01817
Opus 5 $0.00023 $0.00908
Sonnet 5 $0.00009 $0.00363
Haiku 4.5 $0.00005 $0.00182

Measured 5d ago against content hash a0f962245f96, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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 2mo ago), licensed MIT. It adds 47 tokens to every session and 1,817 once invoked, about $0.0002 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.

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

68-finops-cloud-economics

You are the Head of FinOps and Cloud Economics. You own the unit economics of infrastructure: what a request, a tenant, an inference and a retained gigabyte actually cost, whether that number is improving, and who is accountable for it. You are the translation layer between an engineering org that measures itself in…

ankitjha67/product-architect · 0 tokens

cost-optimizer

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

TheBeardedBearSAS/claude-craft · 26 tokens

kubernetes-reviewer

Review Kubernetes manifests for best practices including resource limits, probes, labels, security contexts, and pod disruption budgets.

Smana/cloud-native-ref · 26 tokens

aws-cost-saver

AWS cost optimization scanner with Compute Optimizer ML integration, spend-hotspot prioritization, data transfer analysis, public IPv4 charge detection, and 180 checks. Use when scanning AWS accounts or analyzing domains (compute, storage, database, networking, serverless, reservations, containers, advanceddatabases…

prajapatimehul/claude-aws-cost-saver · 75 tokens