VS Code Extension¶
The PAW VS Code extension automates workflow initialization and provides quick access to workflow status. This guide covers the extension's features, commands, and configuration options.
Commands¶
PAW: New PAW Workflow¶
Creates a complete PAW workflow structure with all necessary files and directories.
How to use:
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Type "PAW: New PAW Workflow"
- Follow the prompts:
- Issue URL (optional): GitHub Issue or Azure DevOps Work Item URL
- Branch name (optional): Target branch name, or auto-derive from issue
- Workflow mode: Full, Minimal, or Custom
- Review strategy: PRs or Local (Minimal enforces Local)
- Review policy: Every Stage, Milestones, Planning-Only, or Final PR Only
- Artifact lifecycle: Commit & Clean (default), Commit & Persist, or Never Commit
What gets created:
The extension:
- Normalizes your branch name into a valid feature slug
- Handles slug conflicts (prompts for alternatives if directory exists)
- Creates and checks out the target branch
- Opens
WorkflowContext.mdfor review
PAW: Get Work Status¶
Provides a comprehensive status report of your current workflow progress.
How to use:
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Type "PAW: Get Work Status"
- Select from:
- Auto-detect from context: Uses current file or git branch
- Specific work item: Choose from list sorted by most recent activity
What you get:
The Status Agent analyzes your workflow and reports:
- Completed artifacts (Spec.md, ImplementationPlan.md, etc.)
- Current phase progress in implementation
- Git branch status and divergence from target
- PR states with review comment analysis (if PRs strategy)
- Actionable next steps
PAW: Stop Tracking Artifacts¶
Switches a workflow's artifact lifecycle to never-commit, removing artifacts from git while keeping local copies. This is a mid-workflow escape hatch—note that commit-and-clean workflows handle cleanup automatically at PR time.
How to use:
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Type "PAW: Stop Tracking Artifacts"
- Select your work item from the list
- An agent session opens and executes the git commands
What happens:
- Artifacts are untracked from git index (files remain locally)
- A
.gitignorefile is created in the workflow directory - WorkflowContext.md
Artifact Lifecyclefield is updated tonever-commit - Future commits won't include workflow artifacts
When to use:
- Contributing to non-PAW repositories where artifacts may be unwanted
- Small changes where artifact overhead is disproportionate
- Mid-workflow decision to switch from
commit-and-persistto local-only
Cleanup recipe: To remove old .paw/work/ directories from main after merging commit-and-persist workflows:
⚠️ This permanently deletes
.paw/work/files from both git history and your local filesystem.
Configuration¶
Custom Prompts Directory¶
By default, PAW installs agents to the VS Code-standard prompts directory for your platform:
- Windows:
%APPDATA%\Code\User\prompts\ - macOS:
~/Library/Application Support/Code/User/prompts/ - Linux:
~/.config/Code/User/prompts/
To use a custom location, set the paw.promptDirectory setting:
VS Code Variants
PAW automatically detects VS Code variants (Insiders, Code-OSS, VSCodium) and uses their appropriate configuration directories.
Output Channel¶
For detailed logging during workflow operations, check the PAW Workflow output channel:
- Open Output panel (
Ctrl+Shift+U/Cmd+Shift+U) - Select PAW Workflow from the dropdown
This is useful for:
- Troubleshooting initialization issues
- Seeing detailed progress during agent operations
Agent Installation¶
When you install the PAW extension, all PAW agents are automatically installed to your VS Code prompts directory. The extension handles:
- Fresh installations: All agents installed on first activation
- Upgrades: Old agents removed, new agents installed
- Downgrades: Version detection ensures correct agents for extension version
- Repairs: Missing agent files are automatically restored
Agent Discovery
After installation, you may need to reload VS Code for GitHub Copilot to discover the new agents. If agents don't appear in Copilot Chat, try reloading the window (Ctrl+Shift+P → "Developer: Reload Window").
Troubleshooting¶
Extension Not Loading¶
If PAW commands don't appear in Command Palette:
- Check the Extensions panel for installation status
- Look for errors in the PAW Workflow output channel
- Try reloading VS Code
Agents Not Appearing in Copilot¶
If PAW agents don't show up in GitHub Copilot Chat:
- Verify agents were installed: Check your prompts directory for
*.agent.mdfiles - Reload VS Code:
Ctrl+Shift+P→ "Developer: Reload Window" - Check Copilot is active and signed in
Initialization Failures¶
If workflow initialization fails:
- Ensure you're in a git repository
- Check for uncommitted changes that might block branch creation
- Review the PAW Workflow output channel for detailed errors
- Verify disk permissions for the
.paw/directory
WSL (Windows Subsystem for Linux)¶
When using VS Code with WSL:
- Prompts directory: The extension resolves the Windows-side path automatically (
/mnt/c/Users/<username>/AppData/Roaming/Code/User/prompts/) - File permissions: Ensure the WSL user has write access to the Windows prompts directory
- Git operations: Git runs in the WSL environment; ensure git is installed in WSL
If agents aren't found, verify the prompts directory exists: