In short.
carbon-update is a Claude Code maintenance skill for existing claude-carbon users, but updating the plugin can leave a separate status-line clone unchanged. It reads local configuration, updates a matching enabled plugin through Claude Code or delegates to scripts/update.sh in a detected clone. The description promises CO2-history recalculation for clone updates, but that updater's implementation is not included. Nothing was executed; update success, compatibility and history changes remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage comprises skills/carbon-update/SKILL.md at revision e669eb4bdbc3e2aa955ca850a36e02e46e0088dc and the accompanying repository-level LICENSE outside that folder. The supplied manifest marks the selected scope complete and contains no other selected files. The rest of claude-carbon, scripts/update.sh, scripts/install-mod.sh, install.sh, marketplace packages and local user configuration are outside this evidence. Nothing was executed; update success, compatibility, downloaded code, setup changes and CO2-history recalculation remain unassessed.
The overview
Identity
carbon-update is an instruction file with an embedded Bash script in skills/carbon-update within gwittebolle/claude-carbon. It maintains an existing installation rather than calculating carbon estimates itself. The skill directs Claude Code to run the wrapper and present its output verbatim.
The available implementation is pinned to repository revision e669eb4bdbc3e2aa955ca850a36e02e46e0088dc.
Assessment
This skill offers a concrete convenience for users unsure whether claude-carbon was installed through a plugin marketplace or a Git clone. Its usefulness comes from detecting those arrangements and selecting an update route.
The wrapper is readable, but the actual plugin packages and clone updater are separate dependencies. Their changes and reliability cannot be established from this file. No installation or update was run.
Users
The intended users already have claude-carbon connected to Claude Code. Beginners get automatic route selection and terminal instructions when automatic updating is unavailable. Developers can inspect how local settings, environment variables and executable discovery affect the chosen installation.
It provides no standalone carbon-reporting interface or complete first-time installation guide.
Capabilities
The wrapper recognizes enabled plugin entries named claude-carbon or co2-tracker, excluding claude-carbon@skills-dir. For a matching plugin, it attempts a marketplace refresh followed by the plugin update and reports the need to restart Claude Code after success.
Without a matching enabled plugin, it runs scripts/update.sh when that file exists in the detected installation. The description says this clone updater refreshes setup and recalculates stored sessions using new CO2 factors. Those operations are delegated, not implemented in the captured wrapper.
If no updater is found, it prints an installer command. That fallback installer is not executed by this wrapper.
Using it
Requirements
The script requires Bash and shell utilities. Reading settings and detecting enabled plugins require jq. If jq is missing from PATH, the wrapper can use an existing executable in the Claude configuration directory's claude-carbon/bin folder; it does not download jq itself.
Automatic plugin updating requires a discoverable Claude Code executable. Clone updating requires scripts/update.sh at the resolved location. The script includes Windows Git Bash path conversion and a Mac desktop-executable lookup, but minimum versions and tested operating-system combinations are unknown.
Mechanism
The wrapper first looks in settings.json under CLAUDE_CONFIG_DIR, defaulting to $HOME/.claude. It reads statusLine.command, removes surrounding double quotes, unescapes spaces, expands a leading tilde and normalizes Windows paths. If the result names an existing file, it treats that file's grandparent directory as the installation root.
When that lookup fails, it tries CLAUDE_PLUGIN_ROOT, then CLAUDE_CARBON_DIR or $HOME/code/claude-carbon. Separately, it selects the first matching enabled plugin from settings. A detected plugin takes priority over the clone update route.
For plugin updates, executable discovery tries CLAUDE_CODE_EXECPATH, the claude command on PATH and then a Mac desktop-app location. The marketplace update must succeed before the plugin update is attempted. Without a detected plugin, the wrapper delegates to the local update script or prints recovery instructions.
Setup
The file does not explain how to register the skill with Claude Code. It assumes an existing claude-carbon installation and uses its configuration to find the update target.
Relevant configuration includes settings.json, enabledPlugins, statusLine.command and the installation-path environment variables. If automatic discovery fails, the printed recovery command points to the moving installer at [https://raw.githubusercontent.com/gwittebolle/claude-carbon/main/install.sh]. The installer itself is outside the available implementation.
Example
Consider a hypothetical installation with an enabled claude-carbon marketplace plugin and a separate Git clone supplying the status line. The wrapper would attempt the marketplace and plugin updates. If both succeed, it would print a restart message, including a reminder to quit the desktop app completely.
It would also print a git pull command for the status-line clone. It would leave that clone's updater unexecuted, so the plugin update alone would not refresh the clone or establish that stored CO2 history had been recalculated. This example follows the code's branches; no commands were run.
Assessment & evidence
Limitations
Without jq, the wrapper skips settings-based detection, including enabled-plugin discovery, and relies on fallback installation paths. Its status-line parsing expects a command that resolves to a file path; support for more complex shell commands is not established.
Only the first matching enabled plugin is selected. When a plugin and status-line clone coexist, the clone receives a printed pull instruction rather than an automatic update.
Dirty-tree handling, setup changes and history recalculation belong to the uncaptured scripts/update.sh. Plugin-command failures produce manual instructions, so printed output must be read for success or failure. Rollback behavior, concurrent updates and resulting data changes were not assessed.
Reasoning
The central design choice is to use Claude Code's plugin manager whenever a matching enabled plugin is detected, even when the status line runs from a clone. Inline comments explain that also invoking the clone updater could register hooks a second time and recalculate stored history.
Leaving that clone for a separate pull follows the stated rationale, but creates an additional maintenance step. The hook-registration and recalculation implementations are not included, so those side effects remain described rather than independently demonstrated.
Alternatives
For a known plugin installation, the wrapper itself supplies a manual alternative: run Claude Code's marketplace update and plugin update commands with the detected marketplace and plugin identifiers.
For a status-line clone alongside a plugin, it supplies a separate git pull command. For a clone-only installation, directly invoking scripts/update.sh would bypass this wrapper's discovery logic. These routes have different effects; the evidence does not establish that a pull alone refreshes setup or recalculates history.
Evidence
The implementation is available at [https://raw.githubusercontent.com/gwittebolle/claude-carbon/e669eb4bdbc3e2aa955ca850a36e02e46e0088dc/skills/carbon-update/SKILL.md]. Its recorded SHA-256 is 7648e54bdd0780bd6c9295032d8e7ef4f4c98aa3f4f873c115fdc2ab32447cc8.
The accompanying licence is available at [https://raw.githubusercontent.com/gwittebolle/claude-carbon/e669eb4bdbc3e2aa955ca850a36e02e46e0088dc/LICENSE]. These files establish the wrapper's written behavior and licence terms. They include no execution results, downstream updater implementation or plugin-package contents.
Access & freshness
Costs
The MIT notice grants software rights free of charge. These files do not establish Claude Code subscription requirements, model usage, update charges or total operating cost; those costs are unknown.
The skill describes history re-pricing as CO2-only. That wording concerns stored carbon estimates and does not establish any change to monetary billing.
Rights
The accompanying repository-level MIT License names Gaetan Wittebolle as copyright holder for 2026. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions.
The software is supplied without warranty, and the notice disclaims author liability. Redistribution of the skill should retain that licence notice.
Freshness
The source snapshot was captured on 16 November 2026 at 10:24:35 UTC and identifies revision e669eb4bdbc3e2aa955ca850a36e02e46e0088dc. Whether the repository has changed since that snapshot is unknown.
The wrapper seeks current marketplace updates, while its recovery installer URL follows main. Consequently, the software retrieved during a future update is not pinned by this skill's captured revision.
Actions
Identify whether the intended update target is the enabled plugin, the status-line clone or both. Check that jq and the expected Claude Code executable are discoverable, since these determine the update route.
Review the clone updater before relying on its promised setup refresh or CO2-history recalculation. After a successful plugin update, follow the restart instruction. If a separate status-line clone exists, account for its additional pull step and verify the resulting installation afterward.
