Back to Plugins

Flow-Next

Plan-first development workflows with multi-model review gates, context re-anchoring to prevent drift, and receipt-based gating for reliable AI coding

workflowplanningreviewdrift-preventioncommunity
By gmickel
58545Updated 2 weeks agoPythonMIT

Installation

/plugin marketplace add gmickel/gmickel-claude-marketplace && /plugin install flow-next@gmickel-claude-marketplace

Configuration

{
  "enabledPlugins": {
    "flow-next@gmickel-claude-marketplace": true
  }
}

Commands

flowStart a plan-first development workflow
anchorRe-anchor context to prevent drift
gateCreate a review gate checkpoint

How to install

  1. Open Claude Code in your terminal
  2. Run the installation command above
  3. The plugin will be enabled automatically
  4. Use the plugin's features in your Claude Code sessions
<div align="center">

Flow-Next

License: MIT Flow-next Docs

Author Twitter Sponsor Discord

Plan-first AI workflow. Zero external dependencies.

</div>

πŸ“– Read the full docs β†’ β€” the main documentation. All 19 commands with reference, lifecycle workflow with mermaid diagrams, install + setup on every platform, Ralph autonomous mode, Codex / Droid / OpenCode notes, complete flowctl CLI reference, project glossary + strategy + decision records, memory system. Start there if you want depth β€” this root page is the marketing TL;DR.

πŸ‘₯ Adopting in a team? Read the teams + spec-driven-development guide β†’ β€” maps each SDLC stage to a Flow-Next command, names the six handover objects in the agentic lifecycle, and walks through Spec-as-PR, parallel work from one spec, R-ID frozen-at-handover, the symmetric interview pattern, and the Week 1 / Month 1 / Quarter 1 adoption ladder. Cross-links to the AI-x-SDLC-Starter-Kit methodology guide for the underlying theory.

πŸ’¬ Join the Discord β€” discussions, updates, feature requests, bug reports


What Is This?

Flow-Next is an AI agent orchestration plugin. Twenty-three agent-native skills for the full lifecycle: idea β†’ spec β†’ tasks β†’ review β†’ ship β†’ maintain. Bundled task tracking, dependency graphs, re-anchoring, multi-model reviews, decay-aware project memory, GitHub PR creation + resolution, agent-readiness audits. Everything lives in your repo β€” no external services, no global config. Uninstall: delete .flow/.

First-class on Claude Code, OpenAI Codex (CLI + Desktop), and Factory Droid. Also runs on OpenCode via the community port.

πŸ†• v1.0.0 β€” flowctl epic β†’ flowctl spec. The 1.0 release renames the canonical primitive: flowctl epic becomes flowctl spec, .flow/epics/ becomes .flow/specs/, epic-scout becomes spec-scout, /flow-next:epic-review becomes /flow-next:spec-completion-review. All 0.x scripts and CLAUDE.md examples keep working β€” the legacy CLI is preserved as a deprecation alias layer through all of 1.x; JSON read responses dual-emit spec_id and epic_id; on read, .flow/epics/ is auto-fallback when .flow/specs/ is absent. Two migration paths: interactive via /flow-next:setup (recommended) or deterministic via flowctl migrate-rename --yes (transactional backup at .flow/.backup-pre-1.0/, lockfile-guarded, sentinel-anchored). Rollback supported via flowctl migrate-rollback --yes. Suppress the auto-detect banner with FLOW_NO_AUTO_MIGRATE=1. Soft alias-removal target is 2.0.0 (telemetry-driven, not calendar-driven). Full changelog.

🌐 Visual overview at mickel.tech/apps/flow-next β€” diagrams, examples, the full feature tour.


Install

<table> <tr> <td><strong>Claude Code</strong></td> <td><strong>OpenAI Codex</strong></td> <td><strong>Factory Droid</strong></td> </tr> <tr> <td>
/plugin marketplace add \
  https://github.com/gmickel/flow-next
/plugin install flow-next
/flow-next:setup
</td> <td>
git clone https://github.com/gmickel/flow-next.git
cd flow-next
./scripts/install-codex.sh flow-next
# then: /flow-next:setup
</td> <td>
droid plugin marketplace add \
  https://github.com/gmickel/flow-next
# /plugins β†’ install flow-next
</td> </tr> </table>

Why a script for Codex? Codex's plugin protocol currently only registers skills from plugin.json β€” not custom .toml agents or hooks. The /plugins install gives you slash commands, but no subagent isolation (worker model tier, disallowed_tools) and no Ralph hooks. install-codex.sh merges all 21 agents + hooks directly into ~/.codex/config.toml so you get the full multi-agent + Ralph experience. We'll switch to /plugins once Codex's manifest supports agents and hooks fields.

Update Codex: cd flow-next && git pull && ./scripts/install-codex.sh flow-next. The script is idempotent β€” safe to re-run on every update.

πŸ“– Full docs Β· Codex install guide Β· OpenCode port


The Workflow

flowchart LR
    Idea([πŸ’‘ Idea]) --> P[/flow-next:prospect/]
    Idea --> C[/flow-next:capture/]
    P --> C
    P -.->|direct via promote| L[/flow-next:plan/]
    C --> L
    C --> I[/flow-next:interview/]
    I --> L
    L --> W[/flow-next:work/]
    W --> R[/flow-next:impl-review/]
    R -->|SHIP| Done([πŸš€ Ship])
    R -->|NEEDS_WORK| W

    Done -.maintenance.-> A[/flow-next:audit/]
    A -.-> M[(.flow/memory/)]

Idea β†’ spec β†’ tasks β†’ ship. Branch in, branch out β€” pick the entry point that matches your context.


Why It Works

ProblemSolution
Context driftRe-anchoring before every task β€” re-reads specs + git state
Context window limitsFresh context per task β€” worker subagent starts clean
Single-model blind spotsCross-model reviews β€” RepoPrompt, Codex, or Copilot as second opinion
Forgotten requirementsDependency graphs β€” tasks declare blockers, run in order
"It worked on my machine"Evidence recording β€” commits, tests, PRs tracked per task
Infinite retry loopsAuto-block stuck tasks β€” fails after N attempts, moves on
Duplicate implementationsPre-implementation search β€” worker checks for similar code before writing new
Hallucinated specs from "I think we discussed…"Source-tagged capture β€” every acceptance criterion marked [user] / [paraphrase] / [inferred], mandatory read-back loop
Stale project memory polluting future work/flow-next:audit + categorized memory schema β€” agent reviews each entry, flags stale (never deletes)
GitHub PR review threads piling up/flow-next:resolve-pr β€” fetch β†’ triage β†’ dispatch resolver agents β†’ reply β†’ resolve via GraphQL

Commands

CommandWhat It Does
/flow-next:prospectGenerate ranked candidate ideas grounded in the repo, upstream of capture/interview/plan
/flow-next:captureSynthesize conversation context into a spec (source-tagged, mandatory read-back)
/flow-next:interviewDeep spec refinement with lead-with-recommendation + confidence tiers + codebase-first investigation
/flow-next:planResearch codebase, create spec + dependency-ordered tasks
/flow-next:workExecute tasks with re-anchoring + worker subagents + review gates
/flow-next:impl-reviewCross-model implementation review (RepoPrompt, Codex, or Copilot)
/flow-next:plan-reviewCross-model plan review
/flow-next:spec-completion-reviewSpec-completion review gate β€” verify combined implementation matches the spec (renamed from /flow-next:epic-review in 1.0.0; soft-removal target 2.0.0, telemetry-driven)
/flow-next:resolve-prResolve GitHub PR review threads (fetch β†’ triage β†’ fix β†’ reply β†’ resolve via GraphQL)
/flow-next:auditAgent-native review of .flow/memory/ entries against current code (Keep / Update / Consolidate / Replace / Delete)
/flow-next:memory-migrateLift legacy flat memory files into the categorized schema; agent classifies each entry
/flow-next:prime8-pillar agent-readiness assessment with parallel scouts; remediation via consent prompts
/flow-next:ralph-initScaffold autonomous loop (scripts/ralph/)

Ralph (Autonomous Mode)

Run overnight. Fresh context per iteration + multi-model review gates + auto-block stuck tasks.

/flow-next:ralph-init           # One-time setup
scripts/ralph/ralph.sh          # Run from terminal

πŸ“– Ralph deep dive Β· Ralph TUI (bun add -g @gmickel/flow-next-tui)


Ecosystem

ProjectPlatform
flow-next-opencodeOpenCode
FlowFactoryFactory.ai Droid

Also Check Out

GNO β€” Local hybrid search for your notes, docs, and code. Give Claude Code long-term memory over your files via MCP.

bun install -g @gmickel/gno && gno mcp install --target claude-code

<div align="center">

Made by Gordon Mickel Β· @gmickel Β· gordon@mickel.tech

Sponsor

</div>
View source on GitHub