ashlr-savings

ashlr-savings is a command for Claude Code from ashlrai/ashlr-plugin. It costs 22 tokens per session (443 once invoked), scanned A, original, MIT.

A reporting command for ashlr-plugin, showing estimated tokens and money saved by its tool calls during the current session and across all sessions.

In plain words
What is it for?
Use it to view call counts, saved tokens, estimated cost savings, tool breakdowns, recent daily savings, and upgrade-prompt statistics.
Why use it?
It makes the plugin's usage savings visible instead of leaving them as hidden estimates.

Command for Claude Code

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

Part of the ashlr plugin — 11 skills, 36 commands, 5 agents, 7 hooks, 1 MCP server shipped together

Good fit Use it to view call counts, saved tokens, estimated cost savings, tool breakdowns, recent daily savings, and upgrade-prompt statistics.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ashlrai/ashlr-plugin/ashlr-savings
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/ashlrai/ashlr-plugin

Made for: Claude Code.

Or install ashlr, the plugin that ships this one along with the rest of its 11 skills, 36 commands, 5 agents, 7 hooks, 1 MCP server.

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 ashlr-savings

README.md
[![agentmods](https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-savings.svg)](https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-savings)
Your own site
<a href="https://agentmods.dev/commands/ashlrai/ashlr-plugin/ashlr-savings"><img src="https://agentmods.dev/badge/commands/ashlrai/ashlr-plugin/ashlr-savings.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 443 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.00022 $0.00443
Opus 5 $0.00011 $0.00221
Sonnet 5 $0.00004 $0.00089
Haiku 4.5 $0.00002 $0.00044

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

Security

Grade A, and why

ashlr-savings 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/ashlr-savings.md · 25 lines

What it actually says

Call the ashlr__savings MCP tool and show its output to the user verbatim inside a fenced code block (```) so the ASCII bar charts and column alignment render correctly.

The tool already returns a rich multi-line report covering:

  • Session age and pricing model in use
  • Two-column summary (this session vs all-time): calls, tokens saved, estimated dollar cost saved
  • Per-tool breakdown for the current session (calls, tokens, proportional bar, percentage)
  • A 7-day sparkline of daily tokens-saved (scaled to the busiest day)
  • Pro upgrade nudge telemetry (when the user has crossed the 50k threshold at least once): shown N · clicked M · rate P%. Pro/Team users see the same stats labeled "historical" — no live nudge renders anymore.

After the verbatim block, add at most one short line:

  • If session calls is 0: "No ashlr__read/grep/edit calls yet — try those in place of the built-ins to start accumulating savings."
  • If session calls is non-zero and lifetime calls is under 20: "Still warming up — numbers get more meaningful after a few dozen calls."
  • Otherwise: say nothing extra. The report speaks for itself.

Pricing note (only surface if the user asks how the dollar figure is derived): the report uses Claude Sonnet 4.5 input pricing ($3.00 per million tokens) by default. Override with the ASHLR_PRICING_MODEL env var (sonnet-4.5 | opus-4 | haiku-4.5).

Do not paraphrase the numbers — the user wants the exact tool output, not a rewritten summary.

Want a richer view? /ashlr-dashboard renders a multi-panel dashboard with ANSI colors, per-tool bar charts, 7-day and 30-day sparklines, top projects, and a projected-annual-savings extrapolation.

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 · 25 lines · 22 tokens per session scan A 0d51a5d9e66b

Subscribe to this mod's changes

ashlr-savings is a command published in the GitHub repository ashlrai/ashlr-plugin (3 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 443 once invoked, about $0.0001 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.