Installation
Install Stratix Copilot to enhance your Stratix development experience with AI-powered code generation.
Prerequisites​
Before installing Stratix Copilot, ensure you have:
- VS Code 1.85.0 or higher
- GitHub Copilot subscription and extension installed
- Stratix project (or create one with
npx @stratix/cli new)
Installation Methods​
Method 1: VS Code Marketplace (Recommended)​
[!NOTE] Coming soon! The extension will be published to the VS Code Marketplace.
- Open VS Code
- Go to Extensions (
Cmd+Shift+X) - Search for "Stratix Copilot"
- Click Install
Method 2: From Source (Development)​
For development or early access:
# Clone the Stratix repository
git clone https://github.com/stratix-dev/stratix.git
cd stratix
# Install dependencies
pnpm install
# Build the extension
cd packages/copilot-rag
pnpm run compile
# Package the extension
pnpm run package
Then install the .vsix file:
- Open VS Code
Cmd+Shift+P→Extensions: Install from VSIX...- Select
stratix-copilot-*.vsix
Verify Installation​
After installation, verify Stratix Copilot is working:
-
Check Output Panel
- Open Output panel (
Cmd+Shift+U) - Select "Stratix AI Assistant" from dropdown
- You should see:
Stratix AI Assistant activating...
Knowledge base initialized with 36 documents
KB Version: 0.1.3
🎉 Stratix AI Assistant activated successfully!
- Open Output panel (
-
Test in Copilot Chat
- Open Copilot Chat (
Cmd+Shift+I) - Type
@stratix hello - You should get a response about Stratix
- Open Copilot Chat (
-
Check Commands
Cmd+Shift+P→ Type "Stratix"- You should see:
Stratix: Open AI AssistantStratix: Rebuild Knowledge BaseStratix: Show Knowledge Base Info
First-Time Setup​
1. Initialize Knowledge Base​
The first time you use Stratix Copilot, it will:
- Download the embedding model (~90MB)
- Generate embeddings for 36 documents
- Save to local storage for fast future loads
This takes 1-2 minutes on first run. Subsequent loads are instant.
2. Configure (Optional)​
Stratix Copilot works out of the box, but you can customize:
VS Code Settings (settings.json):
{
"stratix.copilot.enabled": true,
"stratix.copilot.autoUpdate": true
}
Troubleshooting​
Extension Not Activating​
Problem: Extension doesn't appear in Output panel
Solution:
- Check VS Code version:
Code → About Visual Studio Code - Ensure GitHub Copilot is installed and activated
- Reload window:
Cmd+Shift+P→Developer: Reload Window
Knowledge Base Not Loading​
Problem: Shows "0 documents" or errors in Output
Solution:
# Rebuild knowledge base
Cmd+Shift+P → "Stratix: Rebuild Knowledge Base"
Slow First Load​
Problem: Takes long time on first activation
Expected: First load downloads embedding model (~90MB) and generates embeddings. This is normal and only happens once.
Solution: Wait for completion. Subsequent loads will be instant.
Chat Not Responding​
Problem: @stratix doesn't work in Copilot Chat
Solution:
- Verify GitHub Copilot is active
- Check Output panel for errors
- Try reloading window
- Ensure you're using
@stratix(with @)
Updating​
Automatic Updates (Marketplace)​
When published to Marketplace, VS Code will auto-update the extension.
Manual Updates (From Source)​
cd stratix/packages/copilot-rag
git pull
pnpm run compile
pnpm run package
# Install new .vsix file
Update Knowledge Base​
The knowledge base auto-updates, but you can manually update:
Cmd+Shift+P → "Stratix: Rebuild Knowledge Base"
Uninstallation​
To remove Stratix Copilot:
- Open Extensions (
Cmd+Shift+X) - Find "Stratix Copilot"
- Click Uninstall
This removes:
- Extension files
- Knowledge base storage
- All settings
Next Steps​
- Usage Guide - Learn how to use Stratix Copilot
- Commands Reference - Complete command list
- Examples - Real-world usage examples