Quick Start Guide
Get up and running with the SPARC Workflow Engine in minutes.
🚀 Installation & Setup
Prerequisites
- Visual Studio Code 1.60.0 or newer
- Node.js and npm (for development)
- Git (for version control)
Installation
- Install the Mira Extension: ```bash # From VS Code Marketplace # Search for "Mira" in Extensions view and install
# Or install from VSIX npx vsce package # Then install the generated .vsix file ```
- Open a Workspace:
bash # Open your project in VS Code code /path/to/your/project
🎯 Your First Issue
Step 1: Create an Issue
- Open the Mira sidebar (look for the Mira icon in the activity bar)
- Click "+ New Issue"
- Enter a title:
"Create user authentication system" - Add description:
"Build a secure login system with JWT tokens" - Click "Create Issue"
Step 2: Start in Design Mode
- Select your newly created issue from the issues list
- Ensure Design mode is selected (🎨 Design button should be active)
- Type in the chat:
"I need a complete authentication system with user registration, login, and JWT token management" - Press Enter or click Send
Step 3: Progress Through Phases
The system will automatically progress through the SPARC phases:
- Specification Phase (25%): Requirements are extracted and formalized
- Pseudocode Phase (50%): Algorithm design is created
- Architecture Phase (75%): System architecture is designed
- Refinement Phase (100%): Requirements are finalized
Continue providing input to progress through each phase:
- "Add password hashing with bcrypt"
- "Include refresh token mechanism"
- "Add rate limiting for login attempts"
Step 4: Switch to Build Mode
- Once design is complete (100%), click 🔨 Build mode
- Type:
"Generate Express.js implementation with TypeScript" - The system will generate:
- Implementation code
- Test suites
- Configuration files
Step 5: Debug and Refine
- Switch to 🐛 Debug mode
- Type:
"Check for security vulnerabilities in the authentication flow" - The system will analyze and provide recommendations
📁 Generated Files
Your issue will create files in the .nys/ directory:
.nys/
└── issue-1234567890/
├── requirements.md # Technical specifications
├── guidelines.md # Development guidelines
├── pseudocode.md # Algorithm design
├── architecture.md # System architecture
├── implementation.md # Generated code
├── tests.md # Test suites
└── notes.md # Debug notes
🎨 Understanding the Interface
Issues Panel
- Issues List: Shows all your issues with status indicators
- Mode Badges: Color-coded indicators (Design=Blue, Build=Orange, Debug=Red)
- Status Indicators: Open, In-Progress, Completed, Blocked
Chat Interface
- Mode Selector: Switch between Design, Build, and Debug modes
- Chat History: All conversations are saved with timestamps
- Context Awareness: Responses are tailored to your current mode and issue
Progress Tracking
- Phase Indicators: Shows current SPARC phase
- Progress Bar: Visual progress through the workflow
- Artifact Status: Shows which documents have been generated
🔄 Common Workflows
New Feature Development
- Create issue → Design mode → Build mode → Debug mode
- Each mode builds upon the previous work
- All artifacts are automatically generated and stored
Bug Fixing
- Create issue describing the bug
- Use Debug mode to analyze the problem
- Switch to Build mode to implement fixes
- Use Design mode to update documentation if needed
Code Review
- Create issue for code review
- Use Debug mode to analyze code quality
- Generate recommendations and improvements
- Use Build mode to implement suggested changes
🚨 Troubleshooting
Common Issues
"No active issue found" - Make sure you've created and selected an issue - Check that the issue is visible in the issues panel
"Build requested but design incomplete" - Complete the design phase first (reach 100% progress) - Ensure all SPARC phases are finished
"Extension not responding" - Restart VS Code - Check the Output panel for error messages - Ensure you have a workspace folder open
Getting Help
- Check the User Guide for detailed information
- Review Examples for common use cases
- Open an Issue for bugs or feature requests
🎉 Next Steps
Now that you're up and running:
- Explore the User Guide: Learn about advanced features and customization
- Try Examples: Work through the example scenarios
- Customize: Learn how to extend the engine for your specific needs
- Contribute: Help improve Mira by contributing to the project
Ready to dive deeper? Check out the Complete User Guide for comprehensive documentation.