YOGIWAY Compress for AI
One-click compression for AI assistants - Save 40-50% on tokens when using Cursor, Windsurf, ChatGPT, or any AI coding assistant!
🚀 Features
⚡ One-Click Compression
- Compress Selection - Select code, compress, paste in AI chat
- Compress File - Compress entire file with one command
- Compress All Open Files - Compress all open files at once
- Compress Project - Compress entire project structure
⌨️ Keyboard Shortcuts
Cmd+Shift+Y (Mac) / Ctrl+Shift+Y (Windows) - Compress selection
Cmd+Alt+Y (Mac) / Ctrl+Alt+Y (Windows) - Compress file
📋 Auto-Copy to Clipboard
All compressed output is automatically copied to clipboard - just paste in your AI chat!
💰 Cost Savings
Example:
- Original: 50KB code = 12,500 tokens = $0.125
- Compressed: 25KB = 6,250 tokens = $0.0625
- Savings: 50% = $0.0625 per request
For 1,000 requests/day:
- Daily savings: $62.50
- Monthly savings: $1,875
- Yearly savings: $22,500!
📖 Usage
1. Compress Selection
- Select code in editor
- Press
Cmd+Shift+Y (or right-click → "YOGIWAY: Compress Selection for AI")
- Paste in Cursor/Windsurf/ChatGPT chat
2. Compress File
- Open any file
- Press
Cmd+Alt+Y (or Command Palette → "YOGIWAY: Compress File for AI")
- Paste in AI chat
3. Compress Project
- Command Palette (
Cmd+Shift+P)
- Type "YOGIWAY: Compress Project Structure"
- Wait for compression (shows progress)
- Paste in AI chat
4. Compress All Open Files
- Command Palette (
Cmd+Shift+P)
- Type "YOGIWAY: Compress All Open Files"
- Paste in AI chat
🎯 Why YOGIWAY?
- 40-50% token reduction on average
- Ultra-compact format designed for LLM prompts
- Handles deeply nested structures efficiently
- Preserves code structure and readability
- Works with any AI assistant (Cursor, Windsurf, ChatGPT, Claude, etc.)
🔧 Requirements
📝 License
MIT
🔗 Links
🙏 Support
If you find this extension helpful, please consider:
- ⭐ Starring the repository
- 🐛 Reporting bugs
- 💡 Suggesting features
- 📢 Sharing with others
Made with ❤️ for developers who want to save on AI costs
| |