workflow-agent-vscode
v0.1.0
Published
Self-evolving workflow management with real-time validation
Maintainers
Readme
Workflow Agent - VS Code Extension
Real-time workflow validation and enforcement for VS Code.
Features
🔍 Real-Time Validation
- Commit Message Validation: Validates conventional commit format as you type
- Branch Name Validation: Checks branch naming patterns against your workflow config
- Scope Validation: Ensures scopes match your project's defined scopes
📊 Status Bar Integration
- Shows current branch name and enforcement mode
- Visual indicators for validation state (green = valid, yellow = warning, red = error)
- Click to view full configuration
⌨️ Command Palette
Access all Workflow Agent features from the command palette:
Workflow: Initialize- Set up workflow configurationWorkflow: Validate Branch- Validate current branch name (Ctrl+Shift+W / Cmd+Shift+W)Workflow: Suggest Improvement- Submit a suggestion to the improvement trackerWorkflow: Run Doctor- Check for configuration issuesWorkflow: Show Configuration- View current workflow configuration
💡 IntelliSense
- Autocomplete for commit scopes
- Hover tooltips for validation errors
- Quick fixes for common issues
Installation
From VSIX
- Download the latest
.vsixfile from releases - Open VS Code
- Go to Extensions view (Ctrl+Shift+X)
- Click the
...menu → "Install from VSIX..." - Select the downloaded file
From Marketplace
code --install-extension workflow-agentConfiguration
Extension Settings
Configure the extension through VS Code settings:
{
"workflowAgent.enabled": true,
"workflowAgent.validateOnType": true,
"workflowAgent.showStatusBar": true,
"workflowAgent.autoSuggest": false,
"workflowAgent.strictMode": false
}Workspace Configuration
Initialize workflow configuration in your workspace:
- Open command palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run
Workflow: Initialize - Select a preset or create custom configuration
Or use the CLI:
workflow init --preset library --name my-projectUsage
Validating Commits
The extension automatically validates commit messages as you type in:
- Git commit input boxes
.git/COMMIT_EDITMSGfiles- SCM view commit message field
Invalid messages will show:
- Red squiggly underlines in the editor
- Diagnostic messages in the Problems panel
- Error icons in the status bar
Validating Branches
Press Ctrl+Shift+W (or Cmd+Shift+W on Mac) to validate the current branch name.
Valid branch format:
<type>/<scope>/<description>Examples:
- ✅
feature/auth/add-oauth - ✅
bugfix/api/fix-rate-limit - ✅
docs/readme/update-installation - ❌
fix-bug - ❌
feature_new_thing
Suggesting Improvements
- Open command palette
- Run
Workflow: Suggest Improvement - Enter your suggestion
- Select a category (feature, bug, documentation, etc.)
- Suggestion is submitted to the improvement tracker
Troubleshooting
Extension Not Working
- Check if workflow is initialized: Look for
workflow.config.jsonin workspace root - Run
Workflow: Run Doctorto diagnose issues - Check Output panel → "Workflow Agent" for errors
Validation Not Triggering
- Ensure
workflowAgent.enabledistrue - Check if you're in a git repository
- Verify
workflow.config.jsonexists and is valid
Status Bar Not Showing
- Ensure
workflowAgent.showStatusBaristrue - Check if you're in a git repository
- Try reloading the window (Ctrl+R)
Development
Building
pnpm install
pnpm buildTesting
# Launch extension development host
pnpm dev
# Run in VS Code
# Press F5 to open Extension Development HostPackaging
pnpm packageCreates a .vsix file in the root directory.
License
MIT - see LICENSE
