magic-helix-vscode
v4.0.0
Published
Advanced VS Code extension for running MagicAgentHelix CLI with AI-powered refinement, command history, favorites, workspace configuration, and progress tracking.
Maintainers
Readme
MagicAgentHelix VS Code Extension
A VS Code extension that runs MagicAgentHelix to align AI instructions across your monorepo projects.
Features
🪄 One-Click Execution
- Click the "Magic Helix" button in the status bar or use the Command Palette
- Use the quick access menu with Ctrl+Shift+M (or Cmd+Shift+M on Mac)
- Automatically detects and uses the local CLI in development mode
- Falls back to
npx @el-j/magic-agent-helixin production mode
📊 Real-Time Status Panel
- Visual progress tracking with percentage completion
- Stage-by-stage status updates
- Activity log showing all operations
- Color-coded messages (info, success, error, warning)
📝 Output Channel
- Detailed logging of all operations
- Timestamps for debugging
- Shows CLI output, errors, and warnings
- Easy access via "Show Output" command
🎯 Enhanced Status Bar
- Persistent status bar item with magic wand icon (🪄)
- Shows current state with progress percentage:
- Idle: "$(wand) Magic Helix"
- Running: "$(loading~spin) Magic Helix Running... [45%]"
- Success: "$(check) Magic Helix Done"
- Error: "$(error) Magic Helix Failed"
- Auto-resets to idle state after completion
⚙️ Settings & Configuration
- Global Settings: Configure default commands and options in VS Code settings
- Workspace-Specific Config: Create
.magic-helix.jsonfor per-workspace customization - Command History: Automatically tracks your last 10 command executions
- Favorites: Save frequently-used configurations for quick access
- Persistent Storage: Settings and history persist across VS Code sessions
🔧 Available Commands
The extension provides access to all MagicAgentHelix CLI commands with full option support:
- Quick Access Menu (
magic-helix.quickAccess) - Fast command launcher (Ctrl+Shift+M)- Access all commands from one menu
- View and run from command history
- Load saved favorite configurations
- Keyboard shortcut for instant access
- Run MagicAgentHelix (
magic-helix.run) - Generate AI instruction files- Interactive options selector for --dry-run, --force, --verbose, --quiet
- Custom project targeting
- Custom config file path
- Custom output directory
- Initialize Config (
magic-helix.init) - Create the Magic Helix config file (magic-helix.config.json) - Refresh MagicAgentHelix (
magic-helix.refresh) - Update existing instruction files- Interactive options selector for --verbose, --quiet
- Custom project targeting
- Custom config file path
- List Projects & Tags (
magic-helix.list) - Show detected projects and tags - Validate Instruction Files (
magic-helix.validate) - Check instruction files integrity - Clean Generated Files (
magic-helix.clean) - Remove all generated files - Save as Favorite (
magic-helix.saveFavorite) - Save current configuration for reuse - Configure Workspace (
magic-helix.configureWorkspace) - Create/edit.magic-helix.json - Show Output (
magic-helix.showOutput) - Display the output channel - Show Status Panel (
magic-helix.showStatus) - Display the status panel
⚙️ Interactive Options
When running Run or Refresh commands, you'll be presented with an interactive options menu:
Quick Options - Choose from common presets:
- Run with defaults
- Dry run (preview only)
- Force (no prompts)
- Verbose output
- Quiet mode
- Custom options...
Custom Options - Configure everything:
- Multiple flag selection (dry-run, force, skip-pruning, verbose, quiet)
- Target specific project
- Use custom config file
- Set custom output directory
🔧 Available Commands
The extension provides access to all MagicAgentHelix CLI commands:
- Run MagicAgentHelix (
magic-helix.run) - Generate AI instruction files - Refresh MagicAgentHelix (
magic-helix.refresh) - Update existing instruction files - List Projects & Tags (
magic-helix.list) - Show detected projects and tags - Validate Instruction Files (
magic-helix.validate) - Check instruction files integrity - Clean Generated Files (
magic-helix.clean) - Remove all generated files - Show Output (
magic-helix.showOutput) - Display the output channel - Show Status Panel (
magic-helix.showStatus) - Display the status panel
Usage
Running MagicAgentHelix
- Via Quick Access Menu: Press
Ctrl+Shift+M(orCmd+Shift+Mon Mac) for instant command launcher - Via Status Bar: Click the "Magic Helix" button in the bottom-left status bar
- Via Command Palette:
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type "MagicAgentHelix" and select from the available commands:
- "Quick Access Menu" - Fast command launcher with history and favorites
- "Run MagicAgentHelix" - Generate new instruction files (with options)
- "Initialize Config" - Create the Magic Helix config file (
magic-helix.config.json) - "Refresh MagicAgentHelix" - Update existing instruction files (with options)
- "List Projects & Tags" - Show project information
- "Validate Instruction Files" - Check file integrity
- "Clean Generated Files" - Remove all generated files
- "Save as Favorite" - Save current configuration
- "Configure Workspace" - Create/edit .magic-helix.json
- Press
Interactive Workflow
First Time Setup
- Run "Initialize Config" to create the Magic Helix config file (
magic-helix.config.json) - Optionally run "Configure Workspace" to create
.magic-helix.jsonfor workspace-specific settings - Edit the config files to customize your setup
- Run "Run MagicAgentHelix" to generate instruction files
Regular Usage
- Use Quick Access Menu (
Ctrl+Shift+M) for fastest access - Select from command history or favorites
- Or click the status bar / use Command Palette
- Select your desired options from the interactive menu
- Preview with
--dry-runbefore committing changes - Use
--forceto skip confirmation prompts for automation
Working with Favorites
- Run a command with your preferred options
- Use "Save as Favorite" to save the configuration
- Give it a descriptive name
- Access it anytime from the Quick Access Menu
Quick Options
When running Run or Refresh, select from:
- Run with defaults - Standard behavior
- Dry run - Preview changes without writing files
- Force - Skip all prompts (great for CI/CD)
- Verbose - See detailed output
- Quiet - Minimal output only
- Custom options... - Full control over all settings
Extension Settings
Configure the extension via VS Code settings (Cmd+, or Ctrl+,):
magicHelix.defaultCommand: Default command to run (default: "run")magicHelix.defaultOptions: Default CLI options as objectmagicHelix.historySize: Number of commands to keep in history (default: 10)magicHelix.notifications.enabled: Show notifications (default: true)magicHelix.notifications.showProgress: Show progress notifications (default: true)magicHelix.statusBar.show: Show status bar item (default: true)magicHelix.statusBar.autoReset: Auto-reset to idle after completion (default: true)magicHelix.statusBar.autoResetDelay: Delay before resetting in ms (default: 3000)
Workspace Configuration
Create a .magic-helix.json file in your workspace root for project-specific settings:
{
"defaultCommand": "run",
"defaultOptions": {
"verbose": true,
"skipPruning": true
},
"autoRunOnSave": false,
"watchPatterns": ["package.json", "tsconfig.json"]
}Viewing Status
- The status panel opens automatically when you run MagicAgentHelix
- Or use Command Palette: "MagicAgentHelix: Show Status Panel"
Viewing Output
- Use Command Palette: "MagicAgentHelix: Show Output"
- Or click "Show Output" in success/error notifications
Requirements
- VS Code 1.85.0 or higher
- Node.js 20.11.1 or higher
- A workspace with a monorepo structure
Development
This package is intended to be developed as part of the magic-agent-helix monorepo. See the monorepo root README.md for full usage and development instructions.
Testing in Development Mode
- Open this monorepo in VS Code
- Press F5 to launch Extension Development Host
- Open a test project in the new window
- The extension will automatically use the local CLI from
../../magic-agent-helix/dist/cli.mjs
Building
npm run build:vscodeTroubleshooting
No Output or Errors
If the extension runs but you don't see output:
- Check the Output panel: "MagicAgentHelix: Show Output"
- Look for error messages in the VS Code Developer Tools (Help > Toggle Developer Tools)
- Ensure you have a valid workspace open with a
package.json
CLI Not Found
In development mode, make sure you've built the CLI:
npm run build:cliIn production mode, the extension will use npx @el-j/magic-agent-helix.
Extension Not Activating
The extension activates on workspace startup. If it's not showing:
- Reload VS Code window (Command Palette > "Reload Window")
- Check that you have a workspace folder open
- Look for errors in Output > Log (Extension Host)
License
MIT
