Rapid Project File Concatenation for LLM Comprehension
quick-cat.py
is a versatile Python script designed to simplify project understanding by concatenating multiple files into a single, well-formatted markdown document. It's specifically crafted to help Large Language Models (LLMs) and collaborators quickly grasp the structure and content of a project.
-
📂 Comprehensive Directory Mapping
- Generates a visual representation of project structure
- Supports recursive file discovery
- Intelligent file and directory exclusion
-
🔍 Intelligent File Parsing
- Supports multiple programming languages
- Automatic syntax highlighting
- Filters out non-text and system files
-
📋 Flexible Output Options
- Optional file output
- Optional clipboard integration
- Cross-platform support (Linux, macOS, Windows)
- Wayland and X11 compatibility
- Python 3.9+
- Click library (
pip install click
) - Optional clipboard utilities:
- Linux:
xclip
orwl-copy
- macOS: Built-in
pbcopy
- Windows: Built-in
clip
- Linux:
python -m pip install quick-cat
# Print to console and optionally copy to clipboard
python quick-cat.py app.py source static/js/script.js
# Save to a specific output file
python quick-cat.py app.py config.py -o project_summary.md
# Automatically copy to clipboard
python quick-cat.py app.py config.py --copy
# Specify output file and copy to clipboard
python quick-cat.py app.py config.py -o project_summary.md --copy
# Exclude specific file patterns
python quick-cat.py . --exclude "*.pyc" --exclude ".git/*"
paths
: One or more files or directories to concatenate-o, --output
: Optional output filename (will not save file by default)--copy/--no-copy
: Automatically copy output to clipboard--exclude
: Patterns to exclude from file search
- Filters out large binary files
- Skips system and version control directories
- Optimized for quick project overview generation
- Ensure all required dependencies are installed
- Check file and directory permissions
- Verify clipboard utility installation on Linux
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
Apache 2.0 License - See LICENSE for details