Skip to main content

AI Dev Flow

One command drives the full pipeline: requirements → analysis → design → code → review → delivery. Interruptible and resumable, with a human in the loop at every decision point.

Status: Active development (v3.10.0) · 中文文档


What this is

An orchestration layer for agentic coding, not a chat wrapper. It turns requirements → design → coding → verification → delivery into a stateful, resumable, auditable machine: decision points force human sign-off, all context is externalized to files, every task ends in a git commit, and failures preserve the working tree for inspection.

Design goal Trade-off
Process stays controlled 5 mandatory checkpoints; AI drafts, humans decide. Not unattended automation
Context stays trustworthy Requirements, design and tasks.yaml all live on disk; tasks never share conversation memory
Interruptions are recoverable Stage and task state persist; rerunning the same command resumes from the break point
Changes stay traceable One git commit per task; failed verification keeps the sandbox for debugging

Who it is for: developers and small teams with existing Java / Vue / Python codebases who want AI inside a real delivery process — and who need to answer "who made this change, and under what constraints". Not for: IDE autocomplete, throwaway scripts, or teams that refuse any manual confirmation step.


Pipeline overview

ai-dev-flow --project /path/to/your/project

Phase 1 ─── requirement refinement (structured requirement doc)
  ⚠ Checkpoint A ─ confirm requirements
Phase 2 ─── analysis (features, data flow, open questions)
  ⚠ Checkpoint B ─ close open questions
Phase 3 ─── engineering design (architecture, interfaces, data model)
  ⚠ Checkpoint C ─ confirm design
Phase 3.5 ─ task decomposition (atomic tasks with context_notes)
  ⚠ Checkpoint C2 ─ confirm decomposition
█████████ task graph execution (each task = fresh session + git commit) █████████
Phase 5 ─── build + test
Phase 6 ─── code + security review
  ⚠ Checkpoint D ─ security sign-off (high-risk only)
Phase 7 ─── delivery (change list, build verification, review verdict)

Quick start

Prerequisites

Dependency Purpose
Python 3.9+ orchestration engine
goose CLI >= 1.33 AI execution engine
LLM API key DeepSeek or any goose-compatible provider

Install

# install from PyPI
pip install ai-dev-flow

# or run from a source checkout
git clone https://github.com/293498733/AI_A_PLANT.git
cd AI_A_PLANT && pip install -r requirements.txt

# supply the API key via environment variable
export CUSTOM_DEEPSEEK_API_KEY=your_key      # Windows: set CUSTOM_DEEPSEEK_API_KEY=your_key

Usage

ai-dev-flow                                          # interactive start
ai-dev-flow --project /path/to/project               # target a project directory
ai-dev-flow --project . --from-stage phase3          # start from a specific stage
ai-dev-flow --project . --dry-run                    # preview stages without executing

Core mechanisms

Resume after interruption

Whatever stops the run — Ctrl+C, a reboot, a crashed engine — rerun the same command and it continues from the break point. Global progress lives in .ai-dev/.pipeline_stage inside the target project; per-task state lives in .ai-dev/task_state.json.

Task-driven execution with externalized context

Large projects are not written in a single AI session. Phase 3.5 decomposes the design into atomic tasks in tasks.yaml. Each task:

  • runs in a fresh engine session (20–60 turns) and never relies on chat memory
  • gets all its context from files (input_files + reference_docs + context_notes)
  • ends with an automatic git commit, so the change is traceable
  • is individually resumable — a crash restarts the failed task, not the phase

Error handling

Every AI stage offers 4 options on failure, and task-graph execution offers its own 4: retry, fix/skip, write a note and exit, skip/abort.


Project structure

ai-dev-flow/
├── pipeline.py              source-tree launcher (same as the `ai-dev-flow` command)
├── ai_dev_flow/             orchestration engine package
│   ├── cli.py               CLI entry point
│   └── data/                stage definitions, recipes, profile templates (installed with the package)
├── tests/                   212 tests
├── ARCHITECTURE.md          architecture design
└── CHANGELOG.md             release history

Configuration

Variable Purpose
CUSTOM_DEEPSEEK_API_KEY LLM API key used by the engine

License

MIT — see LICENSE.

Metadata

Release files for ai-dev-flow 3.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-dev-flow 3.10.0
File Size Uploaded Provenance Actions
ai_dev_flow-3.10.0.tar.gz 83.5 kB Without provenance Details for ai_dev_flow-3.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-dev-flow 3.10.0
File Interpreter ABI Platform Actions
ai_dev_flow-3.10.0-py3-none-any.whl Python 3 none any Details for ai_dev_flow-3.10.0-py3-none-any.whl

Total release size: 158.8 kB

Release files / ai_dev_flow-3.10.0.tar.gz

Download URL ai_dev_flow-3.10.0.tar.gz
Size 83.5 kB
Tags Source
SHA-256 checksum
How to use checksums
362615950912d510299e09906a250d25099159952fc364e69fa10922a8855188
BLAKE2b-256 checksum
How to use checksums
46eb958415432c3628c8d3e52ee9c66f8be3120f55bdbd0b2dc6c32dbf301014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / ai_dev_flow-3.10.0-py3-none-any.whl

Download URL ai_dev_flow-3.10.0-py3-none-any.whl
Size 75.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
204e89a70eec095910919fdd005bc25624d824c4068d47f6c4f70c8ad64bf3fe
BLAKE2b-256 checksum
How to use checksums
f6f5ae7e08c76c9a31a584f3cb096c1bd2b771303c9f9f76c4150d042da8a743
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for ai-dev-flow 3.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.10.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page