Web App · AI Productivity
Merge Selected Project Files into One AI-Ready Text Block
Open one HTML file, choose a project folder (read locally, never uploaded), tick files, set filters, and copy one clean, labelled block of code.
JavaScriptTailwind CSSwebkitdirectorySVG sprites
Abstract
The problem
Giving AI models code context means opening and copy-pasting files one by one, including noise like imports and comments that waste the context window.
The solution
A browser app that reads a project folder locally, lets you tick files in a tree, and consolidates them with language-aware sanitisation.
The result
A perfectly formatted, AI-ready or doc-ready aggregate generated in seconds.
Input & Output
Input
- A local project folder chosen through the browser (never uploaded)
Output
- A Consolidated tab containing the merged, formatted code with a Copy button
Optional output
- Multiple consolidated tabs to compare filter settings
- Numbered files and relative-path headers
System Diagram
Select folder
webkitdirectory, local only
Explorer tree
Recursive DFS · bulk select
Smart Sanitize
Comments · imports · spacing
Merge
80-char = delimiters + headers
Consolidated tab
Copy to clipboard
How It Works
Project explorer
Recursive tree, folder-level bulk selection and automatic expansion.
Tab-based viewer
Double-click any file for a read-only preview; every run opens a new tab.
Smart Sanitize
Separate toggles for single-line, multi-line and inline comments plus import stripping.
Space optimiser
Collapses blank lines to reduce token count.
Structured output
Headers with folder, file and relative path; optional sequence numbers.
Configuration
| Option | Purpose |
|---|---|
Include Relative Path | Helps the AI understand project architecture. |
Remove Comments / Imports | Saves tokens on limited context windows. |
Excess Space Remover | Collapses multiple empty lines. |
How to Run
# Select Project Folder# Tick the related files (e.g. model, repository, controller)# Choose filters → Generate Consolidated Code → CopySource Code
Loading…
Released under the MIT license. Free to use, modify and share.
Impact & Benefits
Screenshots
Frequently Asked Questions
How do I give ChatGPT the context of many files at once?
Select the related files in the tree and generate a consolidated block with path headers, then paste it into the chat.
Are my files uploaded anywhere?
No. It uses the browser folder-selection API and processes everything locally.
Can it remove comments and imports to save tokens?
Yes. Smart Sanitize strips single-line, multi-line and inline comments, import lines and extra blank lines.
Related
Generate a Clean Folder Tree of Any Project with Python
Generates a filtered, tree-style map of any codebase for READMEs, onboarding and AI context.
Read documentationTurn HAR Files and "Copy as Fetch" into Clean API Documentation
A web utility that turns HAR files and "Copy as fetch" strings into clean, shareable API documentation.
Read documentation
