From agent-cost
Print a cost rollup table by branch / issue / tier / agent / model / day / session, joining Claude Code's claude_code.cost.usage metric with agent-telemetry's session_context events. Use when investigating where Claude Code spend is going, comparing dispatch costs across PRs / issues / tiers, or producing a periodic spend summary.
npx claudepluginhub laran/claude-agent-costThis skill uses the workspace's default tool permissions.
Surfaces cost rollups using Claude Code's authoritative
Prevents silent decimal mismatch bugs in EVM ERC-20 tokens via runtime decimals lookup, chain-aware caching, bridged-token handling, and normalization. For DeFi bots, dashboards using Python/Web3, TypeScript/ethers, Solidity.
Share bugs, ideas, or general feedback.
Surfaces cost rollups using Claude Code's authoritative
claude_code.cost.usage metric (USD-attributed by Claude Code itself,
per https://code.claude.com/docs/en/monitoring-usage).
/cost-report --by branch [--since 7d]
/cost-report --by issue [--since 24h]
/cost-report --by tier [--since 1h]
/cost-report --by agent [--since 24h]
/cost-report --by model [--since 24h]
/cost-report --by day [--since 30d]
/cost-report --by session [--since 24h]
/cost-report --by tier --filter query_source=subagent
The skill shells out to bin/cost-report.sh, which:
claude_code_cost_usage_total, summed by
session_id (or model for --by tier|model|agent), over the
requested window.branch, issue, day,
session), queries Loki for agent.session_context events to
resolve session_id → workflow.branch / workflow.issue_number.--by tier, rolls up models via the active tiers.yml
(resolution order: $AGENT_TIERS_FILE env var, project's
.claude/agent-tiers.yml, agent-telemetry's bundled
config/tiers.yml).--by agent currently falls back to --by model granularity. True
per-subagent_type rollup needs to join the cost metric with the
trace-level subagent_type attribute (Claude Code's
claude_code.tool spans). Tracked for v1.1.--by day rolls up over the entire window without per-day buckets;
use Grafana time-series panels for daily breakdowns. Tracked for v1.1.CLAUDE_CODE_ENABLE_TELEMETRY=1.agent.session_context
events from the agent-telemetry plugin.jq, curl, and (for cost-budget-check) yq on PATH.See docs/SETUP.md.