VS Code Extensions
T

TokenLean - Prompt Compressor

by TokenLean

Compress your prompts. Cut your token bill. Say less. Get more.

Downloads

1

Rating

(0)

Version

1.1.3

Last updated

Jul 05, 2026

Compress your AI prompts directly inside VS Code — before sending to GitHub Copilot, ChatGPT, Claude, or any LLM.

Why

Every word you send to an AI costs tokens. Long prompts = slow replies + higher API bills. TokenLean strips bloated words, filler phrases, and verbose patterns — same meaning, fewer tokens.

Commands

Command Shortcut Action
Compress Prompt Cmd+Shift+L Compress selected text
Compress + Directives Cmd+Shift+Alt+L Compress + add output rules
Add Custom Swap Command Palette Add your own word swap
View / Manage Swaps Command Palette See and delete your swaps
Refresh Swaps Command Palette Pull latest swaps from cloud

How to use

  1. Select any prompt text in the editor
  2. Press Cmd+Shift+L or right-click → TokenLean: Compress Prompt
  3. Choose Replace or Copy to Clipboard
  4. Paste into Copilot Chat or any AI tool

What it compresses

Word swaps (70+ built-in)

  • implementationbuild
  • authenticationauth
  • documentationdocs
  • utilizeuse
  • currentlynow
  • sufficientenough

Phrase stripping

  • Could you please → removed
  • I would like to knowtell me
  • Due to the fact thatbecause
  • In order toto

Output directives Tell the LLM exactly how to reply — format, length, no fluff.

Personal dictionary

Add your own domain-specific swaps via TokenLean: Add Custom Swap. Stored locally in VS Code. Applies automatically on every compression.

Privacy

All compression runs locally. No data sent to any server except fetching the shared swap list from Supabase (read-only, anonymous).

Related extensions