uninstall

uninstall is a command for coding agents from zereraz/tokensight. It costs 9 tokens per session (295 once invoked), scanned B, original, MIT.

An uninstall command that removes the Tokensight status display from Claude's settings file.

In plain words
What is it for?
Use it when uninstalling Tokensight to remove its status-line entry and enabled-plugin reference.
Why use it?
It cleans up the configuration after Tokensight is removed and leaves unrelated settings unchanged.

Command

Part of the tokensight plugin — 3 commands shipped together

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/zereraz/tokensight/uninstall
Clone the repo
git clone --depth 1 https://github.com/zereraz/tokensight

Or install tokensight, the plugin that ships this one along with the rest of its 3 commands.

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/zereraz/tokensight/uninstall.svg)](https://agentmods.dev/commands/zereraz/tokensight/uninstall)
Your own site
<a href="https://agentmods.dev/commands/zereraz/tokensight/uninstall"><img src="https://agentmods.dev/badge/commands/zereraz/tokensight/uninstall.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 295 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00009 $0.00295
Opus 5 $0.00005 $0.00148
Sonnet 5 $0.00002 $0.00059
Haiku 4.5 $0.00001 $0.00030

Measured 5d ago against content hash 744a8f0a235b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

Remove tokensight from the statusLine configuration in ~/.claude/settings.json.
commands/uninstall.md · 37 lines

What it actually says

Remove tokensight from the statusLine configuration in ~/.claude/settings.json.

Steps:

  1. Read ~/.claude/settings.json to check current statusLine configuration

  2. If statusLine.command contains "tokensight":

    • Extract the claude-hud part only (keep everything before ; TOKENSIGHT=)
    • Replace the entire statusLine.command with just the claude-hud part
    • If no claude-hud exists, remove the entire statusLine section
  3. If statusLine exists but doesn't contain "tokensight":

    • Nothing to do, statusLine is already clean
  4. Update ~/.claude/settings.json with Edit tool, preserving all other fields

Example transformations:

Combined (before):

"command": "bash -c 'node \"...claude-hud...\"; TOKENSIGHT=\"\\$(ls -td ...tokensight... 2>/dev/null | head -1)\"; [ -n \"$TOKENSIGHT\" ] && node \"$TOKENSIGHT\" || true'"

Claude-hud only (after):

"command": "bash -c 'node \"...claude-hud...\"'"
  1. Remove tokensight from enabledPlugins if present

This ensures clean uninstallation without leaving broken statusLine commands.

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. 5d ago First seen · 37 lines · 9 tokens per session scan B 744a8f0a235b

Subscribe to this mod's changes

uninstall is a command published in the GitHub repository zereraz/tokensight (11 stars, last pushed 8mo ago), licensed MIT. It adds 9 tokens to every session and 295 once invoked, about $0.0000 per session on Opus 5. 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-30.