lesstokens
Spend lesstokens
Compress your codebase context for LLM prompts. Get architecture summaries, API signatures, and dependency analysis in token-efficient formats.

Quick note from developer
All the underlying tools are free MIT utilities I made independently. You do NOT need to buy this extension to use my stuff!
- archmap - Codebase architecture analysis
- peeker - Source code structure extraction
I just sell frictionlessness. This extension requires a license key to use, but you can always use the CLI tools directly for free.
Purchase a license
Features
- Full Context - Complete architecture overview of your codebase
- Quick Context - Compressed summary (~2k tokens) for fast queries
- Signatures Only - Public API surface extraction
- Change Impact - Analyze what depends on a file before modifying it
- File Structure - Extract classes, functions, and types from any file
Requirements
License Key
This extension requires a license key. On first use, you'll be prompted to enter your key or purchase one.
- Enter License Key: Use the command palette (
Ctrl+Shift+P) and run LessTokens: Enter License Key
- View License Status: Run
LessTokens: View License Status
- Deactivate License: Run
LessTokens: Deactivate License to transfer your license to another machine
This extension requires the following CLI tools. Install them with Cargo:
cargo install archmap peeker
The extension will check for these tools on startup and prompt you with the install command if they're missing.
Usage
- Open the LessTokens panel in the Activity Bar (lightning bolt icon)
- Select a context type:
- Full Context - Comprehensive codebase overview
- Quick Context - Token-limited summary for quick questions
- Signatures Only - Just the public API definitions
- Custom... - Configure tokens, format, and priority
- Copy the output to your clipboard or send directly to GitHub Copilot Chat
Right-click any file in the editor to access:
- File Structure - Analyze the current file's classes and functions
- Change Impact - See what depends on the current file
Rocket Context
Click the rocket icon in the editor title bar to generate comprehensive context and send it directly to Copilot Chat.
Extension Settings
This extension does not add any VS Code settings.
Known Issues
- Large codebases may take a few seconds to analyze
Release Notes
See CHANGELOG.md for release notes.