WordLink
AI optimization extension for Cursor and Windsurf that reduces LLM credit burn by generating lean, structured prompts with cost estimates.

Features
- Optimize Prompt: Generate structured, minimal prompts with cost estimates
- Model Selection: Choose from various LLM models with pricing information
- Thinking Mode: Toggle between direct implementation and planning modes
- Rules Generation: Create editor-specific rules for Cursor and Windsurf
- Live Status: Real-time cost estimates in the status bar
Commands
WordLink: Open Prompt Builder - Generate an optimized prompt with context selection
WordLink: Optimize Prompt - Generate an optimized prompt with context selection
WordLink: Toggle Thinking Mode - Switch between implementation modes
WordLink: Write Rules - Generate .cursor/rules/project.md and .windsurfrules
Usage
- Setup: Run Extension →
WordLink: Configure API Key → choose provider
- Open Builder:
WordLink: Open Prompt Builder (or Ctrl+Alt+O / Cmd+Alt+O ) → type request
- Generate: Click "Lint Locally" for offline structured prompt, or "LLM Optimize" to refine with your model
- Use: Copy and paste into Cursor/Windsurf chat
Note: No code is sent on your behalf. Costs shown are estimates based on model config.
Requirements
- VS Code 1.92.0 or higher
- Works in Cursor and Windsurf as a standard VS Code extension
- No external dependencies required
Extension Settings
This extension contributes the following settings:
wordlink.modelsConfigPath : Path to models configuration file (default: .wordlink/models.json )
wordlink.serviceBaseUrl : Base URL for WordLink service (default: http://localhost:7331 )
wordlink.hostMode : Host mode override - auto, cursor, windsurf, or vscode (default: auto )
wordlink.serviceToken : API token for WordLink service authentication
Known Issues
- Token estimation is approximate and may not match actual model tokenization
- Cost estimates are based on assumed input/output ratios
- Git integration requires git to be available in PATH
- File scanning is limited to prevent performance issues
Release Notes
See CHANGELOG.md for detailed release notes.
| |