LeanPromptWrite better AI prompts from inside VS Code. Stop burning tokens.
WhyWhen you paste raw code into Claude or ChatGPT, you get raw answers. Long chats hit token limits. Vague prompts waste context. You start over and explain everything again. LeanPrompt fixes the workflow — not the AI. How It WorksStep 1 — Pick what you need
Step 2 — Extract your codeClick Extract from Editor — pulls your active file directly. Supports 2 files simultaneously. Large files are truncated at logical boundaries (not mid-function), with a token estimate shown per file. Step 3 — Add error or outputPaste your error message or wrong output. LeanPrompt includes it in the prompt with the right framing for the mode you picked. Step 4 — Add your hypothesis (optional)What do you think is going wrong? Even one sentence here makes AI responses noticeably better. Generate → Copy → PasteHit Generate Prompt. Copy it. Paste into Claude, ChatGPT, or Gemini. FeaturesToken Meter — live estimate as you build, color-coded green → yellow → red. Warns before you hit limits and suggests what to trim. Follow-up detection — if you're continuing the same problem, LeanPrompt generates a shorter prompt that skips repeated context. Session Handoff — when a chat gets too long, generate a compact summary (under 200 words) to paste into a fresh chat. Resets your counter automatically. Chat counter — tracks how many prompts you've sent this session. Turns yellow at 15, red at 20, with a reminder to hand off. Model toggle — click the badge to switch between Sonnet (fast, efficient, recommended) and Opus (higher quality, slower). Opus warning is shown. Open AI directly — buttons to open Claude, ChatGPT, or Gemini in your browser without leaving VS Code. Session persistence — chat count and prompt number survive VS Code restarts. InstallationVS Code MarketplaceSearch LeanPrompt in the Extensions panel ( Manual
Extensions → Keyboard Shortcut
PrivacyRuns entirely inside VS Code. No data leaves your machine. No telemetry, no API calls, no tracking. Roadmap
LicenseMIT AboutStarted as a personal tool to stop wasting Claude tokens while learning RTL and FPGA design. Built by an ECE student using TypeScript + VS Code Extension API. |