agent-cost-report

Estimate Claude Code agent costs and failure waste from session transcripts.

Install

See setup instructions on claude-mem.ai

What it does

Agent Cost Report is a Claude-Mem and Claude Code skill that produces a cost and failure report for a chosen period, by default the last seven full days in Pacific Time. It reads Claude Code and Codex session transcripts, counts measured token usage, and prices those tokens at OpenRouter list prices, so the resulting dollar figures are labeled as estimates rather than billed spend. Measured provider spend is shown only when a sanctioned source exists.

Beyond totals, the report groups activity into work items, assigns them a work category, and flags waste such as looping, rework, hedging, or unauthorized actions that were blocked. It also keeps note-taker cost separate from agent cost and states cost per completed outcome.

Outputs are a self-contained HTML report, an optional PDF, and accompanying JSON, CSV, and evidence files. The skill runs on Python 3.9 or later using only the standard library, so no packages need installing apart from timezone data on some systems.

Limits to keep in mind:

  • Dollar amounts are list-price estimates from transcripts, not invoices.
  • Sessions without a transcript on the machine are extrapolated and marked low confidence.
  • Category and failure labels start as keyword drafts and stay marked until reviewed, and no external service integrations are used.

Skill files

  • .gitignore
  • CHECKSUMS.txt
  • SKILL.md

Repository data

Stars
119,337
Last push
Nov 23, 2026
License
Apache-2.0
Archived
No

Tools similar to agent-cost-report

FAQ

What license does agent-cost-report use?
Apache-2.0
What files are included with agent-cost-report?
.gitignore, CHECKSUMS.txt, SKILL.md

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/skills/agent-cost-report"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options