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
-cflag 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 sentclaude_code.tool_result- Tool execution resultsclaude_code.api_request- API calls with token countsclaude_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
- Smart Environment Setup - Detects existing setup, only installs missing components
- Conversation Continuity - Loads existing Claude conversation or starts new one
- BDD Execution - Runs behave tests with real-time progress monitoring
- Claude Orchestration - Sends focused prompts with anti-fake enforcement
- Reality Validation - Scans for fake patterns, validates behavioral dependencies
- 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.mddocumentation
v1.0.9 - Comprehensive Monitoring & Conversation Continuity
- โ
Conversation Continuity: Claude maintains context with
-cflag 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
- PyPI: https://pypi.org/project/warpcode/
- GitHub: https://github.com/warpcodedev/warpcode
- Issues: https://github.com/warpcodedev/warpcode/issues
- Documentation: https://github.com/warpcodedev/warpcode#readme
๐ License
MIT License - see LICENSE file for details.
๐ค Contributing
- Fork the repository
- Create a feature branch
- Add tests for new functionality
- Submit a pull request
Built with โค๏ธ for automated BDD development
Zero human intervention. Real implementations only. Maximum development velocity.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file warpcode-1.1.3.tar.gz.
File metadata
- Download URL: warpcode-1.1.3.tar.gz
- Upload date:
- Size: 62.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceb41da5830cb028fd4ecaef3dc6966b92766be0b85f37420352ff75ee4223e3
|
|
| MD5 |
fd912f02429f55134bf3648230b236d8
|
|
| BLAKE2b-256 |
fb0cd1d5c460cf1b41e42da87f02446ba8e1b7fb757b84857ab95bc39bd05b76
|
File details
Details for the file warpcode-1.1.3-py3-none-any.whl.
File metadata
- Download URL: warpcode-1.1.3-py3-none-any.whl
- Upload date:
- Size: 67.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
344de08650d19347d2b19fcc16eeaf6a3b26a19678cd38f3391ed5b707c4dab6
|
|
| MD5 |
71a89d929f8367916d94f21ff1766e46
|
|
| BLAKE2b-256 |
e68efc3f0d4b8192269962634ab362fec7e57db2e08da69d44c7d1f33ff82d34
|