threnody-cost

threnody-cost is a skill for Claude Code from timjensgrossinger/threnody. It costs 51 tokens per session (724 once invoked), scanned A, original, Apache-2.0.

A local spending report for Threnody work, using stored token counts and model price estimates.

In plain words
What is it for?
Use it to inspect costs over the last day, week, month, or all recorded time, broken down by role, tier, or provider.
Why use it?
It shows where task spending and token use come from, without requiring provider invoices or external API calls.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the threnody plugin — 10 skills, 3 agents shipped together

Good fit Use it to inspect costs over the last day, week, month, or all recorded time, broken down by role, tier, or provider.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/timjensgrossinger/threnody/threnody-cost
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 timjensgrossinger/threnody --skill threnody-cost
Clone the repo
git clone --depth 1 https://github.com/timjensgrossinger/threnody

Made for: Claude Code.

Or install threnody, the plugin that ships this one along with the rest of its 10 skills, 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 threnody-cost

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/timjensgrossinger/threnody/threnody-cost"><img src="https://agentmods.dev/badge/skills/timjensgrossinger/threnody/threnody-cost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 724 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.00051 $0.00724
Opus 5 $0.00026 $0.00362
Sonnet 5 $0.00010 $0.00145
Haiku 4.5 $0.00005 $0.00072

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

Security

Grade A, and why

threnody-cost 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 10d 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.

skills/threnody-cost/SKILL.md · 85 lines

How it starts

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

Threnody cost dashboard

inspect_spend returns aggregated cost telemetry from local SQLite.

All data is local — no API calls. Costs are estimates based on bundled model price hints and token counts, not provider invoices.

When to use

  • User asks "how much did X cost?"
  • User wants to see spend trends, savings, token usage
  • User wants to understand tier utilization or free-tier ratio
  • User wants to see cost breakdown by role, tier, or provider

Process

  1. Call inspect_spend (MCP: Threnody) with since parameter.

    Supported windows: 24h, 7d (default), 30d, all.

  2. Format output as table:

THRENODY COST — last 7d
─────────────────────────
Subtasks:   47         Est cost:    $0.34
Free:       23%        Savings:     $2.81 (vs all-high-tier)

BY ROLE (when present)
  Implementer   28 tasks   $0.18   54% of spend
  Reviewer      12 tasks   $0.09   26%
  Architect      4 tasks   $0.05   15%
  Tester         3 tasks   $0.02   5%

BY TIER
  low            31 tasks   $0.04
  medium         12 tasks   $0.18
  high            4 tasks   $0.12

BY PROVIDER
  claude         38 tasks   $0.27
  openai          9 tasks   $0.07

TIPS
  - Free-tier utilization low (23%) → enable more free-tier providers
  - Reviewer rework rate high → consider higher tier for review tasks
  1. Each row in breakdown: role/tier/provider, task count, estimated cost, percentage of total spend.

  2. If by_role is empty (no role-tagged tasks yet), skip BY ROLE section.

  3. Add contextual tips based on data:

    • free_subtask_pct < 30% → "Enable more free-tier providers to cut spend"
    • savings_usd > 0 → "Threnody saved you $X vs all-high-tier routing"
    • Any role with high rework rate → "Consider higher tier for {role} tasks"

Interpretation

  • est_cost_usd: estimated cost based on bundled model price hints × token counts. Not a provider invoice.
  • counterfactual_cost_usd: what the same work would cost if all tasks ran on high-tier model.
  • savings_usd: counterfactual - est = dollars saved by tier routing.
  • free_subtask_pct: percentage of subtasks that cost $0 (free-tier providers).

Read the full file on GitHub · 85 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. 10d ago First seen · 85 lines · 51 tokens per session scan A 9ffd74688105

Subscribe to this mod's changes

threnody-cost is a skill published in the GitHub repository timjensgrossinger/threnody (2 stars, last pushed 14d ago), licensed Apache-2.0. It adds 51 tokens to every session and 724 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-31.

Related

Other skills, from other repositories

stripe-refund-auditor

Audits Stripe refunds over a date range to surface anomalies (refund-rate spikes, missing reasons, duplicate refunds). Activates when the user asks to "audit refunds", "check Stripe refund anomalies", or "review refund activity".

anton-abyzov/vskill · 52 tokens

iblai-api-billing

Operate an ibl.ai organization's billing surface via the platform API — credit accounts (balance, auto-recharge, manual top-up), transaction history, generic item paywalls (config + price tiers), Stripe Connect checkout (authenticated and guest), subscriptions, access checks, public pricing, and platform reporting…

iblai/api · 0 tokens

iblai-api-spend-caps

Manage an ibl.ai organization's LLM spend caps via the platform API — admin-imposed maximum LLM cost at three scopes (tenant-wide, one agent, or one user on one agent), each with a rolling interval (day/week/month/year), a hard-block or alert-only enforcement mode, and near-limit alert thresholds. Read the current…

iblai/api · 137 tokens

llm-cost-advisor

WHAT — Recommend the most cost-effective LLM provider for a given task type. Shows estimated cost per run across available providers and integrates with devcompanion llm-status to show what is actually available.

ulises-jeremias/agent-toolkit · 46 tokens

tax-filing

End-to-end corporate and personal tax preparation: data gathering from Xero/bank statements/Gmail/Obsidian/Google Drive, P&L generation, IRS compliance analysis, tax calculation, document staging, and payment guidance. Use this skill when the user mentions tax filing, tax preparation, P&L report, Form 1120, Form 1040…

anton-abyzov/vskill · 185 tokens

personetta-set-active

Switches the active Personetta persona via set-active. The target tool is auto-detected from the host agent (Claude Code here), so no --format is needed. Use when the user asks to change recipe, switch persona, or set active role.

EdwardAF-IT/Personetta · 56 tokens