ClaudeCodeMod

All shelves / Mods / Usage

claude-carbon

By gwittebolle

claude-carbon is a Claude Code usage mod by gwittebolle.

Draws the CO2 of each answer and a pane with a pixel molecule colored against your past sessions, plus this session's total under the prompt.

Draws

Install

The marketplace name is claude-carbon.

In Claude Code
/plugin install claude-carbon --marketplace gwittebolle/claude-carbon
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
1.16.0
License
MIT
Repo stars
214
Last change
2026-10-16

What it can reach

  • Draws in the session
  • Reads usage or context figures

Mods need Claude Code 2.1.287 or later (2.1.286 in the desktop app). The author says this plugin command gives the mod and the slash commands, but no status line and no database, and that the mod writes no database, starts no process, and makes no network call. /carbon-panel opens the pane. The fuller installer is curl -fsSL https://raw.githubusercontent.com/gwittebolle/claude-carbon/main/install.sh | bash, which also sets up the status line and the database. That status line reads the 5-hour quota from Anthropic's /api/oauth/usage. /carbon-card uses Chrome or Edge.

The plugin install and the curl installer are two copies. The author says to pick one, or the hooks run twice.

Demo

The Claude desktop app with the claude-carbon pane open: a blue pixel molecule, This session: 8.2 gCO2, the last 30 days as tiles and warming stripes, a Get my 2026 card button, and the session total under the prompt
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • agent.spawnWhen a subagent starts
  • tool.callAround a tool call, where it can hold oneAgent
  • turn.startWhen Claude starts a turn
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • session.endWhen a session ends
  • command.runWhen you run its slash command
  • ui.closeWhen its pane closes
  • ui.renderDraws into the sessionAbovePromptPaneTurnDuration

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Hooks 4

  • Stop"${CLAUDE_PLUGIN_ROOT}/scripts/persist-session.sh"
  • SessionEnd"${CLAUDE_PLUGIN_ROOT}/scripts/persist-on-exit.sh"
  • SubagentStop · .+"${CLAUDE_PLUGIN_ROOT}/scripts/agent-stop.sh"
  • SessionStart"${CLAUDE_PLUGIN_ROOT}/scripts/safety-rescan.sh"

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
gwittebolle
Category
Usage
Marketplace
claude-carbon
Repo
gwittebolle/claude-carbon
Version
1.16.0
License
MIT
Repo stars
214
Last change
2026-10-16
Language
Shell
Files
111

Other mods in Usage

dividendMint-SecurityDraws a tip above the prompt about the prompt cache, the context, or the plan limits, with a status line and a /dividend pane of the session's figures.caliber-jev-compactioncaliber-ai-orgReplaces /compact: Jev scores each tool call, drops the stale ones, and keeps the rest of the conversation word for word, then toasts what it kept.model-effort-bandYeonwooSungDraws a band above the prompt with the selected model and the effort of the latest main-conversation request.shuntpleaseaiDraws a band above the prompt with the shared pool's usage and reset times, or this session's rate limits when you are off shunt.optimaizrblendbunjakuHolds a commandDraws this turn's cost, the 5-hour window, and cache time above the prompt, and holds a command that failed twice unchanged.clawdmeterwelternDraws Clawd and the session, weekly, and context bars in a band above the prompt.ccswaperrhythmDraws your ccswap accounts and their 5-hour and 7-day usage, and switches from a button on the band.routeralexei-ledPicks a model and effort for each turn from a classifier, and draws the tier above the prompt.context-budgetmelodic-softwareHolds a commandDraws the session's context by category, in a pane or a band above the prompt, and asks before a settings file is written.extra-modsJhonatan-de-SouzaDraws a menu for Zen, themes, model and effort, and a status line of context, plan limits, and cache.jevNasrallah-ALHas Jev drop stale tool calls at compaction and keep the rest word for word, toasts what it kept, and adds slash commands for the jev CLI.decknvr0x5Draws a collapsible panel above the prompt for the plan, context, the 5-hour and 7-day limits, and a small pet.
All 183 in Usage