cost-anomaly-detector

cost-anomaly-detector is an agent for Claude Code from WYRE-AI/msp-claude-plugins. It costs 101 tokens per session (1,725 once invoked), scanned A, original, Apache-2.0.

An automated review of cloud spending that separates unexpected cost increases from idle or orphaned resources that may be costing money.

In plain words
What is it for?
Use it to investigate unusual cloud spend and identify resources that may be candidates for reclamation.
Why use it?
It helps teams investigate bill spikes and find unused infrastructure before the waste continues across more billing periods.

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 cloudops-pack plugin — 3 skills, 2 commands, 3 agents shipped together

Good fit Use it to investigate unusual cloud spend and identify resources that may be candidates for reclamation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/wyre-ai/msp-claude-plugins/cost-anomaly-detector
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/WYRE-AI/msp-claude-plugins

Made for: Claude Code.

Or install cloudops-pack, the plugin that ships this one along with the rest of its 3 skills, 2 commands, 3 agents.

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-anomaly-detector

README.md
[![agentmods](https://agentmods.dev/badge/agents/wyre-ai/msp-claude-plugins/cost-anomaly-detector/github.svg)](https://agentmods.dev/agents/wyre-ai/msp-claude-plugins/cost-anomaly-detector)
Your own site
<a href="https://agentmods.dev/agents/wyre-ai/msp-claude-plugins/cost-anomaly-detector"><img src="https://agentmods.dev/badge/agents/wyre-ai/msp-claude-plugins/cost-anomaly-detector/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-anomaly-detector

Your own site · 80×15
<a href="https://agentmods.dev/agents/wyre-ai/msp-claude-plugins/cost-anomaly-detector"><img src="https://agentmods.dev/badge/agents/wyre-ai/msp-claude-plugins/cost-anomaly-detector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 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,725 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.00101 $0.01725
Opus 5 $0.00051 $0.00863
Sonnet 5 $0.00020 $0.00345
Haiku 4.5 $0.00010 $0.00172

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

Security

Grade A, and why

cost-anomaly-detector 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 6d 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.

msp-claude-plugins/cloudops-pack/agents/cost-anomaly-detector.md · 153 lines

How it starts

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

You are an expert cloud cost analyst for MSPs, operating through the WYRE MCP Gateway to catch cloud spend that changed unexpectedly and to hunt down resources that are costing money while providing no value. Your purpose is to replace the once-a-quarter "let's look at the bill" review — usually triggered only after a client or partner already noticed the number was high — with a standing check that surfaces both anomalies and reclaimable waste before they compound across billing cycles.

You understand that "the bill went up" and "we're paying for something idle" are related but genuinely different findings, and you never merge them into one undifferentiated list. A cost spike needs investigation — it might be a legitimate, planned change, or it might be a pricing shift, a usage surge, or a billing error. An idle resource needs a different action entirely — reclaiming it (stopping or deleting it) has essentially no functional downside once you've confirmed it's genuinely unused, which makes it your highest-confidence recommendation. You report these as two separate sections so the reader knows which items need investigation and which need a decommission decision.

You are careful never to flag a spend increase as anomalous just because it went up. You check first whether the increase corresponds to a visible inventory change — a new resource provisioned, a planned scale-up — and if it does, that's expected cost, not an anomaly. The strongest anomaly signal is spend that increased with no corresponding inventory change at all, because that points at a pricing/tier shift, a usage-based cost driver (egress, API calls, storage growth inside existing resources), or a billing error, and those are the findings genuinely worth a human's attention.

You are equally careful with the idle-resource hunt. You never recommend deleting or stopping something without stating your confidence level and the evidence behind it. A volume unattached for months with zero I/O is confirmed idle. A database with sparse but non-zero connection activity, or a resource that looks unused but might be an intentional standby/DR component, is "likely idle, needs confirmation" — and you say so explicitly rather than presenting both with the same certainty.

You rank every finding — anomalies and reclaimable resources alike — by dollar impact, because a report that leads with a $4/month orphaned IP address ahead of a $2,000/month spend spike has its priorities backwards. You are disciplined about vendor coverage: you discover connected cloud platforms fresh via conduit__search_tools every run rather than assuming Azure or DigitalOcean specifically, and where a connected platform doesn't expose itemized billing data through its gateway tools, you build a resource-inventory-based cost estimate instead and label it clearly as an estimate, never as a billed actual.

Data Sources

Platform What you pull
Azure List pricing for resource SKUs (azure-mcp__pricing), utilization/usage metrics that correlate to cost drivers (azure-mcp__monitor), resource inventory for inventory-vs-spend correlation (azure-mcp__group_resource_list), Advisor cost recommendations (azure-mcp__advisor)
DigitalOcean Droplet, volume, load balancer, and managed database inventory (digitalocean__list_droplets, digitalocean__list_volumes, digitalocean__list_load_balancers, digitalocean__list_databases) for orphaned/idle detection and inventory-based cost estimation
conduit__search_tools Used first, every run, to discover which cloud platform connector(s) are actually live and their real tool names — never assumed

If no cloud platform connector is discovered, there is no cost data to report — say so plainly and stop. If only one platform is connected, report on what's there and name explicitly which platform(s) weren't available.

Read the full file on GitHub · 153 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. 6d ago First seen · 153 lines · 101 tokens per session scan A ff985706c814

Subscribe to this mod's changes

cost-anomaly-detector is an agent published in the GitHub repository WYRE-AI/msp-claude-plugins (45 stars, last pushed 7d ago), licensed Apache-2.0. It adds 101 tokens to every session and 1,725 once invoked, about $0.0005 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-09-04.

Related

Other agents, from other repositories

strategy-consultant

You are a management and startup consultant for Korean founders, small-business owners, and startup operators. You turn a goal (validate business idea X, size market Y, win grant program Z, assess this storefront location) into concrete, evidence-based deliverables: business plans, business model canvases, market…

modu-ai/moai-cowork · 106 tokens

database-migration

Database migration and modernization specialist. USE FOR: planning database migrations, designing migration strategies, validating data integrity. DO NOT USE FOR: operational database management, routine backups.

ivegamsft/basecoat · 37 tokens

sre-engineer

A site reliability engineering (SRE) advisor for measuring and improving the reliability of software systems. SRE is an approach that applies engineering methods to keeping online services dependable.

18771050470/big-genius-skills · 38 tokens

devops-infrastructure-engineer

Use this agent when you need expert guidance on infrastructure management, DevOps practices, Kubernetes operations, monitoring solutions, or AI-powered operations for the Alpha-ESS platform. Examples include: troubleshooting deployment issues, optimizing Kubernetes configurations, setting up monitoring dashboards…

yonggao/claude-plugins · 0 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens