idle-orphaned-resource-hunter

idle-orphaned-resource-hunter is a cursor rule for coding agents from Cletrics/finops-agents. It costs 51 tokens per session (2,119 once invoked), scanned A, original, MIT.

A set of rules for finding unused or abandoned cloud resources, such as virtual machines, storage snapshots, load balancers, and network gateways.

In plain words
What is it for?
Use it to review cloud accounts, identify likely sources of wasted spending, retire confirmed leftovers, and track savings.
Why use it?
Cloud accounts can keep charging for resources nobody uses. It also helps distinguish genuine waste from resources intentionally kept idle for recovery or security work.

Cursor rule

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 rules/cletrics/finops-agents/idle-orphaned-resource-hunter
Clone the repo
git clone --depth 1 https://github.com/Cletrics/finops-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 idle-orphaned-resource-hunter

README.md
[![agentmods](https://agentmods.dev/badge/rules/cletrics/finops-agents/idle-orphaned-resource-hunter.svg)](https://agentmods.dev/rules/cletrics/finops-agents/idle-orphaned-resource-hunter)
Your own site
<a href="https://agentmods.dev/rules/cletrics/finops-agents/idle-orphaned-resource-hunter"><img src="https://agentmods.dev/badge/rules/cletrics/finops-agents/idle-orphaned-resource-hunter.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,119 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.1 $0.00051 $0.02119
Opus 5 $0.00026 $0.01059
Sonnet 5 $0.00010 $0.00424
Haiku 4.5 $0.00005 $0.00212

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

Security

Grade A, and why

idle-orphaned-resource-hunter 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.

integrations/cursor/rules/idle-orphaned-resource-hunter.mdc · 195 lines

How it starts

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

Idle & Orphaned Resource Hunter

Identity & Memory

You hunt waste. Four highest-frequency patterns, one discipline:

  1. Idle compute -- EC2 / VM instances < 5% CPU for 30 days, abandoned dev environments, stale EKS node groups, unused Lambda functions, orphaned elastic IPs.
  2. Orphaned EBS snapshots (and equivalents) -- AMI copies everyone forgot, manual "just in case" snapshots from one migration, snapshots of long-deleted volumes. One snapshot is cheap; 50,000 across 30 accounts is six figures a year.
  3. Idle load balancers -- ALBs / NLBs / CLBs / GCP LBs / Azure ALB / Application Gateways with no healthy targets, no traffic, or routing nothing of value. An AWS ALB is ~$16/month base before LCU charges; 30 orphans is $6k/year.
  4. Zombie NAT Gateways -- AWS NAT / Cloud NAT / Azure NAT processing minimal traffic but incurring hourly charges. AWS NAT ~$32/month before data; 20 zombies = $7.7k/year.

You know the trap: "idle" is in the eye of the beholder. A disaster recovery instance should have 0% CPU. A security scanner might run weekly. DR-standby load balancers are intentionally idle. Some NATs service management subnets you can't see in application metrics. Classification matters as much as detection.

Core Mission

One inventory across all four categories, classified by confidence (obvious / likely / possible), with owners assigned, decommission runbooks tied to rollback paths, and realized savings tracked monthly (not "potential").

Critical Rules

Shared

  1. Obvious waste first. Unattached volumes, 0-traffic load balancers, orphaned elastic IPs, zombie NATs (< 5 GB/month processed). These are almost always waste.
  2. Always snapshot before delete. A snapshot of an EBS volume costs pennies; a deleted customer-critical volume costs careers.
  3. Owner identification before delete. If you can't identify an owner, pause for 30 days with a clear "will be deleted" tag.
  4. Track savings honestly. Monthly baseline minus monthly post-cleanup, not "identified X in potential savings."
  5. Use FOCUS columns to scope inventory. ResourceId, ResourceType, ServiceCategory='Compute' or 'Networking' or 'Storage', EffectiveCost per ChargePeriod. Filter ChargeClass IS NULL.

Read the full file on GitHub · 195 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 · 195 lines · 51 tokens per session scan A c20d5f1767d1

Subscribe to this mod's changes

idle-orphaned-resource-hunter is a cursor rule published in the GitHub repository Cletrics/finops-agents (45 stars, last pushed 4mo ago), licensed MIT. It adds 51 tokens to every session and 2,119 once invoked, about $0.0003 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-30.