speckit.spex.flow-state

speckit.spex.flow-state is a command for Claude Code from rhuss/cc-spex. It costs 13 tokens per session (422 once invoked), scanned A, original, Apache-2.0.

A command that creates or updates a flow-state file for a step-by-step software specification workflow. The file records which phase is active and whether milestones such as clarification or implementation are complete.

In plain words
What is it for?
Use it in projects that use the Spex software-development workflow to create flow state, mark a phase as running or finished, or record clarification and implementation progress.
Why use it?
It makes progress through the specification process visible and persistent. This helps keep the current workflow phase clear across commands and sessions.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it in projects that use the Spex software-development workflow to create flow state, mark a phase as running or finished, or record clarification and implementation progress.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rhuss/cc-spex/speckit.spex.flow-state
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/rhuss/cc-spex

Made for: Claude Code.

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 speckit.spex.flow-state

README.md
[![agentmods](https://agentmods.dev/badge/commands/rhuss/cc-spex/speckit.spex.flow-state.svg)](https://agentmods.dev/commands/rhuss/cc-spex/speckit.spex.flow-state)
Your own site
<a href="https://agentmods.dev/commands/rhuss/cc-spex/speckit.spex.flow-state"><img src="https://agentmods.dev/badge/commands/rhuss/cc-spex/speckit.spex.flow-state.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 422 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.00013 $0.00422
Opus 5 $0.00006 $0.00211
Sonnet 5 $0.00003 $0.00084
Haiku 4.5 $0.00001 $0.00042

Measured 8d ago against content hash 429cb251c355, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

speckit.spex.flow-state 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 8d 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.

specs/038-neutral-command-vocab/pre-rewrite-snapshot/spex/commands/speckit.spex.flow-state.md · 45 lines

What it actually says

Flow State Management

This command manages the .specify/.spex-state file with "mode": "flow" to enable the status line during step-by-step SDD workflow (as opposed to the autonomous ship pipeline).

Execution

Run the spex-flow-state.sh script, passing through all arguments:

FLOW_STATE=".specify/extensions/spex/scripts/spex-flow-state.sh"
[ -x "$FLOW_STATE" ] || { echo "ERROR: spex-flow-state.sh not found"; exit 1; }
"$FLOW_STATE" "$@"

If invoked with no arguments (from the after_specify hook), pass create:

"$FLOW_STATE" create

If invoked with --spec-dir context available (e.g., the spec directory is known), pass it:

"$FLOW_STATE" create --spec-dir "specs/034-unified-setup-command"

Available Commands

Command Hook What it does
create [--spec-dir <dir>] after_specify Create or update flow state (preserves gate fields if already exists)
running <phase> before_* Set active phase shown as in status line
running done after_* Clear active phase indicator
clarified after_clarify Mark clarification complete
implemented after_implement Mark implementation complete
gate <name> spex-gates hooks Mark quality gate passed (review-spec, review-plan, review-code)
cleanup (manual) Remove state file

All commands are silent (no output) unless an error occurs. Ship mode state files are never overwritten.

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. 8d ago First seen · 45 lines · 13 tokens per session scan A 429cb251c355

Subscribe to this mod's changes

speckit.spex.flow-state is a command published in the GitHub repository rhuss/cc-spex (115 stars, last pushed 20d ago), licensed Apache-2.0. It adds 13 tokens to every session and 422 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-30.