Combine files & folders into a clean, AI-ready text bundle — powered by Flutter and Monaco Editor.
Context Collector is a lightweight desktop app (macOS • Windows) that lets you drag-and-drop source files, logs, configurations, or entire directories and outputs a neatly annotated document. Every chunk includes full file paths and metadata, making it ideal for working smoothly with AIs and LLMs without the hassle of manual copying and pasting.
Platform | Status | Requirements |
---|---|---|
macOS | ✅ Fully Supported | macOS 10.13 or later |
Windows | ✅ Fully Supported | Windows 10/11 with WebView2 Runtime |
Note for Windows users: The app will prompt you to install WebView2 Runtime if it's not already installed. This is required for the Monaco editor integration.
- Drag & drop files or directories onto the drop zone.
- Toggle files to include/exclude from your combined context.
- Review & edit the assembled content inside the Monaco editor.
- Copy your merged content instantly.
Tip: Head to Settings → Extensions to exclude noisy logs or add specialized formats (
.bert
,.fish
, etc.).
Capability | What it means for you |
---|---|
Drag‑and‑drop everything | Drop individual files or entire directories; nested files are discovered automatically. |
250+ extensions supported | Built‑in support for code, logs, configs, docs, data & more — easily add your own custom extensions. |
Monaco editor inside Flutter | Enjoy syntax highlighting, multi‑cursor editing, Vim/IntelliJ/VS Code keybindings, themes, and word-wrap. |
Live statistics | Line, character, cursor, and selection counts update in real-time—ideal for managing prompt token budgets. |
Quick copy | Copy merged context to clipboard with one click. |
Extensible APIs | Integrate the toolkit into your Flutter apps or automate assembly using Dart scripts. |
- Go to Releases and download the latest:
- macOS:
.dmg
file - Windows:
.exe
installer
- macOS:
- Install and run—zero setup required.
git clone https://github.com/omar-hanafy/context_collector.git
cd context_collector
flutter pub get
# Enable desktop support if not already enabled
flutter config --enable-macos-desktop --enable-windows-desktop
# Run or build
flutter run # or flutter build macos / windows
- Editor presets: Beginner, Developer, Power User, Accessibility.
- Keybinding presets: VS Code (default), IntelliJ/WebStorm, Vim, Emacs—or load your custom JSON map.
- Theme support: Comes bundled with VS Light/Dark, One Dark Pro, and HC Black. Easily import additional VS Code themes.
- Customizable extension catalog: Quickly enable or disable formats or add custom file-to-category mappings.
Editor specific settings and theme selection.
Problem | Context Collector's solution |
---|---|
"ChatGPT keeps asking 'where's that widget defined?'" | Bundles related Dart, Swift, HTML, etc., files into one cohesive, prompt-ready bundle. |
"Sharing repro steps means pasting multiple logs." | Drag your entire logs directory; text files merge automatically and binaries are skipped. |
"Losing track of copied files." | Path headers and file-size indicators clearly organize your context. |
"Long prompts blow up my token budget." | Quickly toggle files on/off or collapse content to control token usage. |
Application | Limitation | Workaround |
---|---|---|
JetBrains IDEs | Multi-file selection only drops the first file | Drop files one at a time or use finder/explorer |
VS Code | Dropped files show only the filename | The full content is still processed correctly |
- ✅
Add Windows support.Done! - 📟
Export as file.Done! 📂 Add tree view.Done!- 🗂️ Import from GitHub repos.
- 🌐 Add web support.
- 🤖 AI summarization of context.
Have an idea? Open an issue or join our Discord!
Contributions are welcome! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.
If you find this project helpful or valuable, please consider supporting its development:
Your support helps maintain and improve Context Collector. Thank you!
Context Collector is open-source software licensed under the MIT License—see LICENSE. © 2025 Omar Hanafy & community contributors.
Context Collector is built with:
- Flutter & Dart - The cross-platform framework powering this app
- Monaco Editor - Microsoft's powerful code editor integrated via webview
- Open Source Community - Special thanks to all contributors and the maintainers of our dependencies
📦 For a complete list of dependencies, see
pubspec.yaml
A heartfelt thank you to everyone who stars the repository, contributes code, reports issues, or offers feedback. Your support is invaluable! ❤️