costs

A command for estimating and breaking down the costs of current and planned cloud infrastructure.

In plain words
What is it for?
Estimating monthly costs by provider, resource type, environment, or project, and identifying idle, oversized, or otherwise reducible resources.
Why use it?
It brings resource costs, possible savings, and the financial effect of planned changes into one review.

Command for Claude Code

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 commands/lazorgurl/terror/costs
Clone the repo
git clone --depth 1 https://github.com/lazorgurl/terror

Made for: Claude Code.

Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 325 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.00013 $0.00325
Opus 5 $0.00006 $0.00162
Sonnet 5 $0.00003 $0.00065
Haiku 4.5 $0.00001 $0.00032

Measured yesterday against content hash ddd087eb327d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

costs 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 yesterday.

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.

.claude/plugins/terror/commands/costs.md · 41 lines

What it actually says

Infrastructure Costs

Analyze and present infrastructure cost information.

Steps

  1. Current spend. Call terror_status and provider-specific tools to gather resource inventory. For each resource, estimate monthly cost based on type and configuration:

    • Compute: instance type, hours running
    • Storage: capacity, access tier, egress
    • Database: instance tier, storage, backups
    • Networking: load balancers, NAT gateways, egress
  2. Cost breakdown. Present costs grouped by:

    • Provider
    • Resource type
    • Environment (production vs staging vs dev)
    • Team or project (based on labels/tags)
  3. Optimization opportunities. Identify savings:

    • Idle or underutilized resources (low CPU, no traffic)
    • Resources that could use committed use discounts or reserved instances
    • Oversized instances relative to actual usage
    • Dev/staging resources running 24/7 that could be scheduled
    • Unattached disks, unused IPs, orphaned snapshots
  4. Planned changes. If the user has pending Terror plans, estimate the cost delta:

    • What the new resources will cost
    • What resources are being removed
    • Net monthly impact
  5. Present summary. Show:

    • Total estimated monthly cost
    • Top 5 most expensive resources
    • Top 3 optimization opportunities with estimated savings
    • Cost trend if historical data is available
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. yesterday First seen · 41 lines · 13 tokens per session scan A ddd087eb327d

Subscribe to this mod's changes

costs is a command published in the GitHub repository lazorgurl/terror (0 stars, last pushed 5mo ago), licensed MIT. It adds 13 tokens to every session and 325 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.