warden-cost

warden-cost is a command for Claude Code from vukkt/token-warden. It costs 53 tokens per session (445 once invoked), scanned A, original, MIT.

A read-only report that converts recorded token savings from active rules into estimated dollar amounts.

In plain words
What is it for?
Use it to compare savings by rule or agent, inspect one project, or project net benefit across weeks or months using configurable token prices.
Why use it?
It shows whether the savings justify the cost of discovering and running the rules, including a break-even point over a chosen time period.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the token-warden plugin — 7 commands, 4 agents, 3 hooks shipped together

Good fit Use it to compare savings by rule or agent, inspect one project, or project net benefit across weeks or months using configurable token prices.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/vukkt/token-warden/warden-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.

Clone the repo
git clone --depth 1 https://github.com/vukkt/token-warden

Made for: Claude Code.

Or install token-warden, the plugin that ships this one along with the rest of its 7 commands, 4 agents, 3 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 warden-cost

README.md
[![agentmods](https://agentmods.dev/badge/commands/vukkt/token-warden/warden-cost.svg)](https://agentmods.dev/commands/vukkt/token-warden/warden-cost)
Your own site
<a href="https://agentmods.dev/commands/vukkt/token-warden/warden-cost"><img src="https://agentmods.dev/badge/commands/vukkt/token-warden/warden-cost.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 445 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.00053 $0.00445
Opus 5 $0.00026 $0.00222
Sonnet 5 $0.00011 $0.00089
Haiku 4.5 $0.00005 $0.00044

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

Security

Grade A, and why

warden-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 8d 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.

commands/warden-cost.md · 35 lines

What it actually says

Run the token-warden dollar report (read-only; it prices the stored receipts):

cd "${CLAUDE_SKILL_DIR}/.." && npx tsx src/cost.ts $ARGUMENTS

Argument forms (pass through verbatim as $ARGUMENTS):

  • (no args) — per-rule dollar report for every domain agent
  • --agent sql — one agent
  • --json — machine-readable output
  • --project — horizon projection (default 13 weeks ≈ 3 months): gross savings, operating (discovery) cost, NET benefit, break-even, and the cost with vs without the plugin over that span
  • --months 6 / --weeks 26 — set the projection horizon (implies --project)
  • --sessions-per-week 40 — assumed session volume for the projection (implies --project; defaults to WARDEN_SESSIONS_PER_WEEK)

Prices default to the public Anthropic rate card; override any rate with the TOKEN_WARDEN_PRICE_INPUT / _OUTPUT / _CACHE_WRITE / _CACHE_READ env vars (in $/1M tokens) to apply your own per-token prices.

Relay the report to the user. Always preserve the honest accounting note it prints: savings are priced at the agent's blended $/token mix (most saved tokens are cheap input/cache-read, so the dollar figure is the truthful magnitude, not an inflated output-rate number), and rent is priced at the input rate. The keep/evict decision itself still runs in tokens — this is the dollar lens on it, not a second gate.

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. 8d ago First seen · 35 lines · 53 tokens per session scan A 9b630fdd48fb

Subscribe to this mod's changes

warden-cost is a command published in the GitHub repository vukkt/token-warden (13 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 445 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.