planflow

planflow is a command for coding agents from davejj1530/planflow-greenlight. It costs 17 tokens per session (1,020 once invoked), scanned A, original, MIT.

A planning command that turns a coding task into an editable flowchart in a web browser. You review and approve the flow before any execution begins.

In plain words
What is it for?
Use it to investigate a task, draft a structured implementation plan, review the plan visually, and approve it before work starts.
Why use it?
It gives you a chance to inspect, reorder, rewrite, add, or remove planned steps before the task changes files or runs state-changing commands.

Command

Part of the planflow plugin — 1 skill, 1 command, 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 commands/davejj1530/planflow-greenlight/planflow
Clone the repo
git clone --depth 1 https://github.com/davejj1530/planflow-greenlight

Or install planflow, the plugin that ships this one along with the rest of its 1 skill, 1 command, 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 planflow

README.md
[![agentmods](https://agentmods.dev/badge/commands/davejj1530/planflow-greenlight/planflow.svg)](https://agentmods.dev/commands/davejj1530/planflow-greenlight/planflow)
Your own site
<a href="https://agentmods.dev/commands/davejj1530/planflow-greenlight/planflow"><img src="https://agentmods.dev/badge/commands/davejj1530/planflow-greenlight/planflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,020 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00017 $0.01020
Opus 5 $0.00009 $0.00510
Sonnet 5 $0.00003 $0.00204
Haiku 4.5 $0.00002 $0.00102

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

Security

Grade A, and why

planflow scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/planflow.md · 63 lines

How it starts

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

You are running the PlanFlow workflow. The task is:

$ARGUMENTS

Follow this workflow exactly. Do not skip the approval step and do not use native plan mode or the ExitPlanMode tool.

1. Investigate

Read whatever code, configs, or docs you need to plan this task well. Do not modify any file and do not run any state-changing command yet.

2. Draft the plan

Break the task into 3 to 9 concrete steps. Each step needs:

  • title: a short imperative phrase (under 60 characters), e.g. "Add rate-limit middleware".
  • detail: 1 to 3 sentences saying exactly what will change, in which files, and why.
  • id: a stable id (s1, s2, ...) so other steps can reference it.

Three optional fields express structure. Use them only when the plan genuinely has it; a simple sequence needs none of them:

  • after: array of step ids that must complete first. Use for real branches, joins, or order-independent steps. A step without after follows the previous step.
  • condition: short label for when a step runs, e.g. "cache hit" or "tests fail". It renders on the step's incoming edge. Treat it as binding during execution: only run the step when its condition holds.
  • feature: workstream name when one plan spans distinct features. Steps sharing a feature are enclosed together on the canvas.

Worked example, a conditional fork inside one feature:

{ "id": "s2", "title": "Add cache lookup", "feature": "Caching", "after": ["s1"] }
{ "id": "s3", "title": "Serve cached response", "feature": "Caching", "after": ["s2"], "condition": "cache hit" }
{ "id": "s4", "title": "Fetch upstream and store", "feature": "Caching", "after": ["s2"], "condition": "cache miss" }

Steps must be ordered so that each one can be executed after its dependencies. Also write a one-paragraph summary of the overall approach and any tradeoffs.

3. Request approval in the browser

Call the request_plan_approval tool from the planflow MCP server with:

  • title: a short name for the plan (e.g. "Rate limiting for the API")
  • summary: the paragraph from step 2
  • steps: the array of steps

Read the full file on GitHub · 63 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. 4d ago First seen · 63 lines · 17 tokens per session scan A 16f9c455c7f0

Subscribe to this mod's changes

planflow is a command published in the GitHub repository davejj1530/planflow-greenlight (1 stars, last pushed 1mo ago), licensed MIT. It adds 17 tokens to every session and 1,020 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.