gmickel/flow-next

Repeatable agentic engineering. The workflow layer that turns AI coding agents into a disciplined factory: durable specs, fresh-context workers, adversarial cross-model reviews, receipts. Everything in your repo, zero dependencies. Claude Code · Codex · Cursor · Droid.

What it solves

Flow-Next addresses the "decay" and "drift" that occurs when AI agents implement software over multiple iterations. While agents can generate code quickly, they often forget requirements, overfit to recent context, and produce massive diffs that are difficult for humans to review. It replaces vague chat transcripts and rough tickets with a structured, durable artifact chain that ensures implementation remains faithful to the original intent.

How it works

Flow-Next acts as an orchestration layer (via a Python CLI called flowctl) that integrates with host agents like Claude Code, OpenAI Codex, or Cursor. It enforces a disciplined pipeline of six named handover objects:

  1. Capture: Converts conversations or prototypes into a durable specification file (.flow/specs/<id>.md).
  2. Plan: Decomposes the spec into dependency-ordered tasks, each sized to fit a fresh context window.
  3. Work: Dispatches worker subagents to implement tasks. Each worker re-reads the spec and git state to avoid "token bleed."
  4. Review: Uses an adversarial approach where a different model reviews the plan and implementation. The loop iterates until the reviewer marks the work as "SHIP."
  5. Receipts: Requires evidence (commits, tests, JSON) for every claim of completion, rather than simple narration.
  6. PR Generation: Creates a pull request that explains which acceptance criteria were met and which decisions require human intervention.

Who it’s for

  • Enterprise Engineering Teams: Those needing audit trails, traceability, and approval checkpoints for AI-generated code.
  • Senior Developers: Who want to formalize the judgment they already exercise to catch regressions before they reach a PR.
  • Product/Delivery Managers: Who need readable specs and visible, auditable progress.

Highlights

  • Adversarial Gates: Prevents a model from reviewing its own work by requiring a different model for verification.
  • Re-anchored Work: Eliminates context drift by forcing worker agents to start with a fresh context for every task.
  • Spec-Driven: Shifts the unit of work from the chat transcript to a durable, evolving specification document.
  • Multi-Harness Support: Works across various AI coding tools including Claude Code, OpenAI Codex, Factory Droid, and Cursor.
  • Local-First: All state, specs, and memory live in the .flow/ directory within the repository; no external SaaS required.

Related

  • Project
  • Project
  • Project
  • Project
  • Project