Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add CNaught-Inc/claude-code-plugins/plugin install carbonlogWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/cnaught-inc/claude-code-plugins/report)<a href="https://agentmods.dev/commands/cnaught-inc/claude-code-plugins/report"><img src="https://agentmods.dev/badge/commands/cnaught-inc/claude-code-plugins/report/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/cnaught-inc/claude-code-plugins/report"><img src="https://agentmods.dev/badge/commands/cnaught-inc/claude-code-plugins/report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00745 |
| Opus 5.5 | $0.00000 | $0.00298 |
| Sonnet 5.5 | $0.00000 | $0.00149 |
| Haiku 4.5 | $0.00000 | $0.00075 |
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 2mo 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.
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]
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.
- 2mo ago First seen · 75 lines · 0 tokens per session scan A fbaa487dfbc4
report is a command published in the GitHub repository CNaught-Inc/claude-code-plugins (6 stars, last pushed 7mo 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.
report compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| reportCNaught-Inc/claude-code-plugins | Command | 6 | 7mo ago | Apache-2.0 | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | today | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | today | MIT | A | 14 | Claude Code |