cost-breakdown

cost-breakdown is a skill for Claude Code, Codex from hoangsonww/Claude-Code-Agent-Monitor. It costs 64 tokens per session (881 once invoked), scanned A, original, MIT.

A cost report for Claude Code based on Agent Monitor’s pricing engine. It breaks spending down by model, session, day, token type, and recovered context tokens after compaction, which is when conversation context is shortened.

In plain words
What is it for?
Use it to review today’s or recent spending, inspect a session, compare model costs, follow daily cost trends, or plan against a budget.
Why use it?
It shows where usage costs come from and provides the rates and token counts behind the totals. This makes spending easier to compare across models, sessions, and time periods.

Skill for Claude CodeCodex

Written for Claude Code and Codex: $ARGUMENTS substitution, but also agents/openai.yaml present. Also seen: positional $N argument; mentions Claude Code.

Part of the ccam-analytics plugin — 6 skills, 3 commands, 2 agents, 2 hooks shipped together

Good fit Use it to review today’s or recent spending, inspect a session, compare model costs, follow daily cost trends, or plan against a budget.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hoangsonww/claude-code-agent-monitor/cost-breakdown
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.

Any agent
npx skills add hoangsonww/Claude-Code-Agent-Monitor --skill cost-breakdown
Clone the repo
git clone --depth 1 https://github.com/hoangsonww/Claude-Code-Agent-Monitor

Made for: Claude Code, Codex.

Or install ccam-analytics, the plugin that ships this one along with the rest of its 6 skills, 3 commands, 2 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-breakdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangsonww/claude-code-agent-monitor/cost-breakdown/github.svg)](https://agentmods.dev/skills/hoangsonww/claude-code-agent-monitor/cost-breakdown)
Your own site
<a href="https://agentmods.dev/skills/hoangsonww/claude-code-agent-monitor/cost-breakdown"><img src="https://agentmods.dev/badge/skills/hoangsonww/claude-code-agent-monitor/cost-breakdown/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-breakdown

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangsonww/claude-code-agent-monitor/cost-breakdown"><img src="https://agentmods.dev/badge/skills/hoangsonww/claude-code-agent-monitor/cost-breakdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 881 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00064 $0.00881
Opus 5 $0.00032 $0.00441
Sonnet 5 $0.00013 $0.00176
Haiku 4.5 $0.00006 $0.00088

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

Security

Grade A, and why

cost-breakdown 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 12d 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.

plugins/ccam-analytics/skills/cost-breakdown/SKILL.md · 75 lines

How it starts

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

Cost Breakdown

Detailed cost analysis from the Agent Monitor's pricing engine.

Input

The user provides: $ARGUMENTS

This may be: "today", "this week", "last 30 days", a session ID, or "budget $50/week".

Data Sources

Endpoint Returns
GET /api/pricing { pricing: [{ model_pattern, display_name, input_per_mtok, output_per_mtok, cache_read_per_mtok, cache_write_per_mtok }] }
GET /api/pricing/cost Total cost: { total_cost, breakdown: [{ model, input_tokens, output_tokens, cache_read_tokens, cache_write_tokens, cost, matched_rule }] }
GET /api/pricing/cost/{sessionId} Per-session cost with same breakdown shape
GET /api/sessions?limit=200 Sessions list — each includes inline cost field (bulk pricing)
GET /api/analytics Token totals (total_input, total_output, total_cache_read, total_cache_write — baselines pre-summed), daily trends

How costs are calculated

The pricing engine matches model names against model_pattern using SQL LIKE (e.g. claude-sonnet-4-5% matches claude-sonnet-4-5-20250514). Longest pattern wins for specificity. Cost per model:

cost = (input_tokens / 1M) × input_per_mtok
     + (output_tokens / 1M) × output_per_mtok
     + (cache_read_tokens / 1M) × cache_read_per_mtok
     + (cache_write_tokens / 1M) × cache_write_per_mtok

Token counts are effective totals = current + baseline (baselines preserve pre-compaction tokens that would otherwise be lost when the transcript JSONL is rewritten).

Default pricing tiers (seeded on first run)

Family Input $/Mtok Output $/Mtok Cache Read $/Mtok Cache Write $/Mtok
Opus 4.5/4.6 $5 $25 $0.50 $6.25
Sonnet 4/4.5/4.6 $3 $15 $0.30 $3.75
Haiku 4.5 $1 $5 $0.10 $1.25

Report Sections

1. Cost by Model

Table from /api/pricing/cost breakdown — each model with 4 token counts + cost. Highlight which pricing rule matched.

Read the full file on GitHub · 75 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 75 lines · 64 tokens per session scan A df60dd167405

Subscribe to this mod's changes

cost-breakdown is a skill published in the GitHub repository hoangsonww/Claude-Code-Agent-Monitor (991 stars, last pushed 3d ago), licensed MIT. It adds 64 tokens to every session and 881 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.

Related

Other skills, from other repositories

laravel-stripe-connect

Use when implementing multi-vendor marketplace payments, seller onboarding, commissions, payouts, or split payments with Stripe Connect.

fusengine/agents · 29 tokens

finance-analysis

Financial analysis, modeling, FP&A, investment research, and tax strategy. Use when the user asks about three-statement models, DCF valuation, variance analysis, budgeting, rolling forecasts, equity research, due diligence, portfolio analysis, GAAP/IFRS accounting, month-end close, multi-jurisdictional tax…

daehounan/agency-agents-fork · 129 tokens

real-estate-mortgage

Residential real estate transactions and mortgage lending workflows. Use when the user asks about buyer/seller representation, offers, transaction coordination, mortgage borrower intake, TRID compliance, loan pipeline tracking, closing coordination, MLS, escrow, title, or appraisal contingencies. Triggers on real…

daehounan/agency-agents-fork · 95 tokens

syndic

Gère un parc de copropriétés en France avec vue portfolio consolidée. Couvre administration, comptabilité (décret 2005, plan comptable copro, 5 annexes), assemblées générales (convocation, PV, notification), appels de fonds, travaux, fournisseurs, recouvrement d'impayés et transition de syndic. Maîtrise les majorités…

romainsimon/paperasse · 194 tokens

financial-statement-analysis

Reads a set of financial statements and establishes what changed and why — fluctuation analysis against prior period and against budget, profitability, liquidity, solvency and efficiency ratios, benchmarking, and the non-GAAP measures presented alongside them. Use this to interpret results, review a counterparty's or…

cbrock84/headcount · 93 tokens

ib-collar

Generate tactical collar strategy reports for protecting PMCC positions through earnings or high-risk events. Requires TWS or IB Gateway running locally.

staskh/trading_skills · 30 tokens