/hermitd:cost-reflectfrom hermitd
Audits Claude Code spend across token categories and per-session attribution. Answers 'why is my bill high' with cost breakdowns, expensive sessions, and cold start costs.
Ships in hermitd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runs a structural cost audit over the last 7 days of cost-log.jsonl and delivers the result to the operator. The math is done by a script — your job is to run it and deliver the output through the right channel.
--maintainer, or any routine/proactive invocation): produce the full technical
report and send it as a maintainer-tier notice. Report figures only and name no change.On a channel-tagged turn without --maintainer (the inbound prompt contains a <channel source="..."> tag), run
the plain-language mode instead of the full breakdown — a channel operator asking "why is my bill
high" shouldn't get raw token-category jargon:
bun ${CLAUDE_PLUGIN_ROOT}/scripts/cost-report.ts reflect .hermit --plain
Otherwise (terminal/dev use or --maintainer), run the full breakdown:
bun ${CLAUDE_PLUGIN_ROOT}/scripts/cost-report.ts reflect .hermit
Capture stdout. status: "empty" → say no spend is recorded yet and stop; there's nothing to send. On an error, say cost data is unavailable and stop.
Terminal: compose the report from the JSON in under 1500 characters: the window total with turns and sessions, the by_type split, by_model and cold_starts when non-empty, by_source (with more_sources), and top_sessions. Report the figures as given. On a manual run, look at the two largest by_source entries and name at most two changes the operator can make, with each tradeoff, as options without promised savings. If nothing points to a change, say nothing stands out. Offer settings changes through /hermitd:hermit-settings; for a routine, offer to look at it together. A session-model change weakens every conversation and applies at the next restart.
Channel (--plain output): reply through that channel's reply tool, in the operator's language, for someone with no technical background: today's spend against a typical day (today_usd, vs_typical, typical_day_usd), each drivers work in everyday words with its cost_usd (background_checks: background check-ins; scheduled_routines: scheduled routines; channel_messages: their chat messages; other_sessions: other sessions on this machine; conversations: conversations with you), the budget cap when present, and that the figures are a tracking estimate, not a literal bill. On a manual run, add at most one everyday-words sentence naming a change suggested by a driver and its cost in quality or delay, or say nothing stands out. When you name one, invite a reply in the operator's own words, for example "say 'do the full check-in less often' and I'll change it", never a bare yes, which answers a pending task decision. No token types, session IDs, PROP-/T-... or slash commands.
On either surface, read Cheap always-on, or Context clears for context size, before naming a change, and only when a driver points there.
When $ARGUMENTS contains --maintainer (or the invocation is a routine/proactive prompt rather than
a direct operator conversation), deliver the report through the operator's channel. Spend detail is
maintainer-tier by definition, so send it as the maintainer leg only (no client leg):
bun ${CLAUDE_PLUGIN_ROOT}/scripts/channel-send.ts .hermit --notice
with {"maintainer": "<report>"} on stdin. On a technical install with no maintainer chat configured, sendOperatorNotice's default fallback: "client" puts it in the primary chat. On a non-technical install with no maintainer chat, the report goes to state/watchdog-events.jsonl and no chat sees it (fail-closed on spend disclosure). If nothing was delivered, follow § Operator Notification's fallback (push if enabled, log to Findings).
To set a preferred channel, add "primary": "<channel-name>" inside channels in config.json.
hermitd:cost-reflect --maintainer as a routine via /hermitd:hermit-settings.by_type shares are of rows that record a split. For week-over-week totals, use /hermitd:hermit-evolution instead.operator_profile line says non-technical): a client-chat spend question never reaches this skill, since channel-responder deflects it with a plain "handled by your provider" reply. Spend figures stay maintainer-side (terminal, maintainer chat, weekly review), so a channel-tagged run here is expected only from a maintainer-audience surface.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gtapps/hermitd --plugin hermitd41 skills in this plugin
/briefReturns a 5-line executive summary of recent work. Checks open records first, then recent task outcomes. Activates on messages like "brief", "what happened", "morning update", "overnight summary", "progress", "what are you working on", "how's it going"./browserDrives the agent's own browser, or the operator's Chrome for their accounts. Use before giving steps that send someone to a web console to create or change something on an account (an API key, a bot, an app registration), even when the person will do them by hand or no browser is available. Also use when WebSearch fails, or when WebFetch cannot read a page: it is refused (such as 402 or 403), stays rate-limited after a retry, times out, or returns an empty page, a JavaScript-only shell, or a block notice in place of the content asked for. Use it before answering from other sites or searches, above all when the person named or linked the page, even if the browser may be off. Also use when a page needs clicks, forms, scrolling or sign-in; or when a screenshot or exact rendered text is needed. Public read-only lookups start with WebSearch or WebFetch./capability-brainstormMonthly routine plus on-demand hermit-voice brainstorm — synthesizes memory, capabilities, recent artifacts, and codebase shape into at most 2 capability ideas, each gated by proposal-triage before becoming a proposal task. Runs on the capability-brainstorm routine and when the operator asks to brainstorm capabilities or ideate, e.g. "brainstorm capabilities", "any capability ideas?"./channel-accessManage chat access. Let someone talk in a chat, remove them, see who can talk here, open a chat to everyone, turn a chat off, or remove someone who is no longer an approver./channel-responderHandles inbound messages tagged <channel source=...> from Claude Code Channels, routing replies, task work, approvals, and operator controls with session context./channel-setupGuided channel activation for local/tmux users; adds a channel entry when none is configured, installs the plugin, configures the bot token in the project-local state dir, and walks through pairing. Run after hatch, or any time to add or re-enable a channel.Other plugins' skills for the same job