Promptrix for VSCode
Optimize your AI prompts directly in Visual Studio Code with Claude-powered enhancements.
Features
- 🚀 Quick Optimization: Optimize prompts with a single command or right-click context menu
- 🎯 Method Selection: Choose from multiple optimization methods (Chain-of-Thought, Role-Based, Few-Shot, etc.)
- 📊 Usage Tracking: Monitor your API usage with a status bar indicator
- 🔄 Streaming Support: See optimization progress in real-time
- 📝 Diff View: Compare original and optimized prompts side-by-side
- 📚 History: Track your optimization history locally
- ⚡ Keyboard Shortcuts: Fast access with customizable keybindings
Installation
- Install from VSCode Marketplace (coming soon)
- Or install manually from
.vsix file: code --install-extension promptrix-vscode-0.1.0.vsix
Setup
- Open Command Palette (
Cmd+Shift+P or Ctrl+Shift+P)
- Run
Promptrix: Configure API Key
- Enter your Promptrix API key (get one at promptrix.co)
Usage
Optimize Selected Text
- Select text in your editor
- Right-click and choose "Optimize with Promptrix"
- Or use keyboard shortcut:
Cmd+Shift+O (Mac) or Ctrl+Shift+O (Windows/Linux)
- Choose what to do with the result (replace, diff, copy, or open in new file)
Optimize Custom Prompt
- Open Command Palette
- Run
Promptrix: Optimize Prompt
- Enter your prompt
- View the optimized result
Choose Specific Method
- Open Command Palette
- Run
Promptrix: Optimize with Method
- Select optimization method
- Enter or use selected text
Compare Multiple Methods
- Open Command Palette
- Run
Promptrix: Compare Optimization Methods
- Select 2-4 methods to compare
- Enter your prompt or use selected text
- View side-by-side comparison in a webview panel
- Click "Use This" on your preferred result
The comparison panel shows:
- Original prompt at the top
- Side-by-side cards for each method
- Word count and expansion/reduction metrics
- Interactive buttons to use, copy, or open each result
- Responsive grid layout (adapts to screen size)
View Available Methods
- Run
Promptrix: Show Available Methods to see all optimization methods
- Methods are grouped by subscription tier (Free, Pro, Business)
Check Usage
- Click the Promptrix icon in the status bar
- Or run
Promptrix: Show Usage Stats
Commands
Promptrix: Optimize Prompt - Optimize a custom prompt
Promptrix: Optimize Selected Text - Optimize selected text
Promptrix: Optimize with Method - Choose specific optimization method
Promptrix: Compare Optimization Methods - Compare 2-4 methods side-by-side
Promptrix: Configure API Key - Set up or change API key
Promptrix: Show Available Methods - List all optimization methods
Promptrix: Show Usage Stats - View API usage statistics
Configuration
Configure extension behavior in VSCode settings:
{
"promptrix.apiUrl": "https://api.promptrix.co",
"promptrix.defaultMethod": "auto",
"promptrix.showDiff": true,
"promptrix.autoOptimize": false,
"promptrix.streamingEnabled": true
}
Settings
promptrix.apiUrl: API server URL (default: https://api.promptrix.co)
promptrix.defaultMethod: Default optimization method (default: auto)
promptrix.showDiff: Show before/after diff view (default: true)
promptrix.autoOptimize: Auto-optimize prompts in .prompt files (default: false)
promptrix.streamingEnabled: Enable real-time streaming (default: true)
Keyboard Shortcuts
Cmd+Shift+O (Mac) / Ctrl+Shift+O (Windows/Linux) - Optimize selected text
You can customize shortcuts in VSCode Keyboard Shortcuts settings.
Requirements
Privacy
- API keys are stored securely in VSCode's encrypted secret storage
- Optimization history is stored locally on your machine
- No data is sent to Promptrix servers except for optimization requests
Support
License
MIT License - see LICENSE file for details
About Promptrix
Promptrix helps you write better AI prompts using advanced optimization techniques powered by Claude. Learn more at promptrix.co.
Enjoying Promptrix? Please leave a review on the VSCode Marketplace!
| |