Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Promptrix - AI Prompt OptimizerNew to Visual Studio Code? Get it now.
Promptrix - AI Prompt Optimizer

Promptrix - AI Prompt Optimizer

promptrix

|
1 install
| (0) | Free
Optimize AI prompts with Claude-powered enhancements directly in VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Install from VSCode Marketplace (coming soon)
  2. Or install manually from .vsix file: code --install-extension promptrix-vscode-0.1.0.vsix

Setup

  1. Open Command Palette (Cmd+Shift+P or Ctrl+Shift+P)
  2. Run Promptrix: Configure API Key
  3. Enter your Promptrix API key (get one at promptrix.co)

Usage

Optimize Selected Text

  1. Select text in your editor
  2. Right-click and choose "Optimize with Promptrix"
  3. Or use keyboard shortcut: Cmd+Shift+O (Mac) or Ctrl+Shift+O (Windows/Linux)
  4. Choose what to do with the result (replace, diff, copy, or open in new file)

Optimize Custom Prompt

  1. Open Command Palette
  2. Run Promptrix: Optimize Prompt
  3. Enter your prompt
  4. View the optimized result

Choose Specific Method

  1. Open Command Palette
  2. Run Promptrix: Optimize with Method
  3. Select optimization method
  4. Enter or use selected text

Compare Multiple Methods

  1. Open Command Palette
  2. Run Promptrix: Compare Optimization Methods
  3. Select 2-4 methods to compare
  4. Enter your prompt or use selected text
  5. View side-by-side comparison in a webview panel
  6. 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

  • VSCode 1.85.0 or higher
  • Promptrix API key (sign up at promptrix.co)
  • Node.js 18.0.0 or higher (for development)

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

  • Documentation
  • GitHub Issues
  • Discord Community

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!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft