Skip to main content

Warp through development cycles with automated BDD and Claude Coder

Project description

BDD Claude Orchestrator

๐Ÿค– Automated BDD development with Claude Coder orchestration ๐Ÿค–

A Python CLI tool that continuously runs Claude Coder until all BDD tests pass, with real-time monitoring, dependency management, and zero human intervention required.

โœจ Features

  • ๐Ÿ”„ Fully Automated BDD Development - Zero human intervention once started
  • ๐Ÿ“Š Real-time Scoreboards - JSON files with live progress tracking
  • ๐Ÿค– Claude Integration - Automated Claude Coder execution with activity monitoring
  • ๐Ÿงช BDD Test Management - Behave integration with pass/fail parsing
  • ๐Ÿ“ˆ Complexity Monitoring - Radon integration for code quality assurance
  • ๐ŸŽฏ Reality Enforcement - Screenshot capture and mock detection
  • ๐Ÿ”— Dependency Management - Smart feature ordering and dependency tracking
  • ๐ŸŽจ Beautiful CLI - Rich console output with ASCII art and progress indicators

๐Ÿš€ Quick Start

  1. Run the orchestrator:

    python3 run_orchestrator.py
    
  2. Choose "Quick Start" from the menu - The tool will:

    • Create a Python 3.10 virtual environment
    • Set up BDD project structure (/features, /features/steps)
    • Install all dependencies automatically
    • Run Claude Coder in a loop until all tests pass
  3. Monitor progress via:

    • Beautiful CLI dashboard with live updates
    • Real-time scoreboard files in ./scoreboards/
    • Screenshots of UI tests in ./scoreboards/screenshots/

๐Ÿ“ Project Structure

After initialization, your project will have:

your-project/
โ”œโ”€โ”€ features/                    # BDD feature files
โ”‚   โ”œโ”€โ”€ environment.py          # Behave configuration
โ”‚   โ”œโ”€โ”€ steps/                  # Step definitions
โ”‚   โ””โ”€โ”€ *.feature              # Gherkin feature files
โ”œโ”€โ”€ scoreboards/                # Real-time status files
โ”‚   โ”œโ”€โ”€ master_status.json     # Overall progress
โ”‚   โ”œโ”€โ”€ bdd_status.json        # Test results
โ”‚   โ”œโ”€โ”€ claude_status.json     # Claude activity
โ”‚   โ”œโ”€โ”€ complexity_status.json # Code quality metrics
โ”‚   โ””โ”€โ”€ screenshots/           # UI test verification
โ”œโ”€โ”€ venv/                      # Virtual environment
โ”œโ”€โ”€ behave.ini                 # Behave configuration
โ””โ”€โ”€ dependency.md              # Feature dependencies

๐Ÿ“Š Scoreboards

The orchestrator maintains real-time JSON files that you can tail or consume:

# Monitor overall progress
tail -f scoreboards/master_status.json

# Watch BDD test results
tail -f scoreboards/bdd_status.json

# Track Claude activity
tail -f scoreboards/claude_status.json

# Monitor code complexity
tail -f scoreboards/complexity_status.json

๐ŸŽ›๏ธ CLI Options

# Interactive menu (default)
python3 run_orchestrator.py

# Skip menu and run immediately  
python3 run_orchestrator.py --quick-start

# Show version
python3 run_orchestrator.py --version

# Help
python3 run_orchestrator.py --help

โš™๏ธ Configuration

The orchestrator can be configured through:

  1. Interactive Menu - Configure settings through the CLI
  2. Command Line Arguments - Pass options directly
  3. Environment Variables - Set ANTHROPIC_API_KEY for Claude
  4. Configuration Files - behave.ini for BDD settings

๐Ÿ”„ How It Works

  1. Environment Setup - Creates venv, installs dependencies, sets up BDD structure
  2. Initial Validation - Checks Python version, Claude availability, BDD setup
  3. Orchestration Loop:
    • Run BDD tests with behave
    • Parse results (pass/fail/undefined/skipped counts)
    • If not all passing โ†’ send results to Claude
    • Monitor Claude execution in real-time
    • Update scoreboards continuously
    • Repeat until success or max iterations

๐Ÿ“‹ Requirements

  • Python 3.10+ (automatically checked)
  • Claude Code CLI (must be installed and authenticated)
  • Git (for project management)

๐Ÿ› ๏ธ Development

Install in development mode:

pip install -e .

Run with development dependencies:

pip install -r requirements.txt
python3 run_orchestrator.py

๐Ÿ“ Example Output

๐Ÿš€ BDD Claude Orchestrator v1.0
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

[Iter 1] ๐Ÿ”„ Setup complete โ†’ Starting authentication.feature
[Iter 1] ๐Ÿ“Š BDD: 0/12 tests | Complexity: - | Claude: Analyzing requirements
[Iter 2] ๐Ÿ“Š BDD: 3/12 โœ“ | Complexity: B | Claude: auth_steps.py โ†’ login logic  
[Iter 3] ๐Ÿ“Š BDD: 8/12 โœ“ | Complexity: B | Claude: models.py โ†’ user validation
[Iter 4] โŒ 2 failed: password-reset, profile-update | Claude: debugging flows
[Iter 5] ๐Ÿ“Š BDD: 12/12 โœ“ | Complexity: A | Claude: Final verification โœจ

๐ŸŽ‰ ALL TESTS PASSING! Total time: 23m 45s

๐ŸŽฏ Reality Enforcement

The orchestrator ensures authentic implementations:

  • No Mocks Allowed - Detects and prevents placeholder implementations
  • UI Screenshot Verification - Captures real browser interactions
  • Database Connections - Requires real data persistence
  • API Integration - Tests against actual endpoints
  • Fast-Fail Design - Stops execution if tests are unrealistic

๐Ÿ”— Dependency Management

Features can specify dependencies in dependency.md:

# Feature Dependencies

user_registration.feature -> (no dependencies)
user_authentication.feature -> user_registration.feature  
user_profile.feature -> user_authentication.feature

Claude automatically maintains this file and executes features in dependency order.

๐Ÿšง Future Features

  • Web UI Dashboard consuming scoreboard files
  • Multi-project Support with workspace management
  • CI/CD Integration for automated PR validation
  • Advanced Analytics and performance tracking
  • Plugin System for custom analyzers

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Submit a pull request

๐Ÿ“ž Support

  • Issues: Create a GitHub issue for bugs or feature requests
  • Documentation: See prodspec.md for detailed technical specifications
  • Scoreboards: Monitor ./scoreboards/ directory for real-time status

Built with โค๏ธ by Claude Code

Zero human intervention. Maximum test coverage. Real implementations only.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

warpcode-1.0.2.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

warpcode-1.0.2-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file warpcode-1.0.2.tar.gz.

File metadata

  • Download URL: warpcode-1.0.2.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for warpcode-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c291eecb1007d156d4e8b7e491d8152f978b57b676c4af7669b63a9a4e5b63a2
MD5 1242e5219c7b444ae0246816baad6c77
BLAKE2b-256 953c27796de62a5e9cade28efe92b7a46c1672f939c2eec1104ee6d0b158fe19

See more details on using hashes here.

File details

Details for the file warpcode-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: warpcode-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for warpcode-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 afbe610a8deba01dc2e4812d8c68a867d94f3904090510297eab046dfaff8ae1
MD5 7bc693d6999609be29024276d6ef7218
BLAKE2b-256 d06cbc442bf1ad511fa1cae0e0887fcf615652d2600c8d586096434073459027

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page