A comprehensive framework for high-performance, spec-driven AI development with coordinated parallel sessions, dynamic goal management, and automated project setup.
- Auto-Session Creation: System automatically detects work type and creates appropriate sessions
- Intelligent Coordination: Prevent conflicts when multiple AI agents work simultaneously
- Real-Time Session Awareness: Each agent knows what others are working on
- Performance Optimization: 3-4x faster development through parallel AI work
- Real-Time Goal Updates: Edit project goals via dashboard or CLI with instant rule synchronization
- Comprehensive History Tracking: Complete audit trail with similarity analysis and change impact
- Automatic Rule Regeneration: Unified rules update automatically when goals change
- Quality Validation: Built-in goal validation with length, format, and content checks
- Pure Magic Setup: Dashboard can install CLI tools and run commands automatically
- Real-Time Terminal Streaming: Live command output in web interface
- One-Click Project Setup: Complete project initialization from web dashboard
- Tool Management: Automatic detection and installation of development tools
- Spec-Driven Architecture: AI agents work from comprehensive project specifications
- Auto-Rule Generation: Single unified rule file instead of multiple separate rules
- Context Persistence: Complete project memory across all AI sessions
- Web Development: Separate sessions for frontend, backend, testing, and styling
- Large Projects: Multiple developers using AI agents simultaneously
- Feature Development: Parallel work on independent functions/components
- Code Review: One session for fixes while another handles new features
warp-multithreaded/
βββ core/
β βββ session-manager.js # Core session coordination
β βββ masterplan-manager.js # Persistent project memory
βββ warp-rules/ # AI Agent behavior rules
β βββ enhanced-multi-session-coordination.md # Parallel development
β βββ enhanced-masterplan-session-rules.md # Context awareness
β βββ frontend-session-rules.md # Frontend specialization
β βββ backend-session-rules.md # Backend specialization
βββ scripts/
β βββ coordinator.js # CLI coordination tool
β βββ validate-system.js # System validation
βββ dashboard/ # Web dashboard
β βββ server.js # Dashboard backend
β βββ public/ # Dashboard frontend
βββ .warp-masterplan/ # Generated project memory
βββ masterplan.md # Project overview
βββ tasks.json # Task management
βββ session-log.md # Session history
Warp Rules are the activation key that transforms standard AI into coordinated multithreaded development:
enhanced-multi-session-coordination.md- Crystal clear parallel development protocolsenhanced-masterplan-session-rules.md- Explicit project memory integration- Session-specific rules - Frontend/backend specialization
Human: Use enhanced-multi-session-coordination and enhanced-masterplan-session-rules from my Warp Drive.
I need to work on user authentication for my web app.
# Clone the repository
git clone https://github.com/Zhihong0321/warp-multithreaded.git
cd warp-multithreaded
# Install dependencies
npm install
# Verify installation
npm run health-check
# The 'wm' command will be available for short CLI usage# Option A: Use the dashboard (recommended)
npm run cli-service
# Then open http://localhost:3001 in your browser
# Option B: Use CLI to generate unified rules
npm run masterplan
# Option C: Manage goals directly
npm run goal get
npm run goal set "Build an amazing AI-powered application"# The system automatically creates sessions based on your work:
# Just describe what you want to build - no manual session creation needed!
# Example: Frontend work triggers auto-frontend session
# "Create a login component with validation"
# Example: Backend work triggers auto-backend session
# "Build authentication API endpoints"
# Example: Full-stack work automatically switches between sessions
# "Add user profile functionality with frontend and backend"# Goal Management
npm run goal history # View goal change history
npm run goal stats # Goal statistics and analytics
npm run goal validate "text" # Validate goal content
# CLI Service (Magic Dashboard)
npm run cli-service # Start dashboard with CLI integration
# System Management
npm run status # Check coordination status
npm run validate # Validate system healthUse the wm command for faster workflow:
# State management
wm load-state # Load previous development state
wm save-state --summary="..." # Save current state
wm update-state # Update project documentation
# Session management
wm startup # Resume development with context
wm shutdown --summary="..." # End session with summary
wm status # Show framework status
wm sessions # List active sessions
# Tasks and planning
wm tasks # List all project tasks
wm add-task --title="..." # Add new task
wm complete-task --id=... # Mark task completed
# Context and analysis
wm context --save=context.md # Generate AI context
wm conflicts # Check file conflictsNever lose development context again:
# Save your work during development
wm save-state --summary="Implemented user authentication" --auto
# End your development session
wm shutdown --summary="What was accomplished" --next-goals="What to do next"
# Resume where you left off
wm load-state # Quick context check
wm startup # Full resume with contextStreamlined initialization with better error handling:
# Initialize with automatic Warp Rules setup
node scripts/coordinator.js init --project-type=web-app
# System validates and guides you through setup
node scripts/coordinator.js rules setup
# Verify everything is working
node scripts/coordinator.js rules verify- Tracks active sessions and their assigned tasks
- Prevents file conflicts through smart locking
- Provides real-time coordination between sessions
- Function-based: Tasks organized by features/functions
- Priority-based: Critical tasks get precedence
- Dependency-aware: Handles task dependencies automatically
- Soft locks: Prevent simultaneous edits without blocking
- Change tracking: Monitor file modifications across sessions
- Merge assistance: Help resolve conflicts when they occur
Create a .warp-config.json in your project root:
{
"project_type": "web-app",
"sessions": {
"frontend": {
"focus": ["ui", "components", "styling"],
"directories": ["src/components", "src/styles"],
"file_patterns": ["*.tsx", "*.jsx", "*.css", "*.scss"]
},
"backend": {
"focus": ["api", "database", "auth"],
"directories": ["src/api", "src/models", "src/middleware"],
"file_patterns": ["*.js", "*.ts", "*.sql"]
},
"testing": {
"focus": ["tests", "quality"],
"directories": ["tests", "cypress"],
"file_patterns": ["*.test.js", "*.spec.js", "*.cy.js"]
}
}
}# State management
wm load-state # Load previous development state
wm save-state # Save current state with prompts
wm update-state # Update project documentation
wm startup # Resume development session
wm shutdown # End development session
# Project management
wm status # Show framework status
wm tasks # List all project tasks
wm sessions # List active sessions
wm context # Generate AI context
wm conflicts # Check for file conflicts
# Task management
wm add-task --title="Task name" # Add new task
wm complete-task --id=task-123 # Mark task completed# State management
node scripts/coordinator.js load-state
node scripts/coordinator.js update-state --summary="..." --auto
node scripts/coordinator.js shutdown --summary="..." --next-goals="..."
node scripts/coordinator.js startup --show-context=true
# Session management
node scripts/coordinator.js session create --name=<session-name>
node scripts/coordinator.js session list
node scripts/coordinator.js status
node scripts/coordinator.js conflicts
# Masterplan management
node scripts/coordinator.js masterplan tasks
node scripts/coordinator.js masterplan add-task --title="..."
node scripts/coordinator.js masterplan complete-task --id=...
node scripts/coordinator.js context --save=context.md
# Setup and validation
node scripts/coordinator.js init --project-type=web-app
node scripts/coordinator.js rules setup
node scripts/coordinator.js validate# State management
npm run load-state # Load previous state
npm run save-state # Save current state
npm run startup # Resume development
npm run shutdown # End session
# Project management
npm run status # Show status
npm run tasks # List tasks
npm run context # Generate contextThe framework includes a web dashboard for visual coordination:
- Session Overview: See all active sessions and their current tasks
- File Status: Real-time view of locked/modified files
- Task Queue: Visual task management and assignment
- Conflict Resolution: GUI for resolving merge conflicts
Access at: http://localhost:3000/warp-dashboard
- QUICK_COMMANDS.md - Complete guide to short CLI commands and workflow
- USER_GUIDE.md - Comprehensive user guide with daily workflow examples
- GETTING_STARTED.md - Detailed setup and first-time usage guide
- SESSION_CONTINUITY_GUIDE.md - Advanced session continuity features
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built for the Warp terminal and AI Agent community
- Inspired by the need for efficient parallel AI-assisted development
- Thanks to all contributors and early adopters
Made with β€οΈ for the Warp AI Agent community