report

A command that creates a plain-text report about carbon emissions from tracked models or projects. It runs a reporting script and formats the returned data according to fixed layout rules.

In plain words
What is it for?
Use it to display carbon, energy, travel-equivalent, model, or project figures from the carbon-tracking system.
Why use it?
It saves you from manually collecting, calculating, and aligning the report details. Missing sections can be left out automatically.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/cnaught-inc/claude-code-plugins/report
Clone the repo
git clone --depth 1 https://github.com/CNaught-Inc/claude-code-plugins
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 745 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00745
Opus 5 $0.00000 $0.00373
Sonnet 5 $0.00000 $0.00149
Haiku 4.5 $0.00000 $0.00075

Measured 2d ago against content hash fbaa487dfbc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

report scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/carbonlog/commands/report.md · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/carbonlog:report

Generate a carbon emissions report.

Script

npx -y bun ${CLAUDE_PLUGIN_ROOT}/src/scripts/carbonlog-report.ts --json

Instructions

Run the script above to get report data as JSON. Then format and display the report as plain text (NOT in a code block, NOT using markdown tables or headers). Match the visual style shown in the template below exactly.

IMPORTANT: Output ONLY the formatted report. Do not add any additional commentary, summary, or explanation before or after it.

Formatting rules

  • Use for filled progress bar segments and · for empty ones, 15 characters wide, wrapped in []
  • Calculate filled segments as: round((item_co2 / max_co2_in_section) * 15)
  • Format large numbers with commas (e.g. 12,965,819)
  • Use markdown bold for key values: CO₂ and Energy amounts, miles driven and home energy days, and the CO2 kg values in each model/project row.
  • Omit any section where the JSON value is null

Column alignment (critical — every row in a section must have its columns at the same character position):

  • By Model: pad model names to the width of the longest model name. Right-pad kg values to 7 chars total. Right-pad session counts to 3 digits. Right-pad percentages to 2 digits.
  • By Project: pad project names to the width of the longest project name. Right-pad kg values to 7 chars total. Right-pad percentages to 2 digits.
  • Bold + alignment: alignment padding spaces must go BEFORE the ** marker, never inside it. Example: **4.36kg** is correct, ** 4.36kg** is wrong. The ** must be immediately adjacent to the value with no spaces inside.

Template

╔══════════════════════════════════════════════════╗
║       [Cø] CNaught Climate Impact Report         ║
╚══════════════════════════════════════════════════╝

Summary  (since {summary.tracking_since})
──────────────────────────────────────────────────

  CO₂    {summary.co2_kg} kg
  Energy {summary.energy_kwh} kWh
  Sessions: {summary.sessions} · Tokens: {summary.total_tokens} ({summary.output_tokens} output)
  Emissions estimated from output tokens

Equivalents
──────────────────────────────────────────────────

  🚗  Miles driven       {equivalents.miles_driven} miles
  🏠  Home energy         {equivalents.home_energy_days} days

By Model
──────────────────────────────────────────────────

  [■■■■■··········] {model_name}  {co2}kg  {sessions} sessions · {pct}%
  (one row per model, sorted by CO2 descending)

By Project
──────────────────────────────────────────────────

  [■■■■■■■········] {project_name}  {co2}kg  {pct}%
  (one row per project, sorted by CO2 descending)

Sync
──────────────────────────────────────────────────

  Dashboard:     {sync.dashboard_url}

  Team:          {sync.team}
  Database:      {sync.database_path}
  Pending sync:  {sync.pending_count} session(s)

Methodology: https://github.com/CNaught-Inc/claude-code-plugins/blob/main/plugins/carbonlog/methodology.md
Questions or feedback? Email [email protected]

Read the full file on GitHub · 75 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 75 lines · 0 tokens per session scan A fbaa487dfbc4

Subscribe to this mod's changes

report is a command published in the GitHub repository CNaught-Inc/claude-code-plugins (5 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 745 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.