uninstall

uninstall is a command for Claude Code from gmickel/flow-next. It costs 9 tokens per session (912 once invoked), scanned C, original, MIT.

An uninstall command that removes flow-next from a project after asking whether to keep its task and specification files. It can print manual cleanup commands for older installations.

In plain words
What is it for?
Use it to perform a partial removal that keeps project data or a full removal of the .flow directory.
Why use it?
It helps remove the add-on without accidentally deleting project tasks or specifications.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the flow-next plugin — 32 skills, 29 commands, 25 agents 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/gmickel/flow-next/uninstall
Clone the repo
git clone --depth 1 https://github.com/gmickel/flow-next

Made for: Claude Code.

Or install flow-next, the plugin that ships this one along with the rest of its 32 skills, 29 commands, 25 agents.

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/gmickel/flow-next/uninstall.svg)](https://agentmods.dev/commands/gmickel/flow-next/uninstall)
Your own site
<a href="https://agentmods.dev/commands/gmickel/flow-next/uninstall"><img src="https://agentmods.dev/badge/commands/gmickel/flow-next/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 912 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.1 $0.00009 $0.00912
Opus 5 $0.00005 $0.00456
Sonnet 5 $0.00002 $0.00182
Haiku 4.5 $0.00001 $0.00091

Measured 2d ago against content hash febef9f36864, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade C, and why

uninstall scanned grade C 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 2d 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.

Recursive force deletehighDestructive command

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

rm -rf .flow/bin .flow/templates .flow/usage.md
plugins/flow-next/commands/uninstall.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flow-Next Uninstall

Use AskUserQuestion to confirm:

Question 1: "Remove flow-next from this project?"

  • "Yes, uninstall"
  • "Cancel"

If cancel → stop.

Question 2: "Keep your .flow/ tasks and specs?"

  • "Yes, keep tasks" → partial uninstall
  • "No, remove everything" → full uninstall

Generate removal instructions

Based on answers, generate the appropriate commands and print them for the user to run manually.

If keeping tasks:

Setup copies nothing into the repo, so uninstall is marker removal: strip the <!-- BEGIN FLOW-NEXT -->...<!-- END FLOW-NEXT --> block from CLAUDE.md / AGENTS.md (the "Clean up docs" section below does that) and remove the setup_version / setup_mode stamps from .flow/meta.json.

Legacy cleanup — only when those paths actually exist (repos set up before copy-less installs). Print this for the user to run manually; omit it entirely when none exist:

To complete uninstall, run these commands manually:

rm -rf .flow/bin .flow/templates .flow/usage.md

If removing everything:

To complete uninstall, run these commands manually:

rm -rf .flow

Always check for Ralph and add if exists:

# Check if Ralph is installed
if [[ -d scripts/ralph ]]; then
  echo "rm -rf scripts/ralph"
fi

Remove Ralph guard hook entries (AI can do this)

Plugin installs no longer ship hooks. Any Ralph guard entries live in project settings, registered by /flow-next:ralph-init. Strip them the same way setup does on "No":

Fingerprint: nested hook command contains scripts/ralph/hooks/ralph-guard.

For each path that exists, Read then Edit (never clobber unrelated hooks; if the file becomes empty hooks-only, delete the file or remove the empty hooks key):

Host Path
Claude Code / Grok .claude/settings.json (hooks key)
Factory Droid .factory/hooks.json (primary); also strip under .factory/settings.json hooks if present
Codex .codex/hooks.json

Do not introduce a flowctl hook-remove command. Agent-driven Read+Edit only.

Read the full file on GitHub · 91 lines

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. 2d ago First seen · 91 lines · 9 tokens per session scan C febef9f36864

Subscribe to this mod's changes

uninstall is a command published in the GitHub repository gmickel/flow-next (691 stars, last pushed today), licensed MIT. It adds 9 tokens to every session and 912 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.