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.9.tar.gz (50.3 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.9-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: warpcode-1.0.9.tar.gz
  • Upload date:
  • Size: 50.3 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.9.tar.gz
Algorithm Hash digest
SHA256 64371d868dcb6cf00a3093ee83ab3083d6b5d0a9cddfa9215a0a4d4514f4eb25
MD5 361f4249bf9d0f812b792fd5e691f5ac
BLAKE2b-256 b41418119efa65c49fc30ae09ce8a7130f524b6c5d7b03b4c6d68a04af693ac4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: warpcode-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 55.6 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e854960db4fc88f8bef34c11193211b62b9b739e9514ee454e678e3b3b36a16b
MD5 683d3276ac2935b957a4f942dfeb8958
BLAKE2b-256 4d2c08474d814ca8d43a57937e0ea513be1456aabaefe030d7fbe76c2633ac13

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