remove

remove is a skill for Claude Code, Codex from ventusff/claude-model-guard. It costs 40 tokens per session (491 once invoked), scanned B, original, MIT.

An uninstall command for the model-guard status line, a small display shown in the Claude Code interface. It can restore the status line that was used before model-guard and optionally remove its files.

In plain words
What is it for?
Use it when removing model-guard from Claude Code, either together with its script and configuration or while keeping those files.
Why use it?
It removes the status line without losing a previously configured one and creates a backup before changing settings.

Skill for Claude CodeCodex

Part of the model-guard plugin — 2 skills, 1 hook 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 skills/ventusff/claude-model-guard/remove
Any agent
npx skills add ventusff/claude-model-guard --skill remove
Clone the repo
git clone --depth 1 https://github.com/ventusff/claude-model-guard

Made for: Claude Code, Codex.

Or install model-guard, the plugin that ships this one along with the rest of its 2 skills, 1 hook.

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 remove

README.md
[![agentmods](https://agentmods.dev/badge/skills/ventusff/claude-model-guard/remove.svg)](https://agentmods.dev/skills/ventusff/claude-model-guard/remove)
Your own site
<a href="https://agentmods.dev/skills/ventusff/claude-model-guard/remove"><img src="https://agentmods.dev/badge/skills/ventusff/claude-model-guard/remove.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 491 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.00040 $0.00491
Opus 5 $0.00020 $0.00246
Sonnet 5 $0.00008 $0.00098
Haiku 4.5 $0.00004 $0.00049

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

Security

Grade B, and why

remove 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 3d 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.

description: Cleanly uninstall the model-guard statusline — unregisters statusLine from ~/.claude/settings.json (restoring any previously saved statusline), and optionally deletes the installed script and config.
skills/remove/SKILL.md · 46 lines

What it actually says

model-guard: uninstall

You are removing the model-guard statusline for this user. Keep the final report short.

1. Inspect (one Bash call)

  • Read ~/.claude/settings.json.statusLine.command.
  • Read ~/.claude/model-guard.conf if present → note PREV_STATUSLINE_B64.
  • If the current statusLine is NOT model-guard (command doesn't contain model-guard), say so — only offer file cleanup (step 3b), don't touch settings.

2. Ask (ONE AskUserQuestion call)

Header "Cleanup": "Unregister + delete files (Recommended)" / "Unregister only (keep script & config)".

3. Execute

Backup first: cp ~/.claude/settings.json ~/.claude/settings.json.bak-model-guard-$(date +%Y%m%d-%H%M%S)

a) Unregister — restore the pre-model-guard statusline if one was saved:

  • If the conf has PREV_STATUSLINE_B64:
    jq --argjson sl "$(sed -n 's/^PREV_STATUSLINE_B64=//p' ~/.claude/model-guard.conf | base64 -d)" \
      '.statusLine=$sl' ~/.claude/settings.json > ~/.claude/settings.json.tmp \
      && mv ~/.claude/settings.json.tmp ~/.claude/settings.json
    
  • Otherwise: jq 'del(.statusLine)' ... (same tmp+mv pattern).
  • Validate the result parses: jq . ~/.claude/settings.json >/dev/null.

b) If deleting files: rm -f ~/.claude/model-guard.sh ~/.claude/model-guard.conf

4. Report (short)

  • StatusLine unregistered (and previous statusline restored, if there was one); a timestamped settings backup was kept.
  • The plugin itself can be uninstalled with /plugin → Manage plugins, or claude plugin uninstall model-guard@claude-model-guard.
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. 3d ago First seen · 46 lines · 40 tokens per session scan B a1243f2c5283

Subscribe to this mod's changes

remove is a skill published in the GitHub repository ventusff/claude-model-guard (1 stars, last pushed 29d ago), licensed MIT. It adds 40 tokens to every session and 491 once invoked, about $0.0002 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-31.