Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By arozumenkov0.3.1MITIn 1 marketplace
Shows what each sub-agent cost you, broken down by role, day and project, so orchestrator overhead is separated from dispatched work. Needs Node 18+, and costs are metered by ccusage.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Per-project / per-session / per-role / per-sub-agent cost & efficiency for AI coding-agent work — every dollar metered by ccusage.
A skill for the sdlc-skills toolkit. Full instructions live in SKILL.md; the deep derivation + evidence live in references/methodology.md. This file is the front door: what it needs, and exactly how it works.
Loads on "what did this cost", "cost per session/agent/project", "which role/sub-agent spent the most", "before vs after cost", "is this change worth it", or "break down / audit our AI spend".
ccusage tells you what a session cost but bundles the orchestrator together with every sub-agent it dispatched. This skill meters each sub-agent individually, then joins each metered dollar to the role / day / project that spent it. Cost is 100% ccusage — no pricing table. Snapshots + diffs give before/after tracking.
ccusage — auto-invoked via npx ccusage@latest, or install it locally / globally. Cost is Claude-host-native; Copilot/Codex/Gemini totals work only where ccusage supports them.$CLAUDE_CONFIG_DIR/projects when set, else the first of ~/.claude/projects, ~/.config/claude/projects that exists.Six steps, with the exact files and fields at each one.
Every Claude session is a JSONL transcript on disk, under
~/.claude/projects/<encoded-cwd>/ — where <encoded-cwd> is your project's
absolute path with every separator and filename-awkward character (/ \ : . _
and space) turned into - (e.g. /Users/me/dev/app → -Users-me-dev-app,
/Users/Ada_Lovelace/AI baseline → -Users-Ada-Lovelace-AI-baseline). Inside
that folder:
<encoded-cwd>/
<session-uuid>.jsonl ← a top-level session (the orchestrator, or a plain session)
<session-uuid>/
subagents/
agent-<hex>.jsonl ← one transcript per dispatched sub-agent
agent-<hex>.meta.json ← sidecar: { "agentType": "...", "description": "..." }
tool-results/ ← hook stdout etc. (ignored — no transcripts)
(ccusage reads the same store, and also ~/.config/claude/projects; CLAUDE_CONFIG_DIR overrides the location.)
.jsonl of the
form {"type":"agent-setting","agentSetting":"test-automation-lead"}. That
agentSetting value is the role — it's written when the session was
launched claude --agent <role>. No such record ⇒ an ad-hoc session ⇒ counted
as unattributed.agentType field in its agent-<hex>.meta.json
sidecar. Discovery is keyed off these sidecars (so the Workflow tool's
journal.jsonl, which has no sidecar, is correctly ignored).message.usage (input_tokens, output_tokens, cache_read_input_tokens,
cache_creation_input_tokens) and message.model; we total them, deduping by
message.id and taking the max output_tokens (streaming repeats the same id
with a growing count).tool_use blocks,
errors = tool_result with is_error: true; skills loaded = the
attributionSkill field ∪ Skill tool calls (input.skill); sub-agents
dispatched = Agent tool calls (named by input.subagent_type /
description).Nesting note: Claude Code stores all descendant sub-agents flat under the top
session's one subagents/ folder — so an orchestrator run as a sub-agent, and
the sub-agents it spawns, are all captured (discovery is recursive regardless).
ccusage identifies a session by its file name and only globs the top of a
project folder, so sub-agents (hidden one level down in subagents/) are normally
invisible to it. We fix that by rehoming ccusage onto a flattened copy:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub arozumenko/sdlc-skills --plugin efficiency-auditPlugins from other owners that cover similar ground