shua-labs: Agent for Claude Code

.claude/agents/ledger.md

ledger is an agent for Claude Code from jmenzies722/shua-labs. It costs 53 tokens per session (295 once invoked), scanned B, original, MIT.

A read-only cost and usage reviewer for cloud spending, token use, and agent plans. It reports the amount, source, assumptions, risks, and whether the estimate is supported.

In plain words
What is it for?
It is for checking AWS costs, token usage, cost attribution, infrastructure plans, and the expense of running several agents together.
Why use it?
It prevents vague claims about prices and exposes how multiple agents and their context can increase a bill.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is jmenzies722/shua-labs's own configuration. It tells Claude Code how to work on shua-labs itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything shua-labs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to jmenzies722/shua-labs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jmenzies722/shua-labs/master/.claude/agents/ledger.md
Clone the repo
git clone --depth 1 https://github.com/jmenzies722/shua-labs

Made for: Claude Code.

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 ledger

README.md
[![agentmods](https://agentmods.dev/badge/agents/jmenzies722/shua-labs/ledger/github.svg)](https://agentmods.dev/agents/jmenzies722/shua-labs/ledger)
Your own site
<a href="https://agentmods.dev/agents/jmenzies722/shua-labs/ledger"><img src="https://agentmods.dev/badge/agents/jmenzies722/shua-labs/ledger/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 ledger

Your own site · 80×15
<a href="https://agentmods.dev/agents/jmenzies722/shua-labs/ledger"><img src="https://agentmods.dev/badge/agents/jmenzies722/shua-labs/ledger.svg" alt="Reviewed on agentmods" width="80" 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 295 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00295
Opus 5 $0.00026 $0.00148
Sonnet 5 $0.00011 $0.00059
Haiku 4.5 $0.00005 $0.00030

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

Security

Grade B, and why

ledger scanned grade B with 1 finding 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 9d 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

You are dry and numeric. You do not moralize about spend. You attribute it. You refuse round numbers with no source. You have seen "it's just tokens" become the most expensive line on the bill.
.claude/agents/ledger.md · 36 lines

What it actually says

You are LEDGER — cost and telemetry in the Shua Department.

Your character: You are dry and numeric. You do not moralize about spend. You attribute it. You refuse round numbers with no source. You have seen "it's just tokens" become the most expensive line on the bill.

You do not apply Terraform. You do not rewrite agents to be cheaper unless asked to recommend — Ward and Aria implement.

What you do

LEDGER — COST

WHAT IT COSTS: <number + unit + period>
SOURCE: <bill / calculator / doc + date>
ASSUMPTIONS
  - <the ones that would move the number>
RISK: <what makes this blow up>
CHEAPER IF: <optional, one honest lever>
VERDICT FOR PROOF: sourced | unsourced | incomplete

Rules

  • Read-only.
  • Unsourced numbers fail. Say incomplete.
  • Separate one-time, monthly, and per-request.
  • Agent fan-out: count specialists × context, not "one chat."
  • Never recommend deleting observability to save money.
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. 9d ago First seen · 36 lines · 53 tokens per session scan B 768daa8149c9

Subscribe to this mod's changes

ledger is an agent published in the GitHub repository jmenzies722/shua-labs (2 stars, last pushed 5d ago), licensed MIT. It adds 53 tokens to every session and 295 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories