π¬π§ English (default) | π«π· Version franΓ§aise
A structured, IDE-agnostic implementation of an AI-Driven Development (AIDD) workflow focused on orchestration, checkpoints, and auditability. Works with OpenCode, Claude Code, Cursor, GitHub Copilot, or any LLM-based agent.
AI-Driven Development is a development workflow and decision-making process where AI assists human judgment rather than operating autonomously. In AIDD:
- AI is an assistant, not an autonomous agent
- Humans make decisions at critical checkpoints
- AI executes under explicit constraints and rules
- Work is auditable through structured artifacts and traceable decisions
AIDD emphasizes method over automation: clear rules, explicit plans, automated checks, and mandatory human review before accepting changes.
aidd-flow is a practical, IDE-agnostic implementation of an AIDD workflow built on a tripartite role pattern:
- Architect β thinks and plans before any code is written
- Editor β executes under constraints defined by the plan and rules
- Reviewer β performs a mandatory human audit before marking work done
This repository provides:
- Orchestration: A single
AGENTS.mdentry point loaded automatically by any agent - Checkpoints: Validation gate scripts enforcing plan quality and review verdicts
- Auditability: Persistent artifacts (AUDIT, INTAKE, PLAN, REVIEW) documenting decisions
- Rules library: 30+ plain Markdown rules covering clean code, security, languages, frameworks, QA
- Memory bank: Persistent context files (
projectbrief,techContext,systemPatterns,activeContext)
- Structured AI-assisted development: From issue/PR to reviewed implementation
- Decision traceability: Clear artifacts documenting what was decided and why
- Quality gates: Automated validation of plans and mandatory human review
- Project continuity: Memory bank and active context for multi-session work
- IDE-agnostic workflows: Works with OpenCode, Claude Code, Cursor, Copilot, and others
- Universal methodology: This is a practical workflow, not a theoretical framework
- Team collaboration: Designed for individual or small team use, not enterprise-scale processes
- Certification or training: No official certification or training program
git clone https://github.com/V-Vaal/aidd-flow.git
cd aidd-flowFill in aidd/memory/ files for your project context, then start the workflow via AGENTS.md.
git clone https://github.com/V-Vaal/aidd-flow.git
cd aidd-flow
bash scripts/aidd-export.sh /path/to/your/target-projectThis exports the full workflow into /path/to/your/target-project/.aidd-flow/, creates a root AGENTS.md entry point from template, and writes .aidd-flow/aidd/aidd.lock for version tracking.
Safety behavior:
- If
.aidd-flow/exists and is non-empty, the script refuses unless you pass--forceor--backup. - If
AGENTS.mdalready exists at the target root, the script refuses unless you pass--force-agentsor--backup-agents.
After export, authenticate GitHub CLI (gh auth login) and review docs/design/architecture.md.
AGENTS.md is the universal entry point. It is loaded automatically by OpenCode and Claude Code. The prompts/commands/cursor/ folder is a historical archive you can use as inspiration to recreate Cursor slash commands.
- Any AI agent (OpenCode, Claude Code, Cursor agent mode, GitHub Copilot Chat, ...)
- Git repository with the workflow installed (see Installation)
- GitHub CLI authenticated (
gh auth login) for targeted mode curlavailable for Context7 docs (scripts/c7-docs.sh)- Optional: set
CONTEXT_BUDGET=low|medium|highin.envto control context size (default:low)
Phase 1 β Architect (plan before you build)
- Read
aidd/memory/activeContext.mdandaidd/memory/projectbrief.md - Load
prompts/intake.mdβ producesaidd/work/INTAKE.md - Load
prompts/plan.mdβ producesaidd/work/PLAN.md - Run gate:
bash scripts/validate-plan.shβ do not proceed if it fails
Phase 2 β Editor (build under constraints)
- Run
bash scripts/aidd-rules-jit.shβ producesaidd/work/RULES_JIT.mdwith the minimal relevant rule set - Implement following
aidd/work/PLAN.mdexactly β no scope creep - Run:
bash scripts/aidd-check.sh
Phase 3 β Reviewer (human audit mandatory)
- Load
prompts/review.mdβ producesaidd/work/REVIEW.md - Run gate:
bash scripts/review-check.shβ task is not done until Verdict isAPPROVE - Optional closeout:
bash scripts/aidd-finish.sh(guided commit/push/PR + cleanup + handoff)
| Agent | Entry point |
|---|---|
| OpenCode / Claude Code | AGENTS.md loaded automatically at session start |
| Cursor | Historical archive in prompts/commands/cursor/ β not plug-and-play, use as inspiration for slash commands |
| Other agents | Copy the relevant prompts/*.md content into your chat context |
Claude Code note: AGENTS.md is the project-scoped entry point. Claude Code also maintains its own cross-project memory at ~/.claude/ β these two layers are complementary: aidd/memory/ holds project context, ~/.claude/ holds agent-level preferences and patterns. Use prompts/compact-response.md as a reference template when you need token-efficient outputs.
If you want better code, improve the system, not the model.
This workflow does not attempt to "make AI smarter". It focuses on improving the conditions under which code is produced: clear constraints, explicit plans, validation gates, and human review.
Critical decisions require human judgment:
- Intake validation: Human reviews and approves requirements
- Plan approval: Human validates technical approach before implementation
- Review verdict: Human provides formal approval (
APPROVE|CHANGES_REQUESTED)
- Human as orchestrator: Sets rules, validates plans, makes decisions, provides verdicts
- AI as executor: Implements plans under constraints, follows rules, generates artifacts
All AI-assisted work produces structured artifacts in aidd/work/:
AUDIT.md: Repository state and findingsINTAKE.md: Requirements, constraints, acceptance criteriaPLAN.md: Technical steps, files to touch, rollback planREVIEW.md: Review summary, test evidence, formal verdict
These artifacts document what was decided, why it was decided, and what evidence supports the decision.
aidd-flow/
βββ AGENTS.md # Universal agent entry point (3 modes + gates + RTK)
βββ .env.example # Optional environment defaults
β
βββ aidd/
β βββ memory/ # Persistent context β fill once per project
β βββ work/ # Runtime artifacts β gitignored (AUDIT, INTAKE, PLAN, REVIEW, SUMMARY, HANDOFF)
β βββ review/ # Domain-specific review checklists (web3, ml, general)
β
βββ rules/ # 30+ plain Markdown rules
β βββ INDEX.md # Rules catalog (always-apply, stack-specific, deprecated)
β
βββ prompts/ # Workflow prompts (start, intake, plan, audit, review, ...)
β βββ compact-response.md # Token-efficient output template
β βββ commands/cursor/ # Cursor slash commands (archived reference)
β
βββ scripts/ # Validation gate scripts
β βββ validate-plan.sh # Gate: blocks implementation if PLAN.md is invalid
β βββ review-check.sh # Gate: blocks completion if REVIEW.md is not APPROVE
β βββ aidd-check.sh # Post-implementation checks
β βββ aidd-finish.sh # Guided commit/push/PR + cleanup + handoff
β βββ aidd-export.sh # Export framework to a target project
β βββ gh-context.sh # Facts-only GitHub signals via gh CLI
β βββ c7-docs.sh # Context7 docs via curl (mandatory evidence)
β βββ aidd-rules-jit.sh # Just-in-time rules selection
β βββ aidd-diff-digest.sh # Compact diff digest for reviews
β βββ aidd-verify-ui.sh # UI change verification
β βββ aidd-cleanup.sh # Archive aidd/work/ artifacts older than 30 days
β
βββ docs/
βββ workflow/ # Complete workflow reference (overview, gates, governance, debugging, ...)
βββ design/architecture.md # Export guide and architecture decisions
βββ templates/AGENTS.root.md # Root AGENTS template used by export
βββ quality/ # Artifact specifications (intake, technical-plan)
- Workflow guide: Complete workflow method with gates, governance, and troubleshooting
- Architecture guide: Export model and design decisions
- INTAKE specification: INTAKE.md artifact structure and requirements
- PLAN specification: PLAN.md artifact structure and requirements
- Rules index: All rules with always-apply and deprecated flags
When you export this workflow to a target project using scripts/aidd-export.sh, it creates aidd/aidd.lock in the target project:
# AIDD Lock File
timestamp: 2024-01-15T10:30:00Z
source_remote: https://github.com/owner/aidd-flow
source_commit: abc123def456...
template_version: 1.0.0Re-run aidd-export.sh from the source repository to update. Use --backup to preserve existing .aidd-flow/ directory.
This workflow is inspired by the AI-Driven Development (AIDD) approach articulated by Alex Soyes and the ai-driven-dev community (github.com/ai-driven-dev).
Important disclaimers:
- This is not an official or verbatim implementation of AIDD
- This is a personal, practical interpretation adapted for IDE-agnostic use
- Any opinions, limitations, or mistakes in this implementation are the author's own
This repository is not:
- An official AIDD framework: Personal implementation, not an official standard
- A certification program: No certification, training, or official endorsement
- A universal methodology: Designed for practical use, not theoretical completeness
- An endorsement of tools: IDE-agnostic design reflects practical choices, not tool endorsement
- A static specification: This workflow evolves based on real-world use
See LICENSE file for details.
This repository represents a stable snapshot of an evolving workflow. Contributions that improve clarity, fix errors, or add practical improvements are welcome. Please open an issue to discuss significant changes before submitting a pull request.