cost-audit

cost-audit is a skill for Claude Code, Codex from drvoss/everything-copilot-cli. It costs 40 tokens per session (1,143 once invoked), scanned A, original, MIT.

A review of spending on AI model calls across a system that may use several models. It examines where tokens and model capacity are being used and creates a plan for reducing waste.

In plain words
What is it for?
Use it to inspect expensive call sites, compare model choices, right-size model tiers, and set a production cost baseline.
Why use it?
It helps explain unexpectedly high inference bills and keeps costs predictable as usage grows. It also supports choosing a suitable model for each task based on cost and result quality.

Skill for Claude CodeCodex

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 skills/drvoss/everything-copilot-cli/cost-audit
Any agent
npx skills add drvoss/everything-copilot-cli --skill cost-audit
Clone the repo
git clone --depth 1 https://github.com/drvoss/everything-copilot-cli

Made for: Claude Code, Codex.

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-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/cost-audit.svg)](https://agentmods.dev/skills/drvoss/everything-copilot-cli/cost-audit)
Your own site
<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/cost-audit"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/cost-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,143 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.00040 $0.01143
Opus 5 $0.00020 $0.00571
Sonnet 5 $0.00008 $0.00229
Haiku 4.5 $0.00004 $0.00114

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

Security

Grade A, and why

cost-audit 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.

skills/workflow/cost-audit/SKILL.md · 134 lines

How it starts

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

Cost Audit

Audit AI inference costs and optimize token usage across multi-model pipelines. This is not about cutting capabilities — it is about eliminating waste, right-sizing models, and keeping costs predictable.

When to Use

  • AI API costs growing faster than usage justifies
  • Unsure whether you are using the right model tier for each task
  • Want to compare cost-quality trade-offs before committing to a model
  • Preparing for production traffic and need a cost baseline
  • Running fleet mode or parallel agents and want to avoid runaway spend

Model Cost Tiers

Use the most capable model necessary — not the most capable model available.

Tier Models Best for
Premium claude-opus-4.7, claude-opus-4.6, claude-opus-4.5 Architecture decisions, complex multi-file reasoning, security audits
Standard claude-sonnet-4.6, claude-sonnet-4.5, gpt-5.2 Most coding tasks, code review, test generation, documentation
Fast / Cheap claude-haiku-4.5, gpt-5-mini, gpt-4.1 File edits, boilerplate, classification, triage, simple summaries

Workflow

1. Identify high-cost call sites

Scan for:

  • Long system prompts that repeat across calls
  • Premium models used for simple transforms
  • Entire file contents passed when only relevant sections are needed
  • No context caching on static instructions
  • Fleet mode with all agents on premium tiers

2. Measure baseline

Metric How to measure
Total tokens / task Compare before and after context changes
Model mix Tally which models are called per workflow
Prompt size distribution Log avg/max token counts per call type

3. Apply reduction patterns

Model downgrade

  • Does this task require premium reasoning? If not, drop a tier.
  • Classification, routing, simple edits → use fast/cheap tier
  • Reserve premium for tasks that demonstrably need it

Context pruning

  • Pass a summary instead of the full history when prior turns are less relevant
  • Slice file ranges with view_range instead of full-file reads
  • Remove redundant boilerplate from system prompts

Read the full file on GitHub · 134 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. yesterday First seen · 134 lines · 40 tokens per session scan A b870d8c6b06b

Subscribe to this mod's changes

cost-audit is a skill published in the GitHub repository drvoss/everything-copilot-cli (45 stars, last pushed 8d ago), licensed MIT. It adds 40 tokens to every session and 1,143 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-09-03.

Related

Other skills, from other repositories

winui-design

Use when designing, reviewing, or fixing WinUI 3: sample and control discovery with winapp find-ui, layout planning, control choice, Fluent Design alignment, Light/Dark/High Contrast theming, typography, spacing, brushes, accessibility, and XAML data-binding design. Load before authoring new XAML, reviewing UI PRs…

microsoft/win-dev-skills · 119 tokens

winui-dev-workflow

Build and run workflow for WinUI 3 apps with WinApp CLI 0.6+ — project creation with winapp new, project-mode winapp run, BuildAndRun.ps1 analyzer integration, crash diagnosis, and prerequisites. Use when creating, building, running, or fixing build errors in a WinUI 3 project.

microsoft/win-dev-skills · 73 tokens

winui-packaging

MSIX packaging, code signing, and distribution for WinUI 3 apps — build for release, certificate generation (winapp cert generate), certificate trust, code signing (winapp sign), self-contained deployment, CI/CD with GitHub Actions, and Microsoft Store submission. Use when preparing for release, creating MSIX…

microsoft/win-dev-skills · 86 tokens

winui-session-report

Analyze the current or a recent agent session (GitHub Copilot CLI or Claude Code) and generate a diagnostic report. Use only when the user explicitly asks for session feedback, agent debugging, or a review of what happened during a build session. Do not inspect session data automatically.

microsoft/win-dev-skills · 61 tokens

microsoft-build

Your companion for Microsoft Build 2026. Helps you find sessions relevant to your project, discover what's new for your tech stack, scaffold projects from sessions, and plan your event schedule. Activate when users mention sessions, schedule, what's new, Build, Ignite, AI Tour, Microsoft event, conference, or…

microsoft/Build-CLI · 109 tokens

journey-template

Create new agentic journeys from app ideas. Generates README.md (learner walkthrough), PLAN.md (AI-readable spec), and app-specific skills for OSS deployments. Supports any stack (Node.js, Python, .NET, Java, Swift, Kotlin) and Azure service (Container Apps, AKS, Functions, App Service). USE FOR: new journey, scaffold…

DanWahlin/github-azure-agentic-journeys · 153 tokens