A powerful desktop utility to streamline collecting, composing, and formatting file contents for Large Language Model (LLM) prompts.
File Collector is built to solve a common bottleneck in prompt engineering: manually copying and pasting code and text from multiple files. This utility provides a high-performance, native experience to let you focus on crafting the perfect prompt instead of juggling files.
- 🗂️ Effortless File Selection: Navigate your project with a fast, virtualized file tree and powerful full-text search.
- ⚙️ Smart Filtering: Automatically honors a global, user-defined list of
.gitignorepatterns to hide irrelevant files. - 💾 Context Persistence: Save and load entire sets of selected files as a "context," perfect for switching between projects or tasks.
- 🤖 Reusable System Prompts: Create, manage, and instantly prepend saved system prompts to your output.
- 📊 Real-time Token Estimation: Instantly see the estimated token count for your entire composition as you add files and write your prompt.
- 📋 One-Click Copy: A single click formats and copies the system prompt, all file contents, and your user prompt to the clipboard, ready for any LLM.
Using File Collector is a simple, three-step process:
- Select a Folder: Open your project directory. The file tree will populate, automatically filtering out ignored files.
- Choose Your Files: Use the file tree or the search panel to select the files you want to include in your context.
- Compose & Copy: Select an optional system prompt, write your user prompt, and click "Copy All". The perfectly formatted prompt is now on your clipboard.
You can download the latest version for your operating system from the GitHub Releases page.
- Windows: Download the
.msiinstaller. - macOS: Download the
.dmgdisk image. - Linux: Download the
.debor.AppImagefile.
Interested in contributing? Great! Follow these steps to get a local development environment running.
Ensure you have the necessary prerequisites for Tauri v2 development installed. Follow the official Tauri setup guide for your operating system. This includes:
- Rust and Cargo
- Node.js and npm
- Platform-specific build tools (e.g., Visual Studio C++ Build Tools on Windows, Xcode Command Line Tools on macOS).
-
Clone the repository:
git clone https://github.com/scippo97sensibleproductions/file-collector.git cd file-collector -
Install frontend dependencies:
npm install
-
Run in development mode: This starts the Vite dev server and launches the Tauri app. Hot-reloading is enabled for both the frontend and Rust backend.
npm run tauri dev
To create a native executable for your platform, run the build command:
npm run tauri buildThe installers and executables will be located in src-tauri/target/release/bundle/.
This project is open source and contributions are welcome!
- Found a bug? Please open an issue.
- Have a feature idea? We'd love to hear it! Feel free to start a discussion.
- Want to contribute code? Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
