Recent Releases of claude-carbon

claude-carbon - v1.1.2

What's new

  • Install-sync check in the statusline: on machines running both a git clone and a marketplace install, a stale plugin cache used to silently write carbon.db with outdated factors. The statusline now byte-compares its factors/prices against the newest plugin cache copy and shows ≠ install drift on divergence. Opt-out: CLAUDE_CARBON_NO_DRIFT_CHECK.
  • Monthly share nudge: the statusline shows 📊 /carbon-card to the first 3 distinct sessions of each month (tunable via CLAUDE_CARBON_CARD_NUDGE_SESSIONS, opt-out CLAUDE_CARBON_NO_CARD_NUDGE), then goes quiet. Generating a card clears it immediately. generate-report.sh now prints a Totals since ... summary line, and /carbon-card offers a paste-ready, strictly factual social post draft built from it. No auto-posting anywhere.
  • Skill path fix: /carbon-card and /carbon-update now expand shell-escaped statusLine.command paths (tilde, escaped spaces), so they run the install actually wired into the statusline instead of falling back to a stale default.
  • Citing: new CITATION.cff (GitHub "Cite this repository" button) and a Citing section in the README. License stays MIT.

No emission factor or price changes: stored CO2/cost values and golden vectors are unaffected.

Consumption - Computation and Communication - Shell
Published by gwittebolle 24 days ago

claude-carbon - v1.1.1 - npm install, recalibrated factors, self-update flow

Highlights since v1.0:

  • Install via npm: npx claude-carbon now works as an alternative to the curl one-liner. Thin wrapper, the distribution stays git-based.
  • Recalibrated emission factors (Jegham et al. v6, cross-validated with EcoLogits): Sonnet 39/826, Opus 78/1652, Haiku 20/413, Fable 156/3304 gCO2e/Mtok. Bands and caveats in METHODOLOGY.md.
  • EUR display (ECB reference rate) alongside USD.
  • Self-update flow: a discreet status-line notice when a new version ships, /carbon-update to update in one command, and automatic CO2 re-pricing of stored history after each update.
  • Team pointer: /carbon-report and /carbon-card now link to tokenclimate.com for the hosted team view (same methodology, no data collection in the OSS).

Full details in CHANGELOG.md.

Consumption - Computation and Communication - Shell
Published by gwittebolle about 1 month ago

claude-carbon - v1.0 - One-line install

What's new

One-line installer - no more manual config:

curl -fsSL https://raw.githubusercontent.com/gwittebolle/claude-carbon/main/install.sh | bash

Clones the repo, creates the database, backfills your existing Claude Code sessions, and configures ~/.claude/settings.json automatically. One command, done.

Features

  • Live CO2 estimate in the Claude Code status line
  • SQLite database with per-session tracking (incl. subagents)
  • Backfill from existing ~/.claude transcripts
  • Shareable PNG report cards
  • Emission factors from Jegham et al. 2025

Install

curl -fsSL https://raw.githubusercontent.com/gwittebolle/claude-carbon/main/install.sh | bash

Custom directory: CLAUDE_CARBON_DIR=~/my-path curl -fsSL ... | bash

Consumption - Computation and Communication - Shell
Published by gwittebolle 5 months ago