uninstall

uninstall is a command for Claude Code from CNaught-Inc/claude-code-plugins. It costs 0 tokens per session (458 once invoked), scanned B, original, Apache-2.0.

An uninstall command for the Carbonlog plugin, which tracks coding sessions and can show their status. It removes the plugin's stored tracking data and settings.

In plain words
What is it for?
Use it when you want to remove Carbonlog completely, restore any previous status-line setting, and delete its enabled-plugin entries.
Why use it?
It avoids leaving behind the plugin's database, session records, or configuration after removal.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the carbonlog plugin — 2 skills, 9 commands, 2 hooks shipped together

Good fit Use it when you want to remove Carbonlog completely, restore any previous status-line setting, and delete its enabled-plugin entries.

Compare 6 commands from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add CNaught-Inc/claude-code-plugins
Claude Code
/plugin install carbonlog

Made for: Claude Code.

Or install carbonlog, the plugin that ships this one along with the rest of its 2 skills, 9 commands, 2 hooks.

Wrote 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.

agentmods badge for uninstall

README.md
[![agentmods](https://agentmods.dev/badge/commands/cnaught-inc/claude-code-plugins/uninstall/github.svg)](https://agentmods.dev/commands/cnaught-inc/claude-code-plugins/uninstall)
Your own site
<a href="https://agentmods.dev/commands/cnaught-inc/claude-code-plugins/uninstall"><img src="https://agentmods.dev/badge/commands/cnaught-inc/claude-code-plugins/uninstall/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.

agentmods 80×15 button for uninstall

Your own site · 80×15
<a href="https://agentmods.dev/commands/cnaught-inc/claude-code-plugins/uninstall"><img src="https://agentmods.dev/badge/commands/cnaught-inc/claude-code-plugins/uninstall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 458 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00458
Opus 5.5 $0.00000 $0.00183
Sonnet 5.5 $0.00000 $0.00092
Haiku 4.5 $0.00000 $0.00046

Measured 2mo ago against content hash 2f715748728b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

uninstall scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

1. In `<projectPath>/.claude/settings.local.json`:
plugins/carbonlog/commands/uninstall.md · 44 lines

What it actually says

/carbonlog:uninstall

Uninstall the CNaught Carbonlog plugin.

Instructions

Step 1: Confirm with the user

Use the AskUserQuestion tool to confirm: "This will remove all carbon tracking data and the plugin configuration. Continue?"

  • If no: Stop here.
  • If yes: Continue.

Step 2: Run the uninstall script

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

This removes all sessions and deletes the database.

Step 3: Clean up settings

Read ~/.claude/plugins/installed_plugins.json to find all carbonlog@cnaught-plugins entries and their projectPath values.

For each entry that has a projectPath:

  1. In <projectPath>/.claude/settings.local.json:
    • If there is a _carbonlogOriginalStatusLine key, restore it as the statusLine value and remove the _carbonlogOriginalStatusLine key.
    • Otherwise, if the statusLine config's command contains carbonlog-statusline or statusline-wrapper, remove the statusLine key.
    • Remove "carbonlog@cnaught-plugins" from the enabledPlugins object. If enabledPlugins is empty after removal, remove the key entirely.

Then clean up global settings:

  1. In ~/.claude/settings.json: apply the same statusLine cleanup logic (restore original or remove carbonlog statusline). Remove "carbonlog@cnaught-plugins" from enabledPlugins.
  2. In ~/.claude/settings.local.json: remove "carbonlog@cnaught-plugins" from enabledPlugins if present.
  3. Remove all carbonlog@cnaught-plugins entries from ~/.claude/plugins/installed_plugins.json.

Step 4: Confirm completion

Let the user know the uninstall is complete and that they can re-install at any time by installing the plugin and running /carbonlog:setup.

Notes

  • Always use the AskUserQuestion tool when asking the user a question with multiple choices.
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. 2mo ago First seen · 44 lines · 0 tokens per session scan B 2f715748728b

Subscribe to this mod's changes

uninstall 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 458 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

uninstall compared with commands from other repositories

uninstall next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uninstallCNaught-Inc/claude-code-pluginsCommand67mo agoApache-2.0B0Claude Code
checklistgithub/spec-kitCommand148ktodayMITA13Claude Code
clarifygithub/spec-kitCommand148ktodayMITA27Claude Code
specifygithub/spec-kitCommand148ktodayMITA13Claude Code
analyzegithub/spec-kitCommand148ktodayMITA26Claude Code
convergegithub/spec-kitCommand148ktodayMITA35Claude Code
implementgithub/spec-kitCommand148ktodayMITA14Claude Code