Build, compress, and copy multi-file prompts with per-model token budgets, import-aware file suggestions, saved presets, and reusable prompt templates; for Claude, GPT-4, Gemini, and more
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Assemble, compress, and copy multi-file prompts with a live token budget for any model.
Instead of pasting files into a chat window and guessing whether you fit under the context limit, Token Budget Builder lets you pick the files that matter, compress them locally, and copy a clean formatted prompt to the clipboard in one click. No API keys. Everything runs locally.
How to Use
Open the Context Compressor panel in the Activity Bar.
In Context Files, add files via the toolbar or by right-clicking in the Explorer.
Check or uncheck files to include or exclude them. The token budget updates in real time.
In Build Prompt, click Model or Compression to adjust settings, then click Copy Prompt to assemble and copy.
To count tokens in a file or folder without adding it to context, right-click in the Explorer and choose Count Tokens in Selection.
Compression Modes
Mode
What it removes
None
nothing
Strip Comments
Line and block comments (JS/TS/Python/Go/Rust/C)
Collapse Whitespace
Blank lines and trailing spaces
Signatures Only
Function and class bodies; keeps signatures and docstrings