/green-stats:update-modelfrom green-stats
View or update green-stats' energy estimation model — per-token Wh coefficients per model tier, PUE, grid carbon intensity — optionally researching newer published estimates, and assign tiers to models the report lists as unmapped. Use when the user wants to see, tune, refresh or question the energy/CO2 assumptions.
Ships in green-stats. 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.
The config is ${GREEN_STATS_HOME:-$HOME/.local/share/green-stats}/config.json. If it's missing, run green-stats:setup first. The methodology and sources are in ${CLAUDE_PLUGIN_ROOT}/docs/energy-model.md.
Energy is computed at report time from these values, so every change applies to past data too. There's no need to re-collect.
Read the config and present a compact table:
opus, sonnet, haiku, default)input, cache_write, cache_read, output, in Wh per million tokens (keys wh_per_mtok.<tier>.<type>)Below it, show:
puegrid_gco2_per_kwhestimate_low_factor / estimate_high_factorenergy_model_versiontier_map.* entriesThen ask what they want to change.
Change only the requested keys. Keep one "key": value per line. If a coefficient changed, set energy_model_version to the current YYYY-MM plus a short suffix, e.g. 2026-11-custom, so reports show which model produced them.
energy_model_version and add the sources to docs/energy-model.md if the user is working in the plugin repo. Otherwise, mention them in your reply.When a report lists unmapped models, ask which tier each belongs to. Add a line to the config:
"tier_map.<distinctive substring of the model id>": "<tier>",
Tier maps are checked before the built-in opus/sonnet/haiku matching. A new tier name also needs its four wh_per_mtok.<tier>.* keys.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jaksa76/green-stats --plugin green-stats3 skills in this plugin
/reportReport Claude Code token usage and estimated energy/CO2 for a time window, broken down by model, day or source (host or devcontainer). Collects new transcript data incrementally first. Use when the user asks how many tokens they used, their Claude usage, or the energy or carbon footprint of their Claude usage./setupFirst-run setup for green-stats — detects the environment (shell, tools, docker/podman), asks the user where and how to collect Claude Code usage, writes the config, and ports the collector to PowerShell if bash is unavailable. Use on first use, or when the user wants to reconfigure green-stats (e.g. enable/disable devcontainer collection).