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.5.tar.gz (38.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.5-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for warpcode-1.0.5.tar.gz
Algorithm Hash digest
SHA256 90cd288153863a5867485ba868af26e3719bce79ba83e2b6c2d4424252dedce8
MD5 d995da5367c7a9bcc457398618e6d94c
BLAKE2b-256 e2d9ea80108c2218383da60f2bc7c7af7090a7f5fd9543034bbcdca537e61b01

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for warpcode-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 540ec4b4ca068615e66dc6c746903b60edbfbca23c4afd1e41431cd8aad9e24b
MD5 1974b32294038c254c0f764c9fb5da65
BLAKE2b-256 d63c9fda155338e74a420e22be15ebe60343340125122104882bcd4d9a362fe1

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