release-flow

release-flow is a command for Claude Code from coo1white/cool-workflow. It costs 20 tokens per session (596 once invoked), scanned A, original, BSD-2-Clause.

A release process that checks a software change and asks a separately configured agent to review it. A release is accepted only when that review starts with “APPROVED”.

In plain words
What is it for?
Use it before releasing or tagging code, in check mode or through a configured agent such as Claude, Codex, Gemini, or OpenCode.
Why use it?
It adds an independent review and fails closed when the required verdict is missing or negative.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md; mentions Codex; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node plugins/cool-workflow/scripts/release-flow.mjs --check.

Part of the cool-workflow plugin — 5 skills, 2 commands, 1 agent, 1 MCP server shipped together

Good fit Use it before releasing or tagging code, in check mode or through a configured agent such as Claude, Codex, Gemini, or OpenCode.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/coo1white/cool-workflow
agentmods
npx agentmods add commands/coo1white/cool-workflow/release-flow

Made for: Claude Code.

Or install cool-workflow, the plugin that ships this one along with the rest of its 5 skills, 2 commands, 1 agent, 1 MCP server.

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 release-flow

README.md
[![agentmods](https://agentmods.dev/badge/commands/coo1white/cool-workflow/release-flow/github.svg)](https://agentmods.dev/commands/coo1white/cool-workflow/release-flow)
Your own site
<a href="https://agentmods.dev/commands/coo1white/cool-workflow/release-flow"><img src="https://agentmods.dev/badge/commands/coo1white/cool-workflow/release-flow/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 release-flow

Your own site · 80×15
<a href="https://agentmods.dev/commands/coo1white/cool-workflow/release-flow"><img src="https://agentmods.dev/badge/commands/coo1white/cool-workflow/release-flow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 596 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00020 $0.00596
Opus 5.5 $0.00008 $0.00238
Sonnet 5.5 $0.00004 $0.00119
Haiku 4.5 $0.00002 $0.00060

Measured yesterday against content hash 3cad70b1293c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

release-flow 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 yesterday.

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.

plugins/cool-workflow/commands/release-flow.md · 58 lines

What it actually says

Run the cool-workflow portable release flow. This is the multi-platform sibling of /release: the orchestration lives in one zero-dependency script and the independent review is DELEGATED to whatever agent you configure, so the exact same flow runs under Claude, Codex, Gemini, OpenCode, or a plain shell.

Steps:

  1. Configure the reviewer agent for THIS host (Claude):

    export CW_AGENT_COMMAND="claude -p --permission-mode acceptEdits {{input}}"
    export CW_AGENT_MODEL="claude-opus-4-8"   # optional; the agent picks otherwise
    # acceptEdits lets the headless reviewer WRITE its verdict file; without it the
    # review runs but the verdict can't be persisted and the flow fails closed at
    # [3/3]. The reviewer CLI must also be logged in (claude auth login).
    
  2. Run the flow in check mode (gate + independent review, no mutation):

    node plugins/cool-workflow/scripts/release-flow.mjs --check
    

    It runs scripts/release-gate.mjs, then spawns the configured agent (argv-style, shell:false — CW holds no key) to review the candidate and write .cw-release/review-<HEAD>.verdict. The flow fails closed unless the verdict begins with APPROVED.

Report the JSON summary from step 2 (verdict, capability) and stop at the first failure. Do not write the verdict file yourself — the delegated reviewer is the only writer, and release-gate.yml re-checks it in CI.

Stop here. Do NOT run release-flow.mjs --cut yourself, on this host or any other — cutting a tag needs CW_RELEASE_VERDICT_PRIVKEY, the ed25519 signing key that stays with the release operator and must never be read or held by an agent (see AGENTS.md's "Shipping a release" section). Once review is green, tell the user the candidate is ready and that the operator cuts it themselves:

npm run release -- <x.y.z>

(plugins/cool-workflow/scripts/release-oneclick.mjs, the normal path) or, for manual control on a non-npm host, the lower-level command run by the operator in their own shell:

node plugins/cool-workflow/scripts/release-flow.mjs --cut --version <x.y.z> --push

See docs/release-tooling.7.md for the per-platform CW_AGENT_COMMAND presets (Codex / Gemini / OpenCode / DeepSeek).

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. yesterday Changed 3cad70b1293c
  2. 1mo ago First seen · 58 lines · 20 tokens per session scan A e1c8228d0839

Subscribe to this mod's changes

release-flow is a command published in the GitHub repository coo1white/cool-workflow (2 stars, last pushed yesterday), licensed BSD-2-Clause. It adds 20 tokens to every session and 596 once invoked, about $0.0001 per session on Opus 5.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.