SlimPrompt
A VS Code extension that intercepts OpenRouter requests from coding agents (Cline, Continue.dev, Roo Code) and displays them for analysis.
Features
- 🚀 Automatic Detection: Detects installed coding agents (Cline, Continue.dev, Roo Code)
- 🔧 Auto-Configuration: Automatically configures agents to route through local proxy
- 📡 Request Interception: Intercepts all OpenRouter API requests
- 📊 Request Logging: Displays intercepted requests in VS Code output channel
How It Works
- Extension starts a local HTTP proxy server on
localhost:8545
- Detects installed coding agents (Cline, Continue.dev, Roo Code)
- Prompts user to enable optimization
- Modifies agent settings to point to local proxy
- Proxy intercepts requests, logs them, and forwards to OpenRouter
Installation
- Clone this repository
- Run
npm install
- Run
npm run compile
- Press F5 to launch extension in a new VS Code window
Usage
- Install the extension
- Extension will automatically detect coding agents on startup
- When prompted, click "Yes" to enable request interception
- Use your coding agent normally - all OpenRouter requests will be intercepted
- View intercepted requests in the "SlimPrompt Intercepted" output channel
Supported Agents
- Cline: Automatically configures
cline.baseUrl and cline.apiProvider
- Continue.dev: Modifies
~/.continue/config.json
- Roo Code: Configures
roo.openRouterBaseUrl
Development
npm install
npm run compile
npm run watch # For development with auto-compilation
License
MIT
| |