Skip to main content

Warp through development cycles with automated BDD and Claude Coder

Project description

WarpCode

๐Ÿš€ Warp through development cycles with automated BDD and Claude Coder ๐Ÿš€

A Python CLI tool that orchestrates Claude Code to automatically implement BDD scenarios with zero human intervention, real-time monitoring, and robust fake implementation detection.

โœจ Key Features

  • ๐Ÿ”„ Fully Automated BDD Development - Zero human intervention once started
  • ๐Ÿ“ž Conversation Continuity - Claude maintains context across iterations with -c flag support
  • ๐Ÿ“Š Real-time OpenTelemetry Monitoring - Live Claude activity tracking with OTEL events
  • ๐Ÿ” Reality Validation - Comprehensive fake implementation detection and prevention
  • ๐Ÿค– Claude Integration - Automated Claude Code execution with enhanced debugging
  • ๐Ÿงช BDD Test Management - Behave integration with intelligent pass/fail parsing
  • ๐Ÿ“ˆ Code Quality Assurance - Radon integration for complexity monitoring
  • ๐ŸŽจ Beautiful CLI - Rich console output with real-time progress indicators

๐Ÿš€ Quick Start

Installation

pip install warpcode

Basic Usage

# Run WarpCode with interactive setup
warpcode

# Or use the shorter alias
warp

# Enable debug mode for comprehensive Claude activity visibility
WARPCODE_DEBUG=1 warpcode

# Enable verbose output to see all Claude interactions
WARPCODE_VERBOSE=1 warpcode

๐Ÿ“Š Real-time Monitoring

WarpCode provides multiple levels of monitoring:

1. Live Activity Dashboard

Real-time display showing:

  • Current BDD test status
  • Claude conversation state
  • Active tool executions
  • Reality validation results

2. OpenTelemetry Integration

Captures and displays:

  • claude_code.user_prompt - When prompts are sent
  • claude_code.tool_result - Tool execution results
  • claude_code.api_request - API calls with token counts
  • claude_code.tool_decision - Permission decisions

3. Debug Modes

# Show full Claude command execution details
export WARPCODE_DEBUG=1

# Display all Claude output in real-time
export WARPCODE_VERBOSE=1

# Both modes together for maximum visibility
export WARPCODE_DEBUG=1 WARPCODE_VERBOSE=1

๐Ÿ” Reality Validation

WarpCode prevents fake implementations through:

  • Pattern Detection - Scans for HTML mocks, hardcoded responses, simulation code
  • Behavioral Testing - Verifies tests actually depend on implementation files
  • Subprocess Validation - Ensures proper error handling in system calls
  • Mock File Detection - Identifies files with excessive hardcoded content
  • Conversation Reset - Clears Claude state when fake patterns are detected

๐ŸŽฏ Architecture Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Environment   โ”‚    โ”‚   Orchestrator   โ”‚    โ”‚  Claude Code    โ”‚
โ”‚    Manager      โ”‚โ—„โ”€โ”€โ–บโ”‚     Loop         โ”‚โ—„โ”€โ”€โ–บโ”‚   Interface     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚                        โ”‚                       โ”‚
         โ–ผ                        โ–ผ                       โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   BDD Runner    โ”‚    โ”‚   Scoreboard     โ”‚    โ”‚   Reality       โ”‚
โ”‚   (Behave)      โ”‚    โ”‚    Manager       โ”‚    โ”‚   Validator     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚                        โ”‚                       โ”‚
         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                 โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚ Activity Dashboardโ”‚
                    โ”‚ (Real-time UI)   โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“ Project Structure

your-project/
โ”œโ”€โ”€ features/                    # BDD feature files
โ”‚   โ”œโ”€โ”€ environment.py          # Behave configuration
โ”‚   โ”œโ”€โ”€ steps/                  # Step definitions
โ”‚   โ””โ”€โ”€ *.feature              # Gherkin scenarios
โ”œโ”€โ”€ scoreboards/                # Real-time status JSON files
โ”‚   โ”œโ”€โ”€ master_status.json     # Overall orchestration state
โ”‚   โ”œโ”€โ”€ bdd_status.json        # Test execution results
โ”‚   โ”œโ”€โ”€ claude_status.json     # Claude activity tracking
โ”‚   โ””โ”€โ”€ validation_*.json      # Reality validation reports
โ”œโ”€โ”€ venv/                      # Virtual environment
โ”œโ”€โ”€ behave.ini                 # Behave configuration
โ””โ”€โ”€ .warpcode_conversation_id  # Claude conversation state

๐Ÿ”„ How It Works

  1. Smart Environment Setup - Detects existing setup, only installs missing components
  2. Conversation Continuity - Loads existing Claude conversation or starts new one
  3. BDD Execution - Runs behave tests with real-time progress monitoring
  4. Claude Orchestration - Sends focused prompts with anti-fake enforcement
  5. Reality Validation - Scans for fake patterns, validates behavioral dependencies
  6. Iterative Improvement - Feeds validation failures back to enhance next iteration

๐Ÿ“‹ Requirements

  • Python 3.10+
  • Claude Code CLI (authenticated and available in PATH)
  • Git (for project management)

๐Ÿ› ๏ธ Development

# Install in development mode
git clone https://github.com/warpcodedev/warpcode
cd warpcode
pip install -e .

# Run with debug output
WARPCODE_DEBUG=1 warpcode

๐Ÿ“ Release Notes

v1.1.0 (Latest) - Advanced Fake Detection & Red-Green BDD

  • โœ… LLM-Powered Fake Detection: Claude analyzes step files to catch sophisticated fakes
  • โœ… Dual-Phase Validation: Combines regex patterns + LLM analysis for comprehensive detection
  • โœ… Red-Green BDD Enforcement: Proper TDD workflow requiring tests to fail first
  • โœ… Two-Phase Claude Workflow: Phase 1: Analyze fakes, Phase 2: Implement real code
  • โœ… Cross-Validation System: Validates WarpCode parsing against actual behave execution
  • โœ… Enhanced Behavioral Testing: File dependency tests, scenario isolation, truth verification
  • โœ… Comprehensive Fake Reports: Auto-generates fakesteps.md documentation

v1.0.9 - Comprehensive Monitoring & Conversation Continuity

  • โœ… Conversation Continuity: Claude maintains context with -c flag support
  • โœ… Real-time OTEL Monitoring: Live OpenTelemetry event parsing and display
  • โœ… Enhanced Reality Validation: Behavioral testing and fake pattern learning
  • โœ… Smart Environment Setup: Prevents unnecessary re-initialization
  • โœ… Comprehensive Debug Output: Full Claude activity visibility with timestamps
  • โœ… Validation Feedback Loop: Failed validations inform subsequent prompts

v1.0.8 - Reality Validation Foundation

  • โœ… Reality Validator: Comprehensive fake implementation detection
  • โœ… Enhanced Claude Prompts: Strict anti-mock enforcement with time limits
  • โœ… Improved Monitoring: Initial OpenTelemetry integration

v1.0.7 - Enhanced Dashboard & Monitoring

  • โœ… Activity Dashboard: Real-time UI progress tracking
  • โœ… Scoreboard Management: JSON-based status persistence
  • โœ… Claude Interface: Automated execution with log monitoring

v1.0.6 - Core BDD Integration

  • โœ… BDD Runner: Behave integration with result parsing
  • โœ… Environment Manager: Virtual environment and dependency handling
  • โœ… Basic Orchestration: Multi-iteration Claude execution loop

Earlier Versions (v1.0.0 - v1.0.5)

  • Initial project setup and basic functionality

๐ŸŽ›๏ธ Configuration Options

Environment Variables

WARPCODE_DEBUG=1        # Enable comprehensive debug output
WARPCODE_VERBOSE=1      # Show all Claude interactions
ANTHROPIC_API_KEY=...   # Claude API authentication

Debug Features

  • Full Command Logging: See exact Claude Code CLI invocations
  • Real-time Output: Live Claude response streaming with timestamps
  • Conversation Tracking: Monitor conversation ID persistence
  • OTEL Event Parsing: Detailed OpenTelemetry event breakdown
  • Validation Reports: Comprehensive fake implementation analysis

๐Ÿ”— Links

๐Ÿ“„ 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

Built with โค๏ธ for automated BDD development

Zero human intervention. Real implementations only. Maximum development velocity.

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.1.0.tar.gz (58.1 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.1.0-py3-none-any.whl (62.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for warpcode-1.1.0.tar.gz
Algorithm Hash digest
SHA256 adec65b545fadc8b8b700b7c47fb716fc3f4ea8daf572ef53097d35c08c6f50a
MD5 68d10fb591c6b9957dc8a74d8c166bab
BLAKE2b-256 649786831b527354a078f9474512c8aa8b92da3d7c76dfa81cb84e116b1d2667

See more details on using hashes here.

File details

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

File metadata

  • Download URL: warpcode-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 62.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a3b764475290fb2cd8b7394a4502dd0a9bed352853197e26bfa178d6454ffaf
MD5 9cf516a22de0252f2740099b14fd8d2c
BLAKE2b-256 3fb748bcb5cb815a806cc3308d871d5ae8b226be4806d7b8431b8d2ce039ebeb

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