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.
npx skills add timjensgrossinger/threnody --skill threnody-costgit clone --depth 1 https://github.com/timjensgrossinger/threnodyWrote 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.
[](https://agentmods.dev/skills/timjensgrossinger/threnody/threnody-cost)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00051 | $0.00724 |
| Opus 5.5 | $0.00020 | $0.00290 |
| Sonnet 5.5 | $0.00010 | $0.00145 |
| Haiku 4.5 | $0.00005 | $0.00072 |
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 3mo 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.
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
-
Call
inspect_spend(MCP: Threnody) withsinceparameter.Supported windows:
24h,7d(default),30d,all. -
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
-
Each row in breakdown: role/tier/provider, task count, estimated cost, percentage of total spend.
-
If
by_roleis empty (no role-tagged tasks yet), skip BY ROLE section. -
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).
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.
- 3mo ago First seen · 85 lines · 51 tokens per session scan A 9ffd74688105
threnody-cost is a skill published in the GitHub repository timjensgrossinger/threnody (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 724 once invoked, about $0.0002 per session on Opus 5.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.
threnody-cost compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| threnody-costtimjensgrossinger/threnody | Skill | 2 | 1mo ago | Apache-2.0 | A | 51 | Claude Code |
| llm-cost-advisorulises-jeremias/agent-toolkit | Skill | 28 | today | MIT | A | 45 | Claude Code |
| stripe-refund-auditoranton-abyzov/vskill | Skill | 48 | today | MIT | A | 47 | Claude Code |
| tax-filinganton-abyzov/vskill | Skill | 48 | today | MIT | B | 185 | Claude Code |
| personetta-set-activeEdwardAF-IT/Personetta | Skill | 2 | 3d ago | MIT | A | 56 | Claude Code, Codex |
| personetta-currentEdwardAF-IT/Personetta | Skill | 2 | 3d ago | MIT | A | 50 | Claude Code, Codex |
| personetta-listEdwardAF-IT/Personetta | Skill | 2 | 3d ago | MIT | A | 33 | Claude Code, Codex |