uninstall

uninstall is a command for Claude Code from gmickel/flow-next. It costs 9 tokens per session (795 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: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; reads ~/.codex paths.

Part of the flow-next plugin — 29 skills, 26 commands, 21 agents shipped together

Good fit Use it to perform a partial removal that keeps project data or a full removal of the .flow directory.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/gmickel/flow-next/uninstall
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.

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 29 skills, 26 commands, 21 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/github.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/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/gmickel/flow-next/uninstall"><img src="https://agentmods.dev/badge/commands/gmickel/flow-next/uninstall.svg" alt="Reviewed on agentmods" width="80" 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 795 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.00009 $0.00795
Opus 5.5 $0.00004 $0.00318
Sonnet 5.5 $0.00002 $0.00159
Haiku 4.5 $0.00001 $0.00080

Measured 23d ago against content hash 5515bd7d85d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 23d 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 · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 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 .flow/, so uninstall there 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 Codex agent configs and add if any exist. On Codex, setup copies flow-next's agent configs into .codex/agents/; each starts with # Auto-generated by sync-codex.sh. Remove only those, so user-authored agents stay:

if grep -lq '^# Auto-generated by sync-codex.sh' .codex/agents/*.toml 2>/dev/null; then
  echo "grep -l '^# Auto-generated by sync-codex.sh' .codex/agents/*.toml | xargs rm -f"
fi

Clean up docs (AI can do this)

For CLAUDE.md and AGENTS.md: if file exists, remove everything between <!-- BEGIN FLOW-NEXT --> and <!-- END FLOW-NEXT --> (inclusive). This is safe for the AI to execute.

Also remove the optional model-routing scaffold block (written by /flow-next:setup) from the same files. It is a second, independent marker pair: <!-- flow-next:model-routing:start --> … <!-- flow-next:model-routing:end -->. Apply the deterministic damaged-marker algorithm — line-based, never parsing the fenced content (the block is an example whose routing lines are all HTML comments):

Read the full file on GitHub · 74 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. 23d ago Changed · -25 lines 5515bd7d85d3
  2. 29d ago Changed · +8 lines d6778eaca447
  3. 1mo 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 (711 stars, last pushed yesterday), licensed MIT. It adds 9 tokens to every session and 795 once invoked, about $0.0000 per session on Opus 5.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.