bash-smart-approve:uninstall

bash-smart-approve:uninstall is a skill for Claude Code, Codex from pr3m/claude-code-bash-smart-approve. It costs 50 tokens per session (444 once invoked), scanned D, original, MIT.

An uninstall workflow for bash-smart-approve, a Claude Code feature that asks for approval before selected shell commands run. It removes the related pre-tool hook and optionally removes its configuration and log.

In plain words
What is it for?
It is for disconnecting bash-smart-approve from Claude Code settings and optionally deleting its config files and audit log. It does not remove the plugin directory itself.
Why use it?
It makes removal deliberate by asking for confirmation, showing the settings change, and letting the user keep configuration or audit records they may need later.

Skill for Claude CodeCodex

Part of the bash-smart-approve plugin — 9 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/pr3m/claude-code-bash-smart-approve/uninstall
Any agent
npx skills add pr3m/claude-code-bash-smart-approve --skill uninstall
Clone the repo
git clone --depth 1 https://github.com/pr3m/claude-code-bash-smart-approve

Made for: Claude Code, Codex.

Or install bash-smart-approve, the plugin that ships this one along with the rest of its 9 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 bash-smart-approve:uninstall

README.md
[![agentmods](https://agentmods.dev/badge/skills/pr3m/claude-code-bash-smart-approve/uninstall.svg)](https://agentmods.dev/skills/pr3m/claude-code-bash-smart-approve/uninstall)
Your own site
<a href="https://agentmods.dev/skills/pr3m/claude-code-bash-smart-approve/uninstall"><img src="https://agentmods.dev/badge/skills/pr3m/claude-code-bash-smart-approve/uninstall.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 444 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00050 $0.00444
Opus 5 $0.00025 $0.00222
Sonnet 5 $0.00010 $0.00089
Haiku 4.5 $0.00005 $0.00044

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

Security

Grade D, and why

bash-smart-approve:uninstall scanned grade D with 2 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 4d 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.

> "This will remove the PreToolUse hook from `~/.claude/settings.json` and (optionally) delete your config + log. Proceed?"

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- Do not delete the plugin directory itself. That's managed by `/plugin uninstall` (marketplace) or `rm -rf <clone-path>` (manual).
plugins/bash-smart-approve/skills/uninstall/SKILL.md · 47 lines

What it actually says

Uninstall

Reverse what /bash-smart-approve:install did. Asks for confirmation at each step — nothing is silently deleted.

Step 1 — Confirm intent

"This will remove the PreToolUse hook from ~/.claude/settings.json and (optionally) delete your config + log. Proceed?"

If no → stop.

Step 2 — Unwire the hook

Read ~/.claude/settings.json. Find entries under hooks.PreToolUse[*].hooks[*] whose command references bash-smart-approve / approve.js and remove them. If a matcher block becomes empty, remove the whole block.

Show the diff. Apply on approval.

Also check project-level settings (.claude/settings.json, .claude/settings.local.json) and offer to unwire there too.

Step 3 — Offer to delete config

Ask: "Delete the bash-smart-approve config file(s) too? (you can keep them if you plan to reinstall)"

Candidates:

  • $CLAUDE_PLUGIN_DATA/config.json
  • ~/.claude/bash-smart-approve.json
  • <cwd>/.claude/bash-smart-approve.json

Step 4 — Offer to delete log

Ask: "Delete the audit log at ~/.claude/bash-smart-approve.log?" Default: keep.

Step 5 — Do NOT

  • Do not delete the plugin directory itself. That's managed by /plugin uninstall (marketplace) or rm -rf <clone-path> (manual).
  • Do not touch permissions.allow rules — those were already the user's, not our creation.

Step 6 — Summary

Confirm what was removed and remind user:

  • Reinstall anytime via /bash-smart-approve:install
  • Restart Claude Code (or /hooks) for the hook removal to take effect
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. 4d ago First seen · 47 lines · 50 tokens per session scan D eef731e66dae

Subscribe to this mod's changes

bash-smart-approve:uninstall is a skill published in the GitHub repository pr3m/claude-code-bash-smart-approve (1 stars, last pushed 4mo ago), licensed MIT. It adds 50 tokens to every session and 444 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories