A command-line tool to concatenate project contents into a single output, made for sharing context with AI assistants.
- Directory tree structure generation
- Text file content concatenation
- Flexible output: clipboard, file, or shell
.pconcatignore
file support- Command to generate standard
.pconcatignore
- Single file reading support
- Install Python 3.6+
- Clone repository
- Make executable:
chmod +x /path/to/pconcat
- Add to PATH:
sudo mv /path/to/pconcat /usr/local/bin/
- Install dependencies:
pip install pyperclip
pconcat [options] [-t TARGET]
-t
,--target
: Target directory/file (default: current directory)-f
,--file
: Output to file-s
,--shell
: Print to shell-i
,--init
: Create.pconcatignore
--no_filename
: Exclude filenames--no_tree
: Exclude directory tree--no_contents
: Exclude file contents
# Copy to clipboard
pconcat
# Output to file
pconcat -f output.txt
# Print to shell
pconcat -s
# Create .pconcatignore
pconcat -i
- Python 3.6+
- pyperclip
MIT License
Scezaquer - @Scezaquer