Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add closedloop-ai/claude-plugins/plugin install code-reviewWrote 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/commands/closedloop-ai/claude-plugins/cost)<a href="https://agentmods.dev/commands/closedloop-ai/claude-plugins/cost"><img src="https://agentmods.dev/badge/commands/closedloop-ai/claude-plugins/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/commands/closedloop-ai/claude-plugins/cost"><img src="https://agentmods.dev/badge/commands/closedloop-ai/claude-plugins/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.01080 |
| Opus 5.5 | $0.00020 | $0.00432 |
| Sonnet 5.5 | $0.00010 | $0.00216 |
| Haiku 4.5 | $0.00005 | $0.00108 |
Grade A, and why
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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code-Review Cost Report
review_result.json's telemetry block carries no token data — the Python review pipeline never sees usage. The real numbers live only in the Claude Code session transcripts (~/.claude/projects/<encoded-cwd>/<session>.jsonl plus the per-session subagents/agent-*.jsonl fleet). This command runs a bundled analyzer over those transcripts and attributes spend.
What it reports
- Total / mean / median / p90 cost across the matched sessions.
- Main orchestrator vs subagent fleet split (the walker is typically ~65% of spend).
- Cost by token kind — cache read, 1h/5m cache write, output, input. Cache traffic dominates a long walker loop.
- Cost by depth tier —
deep/standard/shallow, each with mean/median cost, main% split, mean turns, and mean agent count. Depth is resolved from the command variant and--depthargs (a bare/code-review:startisstandard;:deep/:shallowbind their tier), so this is the like-for-like axis. Pooling depths together makes the headline mean meaningless when the mix of tiers shifts. - Cost by reviewer role — bug_hunter, domain_critic, premise, impact_analyzer, auditor, verifier, etc., with
$/runso you can see ROI per agent type. - Top sessions by cost, with turn count and agent count.
Costs are ESTIMATES: raw transcript token counts × public Anthropic list prices, no 1M-context premium or committed-use discount applied. The value is a consistent yardstick for measuring relative cost and the delta from a change.
Run it
The tool is a self-contained Node bundle (Node 18+, no install):
# Scan every code-review session under ~/.claude/projects and print the report
node ${CLAUDE_PLUGIN_ROOT}/scripts/dist/cost-report.mjs --scan
# One specific session
node ${CLAUDE_PLUGIN_ROOT}/scripts/dist/cost-report.mjs --session ~/.claude/projects/<proj>/<session>.jsonl
# Every code-review session in one project directory
node ${CLAUDE_PLUGIN_ROOT}/scripts/dist/cost-report.mjs --project ~/.claude/projects/<proj>
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 · 60 lines · 51 tokens per session scan A a4051e246ca8
cost is a command published in the GitHub repository closedloop-ai/claude-plugins (122 stars, last pushed today), licensed Apache-2.0. It adds 51 tokens to every session and 1,080 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-30.
cost compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| costclosedloop-ai/claude-plugins | Command | 122 | today | Apache-2.0 | A | 51 | Claude Code |
| spreadsheet-auditintellegix/intellegix-code-agent-toolkit | Command | 57 | 8d ago | MIT | A | 0 | Claude Code |
| custom-briefhoangsonww/AI-News-Briefing | Command | 45 | 8d ago | MIT | A | 26 | Claude Code |
| growth-emailchristopherlouet/claude-base | Command | 5 | yesterday | MIT | A | 0 | Claude Code |
| fd-introspectRapierCraftStudios/ForgeDock | Command | 117 | today | AGPL-3.0 | A | 20 | Claude Code |
| cwb-relaxjaychempan/coding-with-beat | Command | 112 | 5mo ago | MIT | A | 37 | Claude Code |
| digestjaroslavsoucek-art/Giovanni | Command | 2 | 10d ago | MIT | A | 0 | Claude Code |