Tired of Manually Copying Code? PasteMax Streamlines Code Snippets for ChatGPT & LLMs
Struggling to get your Large Language Models (LLMs) like ChatGPT to understand your code? PasteMax is a modern file viewer application designed to help developers easily navigate, search, and copy code for pasting into AI tools. It's built with Electron, React, and TypeScript, making it a robust and efficient solution for managing code snippets for your LLM prompts.
Effortless File Navigation for AI Prompting
- File Tree Navigation: Quickly browse directories and files with PasteMax's intuitive expandable tree view. No more digging through endless folders.
- Search Capabilities: Instantly find specific files by name or content, saving you valuable time. Stop wasting cycles manually searching for the right code snippet. PasteMax helps you get to right code faster.
Optimize Your Prompts: Token Counting & Smart Exclusion
- Token Counting: See the approximate token count for each file, helping you stay within LLM context limits and optimize your prompts. This is crucial for efficient communication with models like ChatGPT.
- Smart File Exclusion: PasteMax automatically excludes unnecessary files like
package-lock.json
and binary files, cleaning up your code snippets for better LLM understanding. Maximize the impact and effectiveness of your valuable tokens.
Streamline Your Workflow with Selection & Sorting
- Selection Management: Select multiple files and copy their contents together in one go, simplifying the process of creating comprehensive prompts. Build context for your LLM with ease.
- Sorting Options: Sort files by name, size, or token count, giving you control over how you organize and present code to your LLMs.
Installation: Get Started with PasteMax Today
Download Binary:
Grab the latest version from the releases page.
Build from Source:
Want to customize things? Here's how to build PasteMax yourself:
- Clone the repository:
- Install dependencies:
- Build the app:
npm run package
, try the platform-specific command.
Note for Windows users: If you encounter issues with
After a successful build, find the executable files in the release-builds
directory. You'll see both an installer and a portable version.
Key Features for LLM Integration
PasteMax is designed specifically for developers working with LLMs. These features make it a must-have tool:
- Binary File Detection: Automatically excludes binary files, preventing garbled text in your prompts and saving valuable tokens.
- Dark Mode: Toggle between light and dark themes for comfortable viewing in any environment, reducing eye strain during long coding sessions.
Customize File Exclusion for Optimal Results
You can customize which files are excluded by default by editing the excluded-files.js
file. You also exclude more specific files with more complex naming conventions. See the excluded files documentation for more details. This enables you to fine-tune PasteMax to your specific project needs.
Troubleshooting Common Issues
Encountering problems? Here's a quick guide to resolving common issues:
-
"Cannot find module 'ignore'" error: Run the dependency fixer script and rebuild the application:
-
Build Command Issues: Try using the platform-specific build command:
- Windows:
npm run package:win
- macOS:
npm run package:mac
- Linux:
npm run package:linux
- Windows:
Check the release-builds
directory for output files after building.
PasteMax: The Essential Tool for LLM-Powered Development
PasteMax simplifies the process of preparing code snippets for LLMs like ChatGPT, saving you time and improving the quality of your prompts. Download PasteMax today and experience a more efficient way to work with code and AI! Contribute to the project on GitHub and help shape the future of LLM-integrated development.