Free AI token reducer for GitHub Copilot, Codex and ChatGPT.
This extension connects VS Code to the free VacuumPrompts app for Windows.
The app trims wasted tokens from your prompts and redacts secrets before they leave your PC.
The extension lets you do the same with any text you select in the editor, and shows whether the app is running.
You need the VacuumPrompts app. The extension does no optimizing of its own: it sends your selection to the
app running on your computer. Download VacuumPrompts for Windows (free).
What it does
Status bar:VacuumPrompts: on, off, paused or not installed. Click it to open the app, start it, or get the download link.
VacuumPrompts: Optimize Selection corrects and compresses the selected prompt.
VacuumPrompts: Correct Wording fixes spelling and wording only. Hindi and Hinglish are kept as written.
VacuumPrompts: Copy Accepted Prompt copies the last prompt you accepted.
VacuumPrompts: Open Requests View opens the app on its Requests page, where every Copilot, Codex and ChatGPT request it handled is listed with its token count.
Optimize Selection and Correct Wording are also on the editor's right-click menu when text is selected.
Review before you copy
Nothing changes without your say-so:
Select a prompt and run Optimize Selection or Correct Wording.
Pick a target profile, language and format.
VS Code opens a read-only diff of your text and the app's version, with the token counts before and after.
Choose Accept, Accept and Copy or Reject.
Only an accepted preview can be copied. Editing a document, changing settings or starting a new review clears it.
The extension never edits your files and never sends anything to Copilot Chat itself: pasting is up to you.
Token counts describe the selected text, not Copilot's full request or your bill.
Privacy
The extension talks only to the VacuumPrompts app on 127.0.0.1 (port 4318). It makes no other network requests and sends no telemetry.
It reads the app's local access key from %LOCALAPPDATA%\VacuumPrompts\config, so only programs running as you can use it.
Secrets the app recognises (API keys, passwords, emails, phone numbers) are replaced with placeholders in its version, so the text you copy leaves them out.
Previews live in memory only and are gone when VS Code closes.