| Crates.io | sourcepile |
| lib.rs | sourcepile |
| version | 0.1.0 |
| created_at | 2025-07-12 02:30:52.128249+00 |
| updated_at | 2025-07-12 02:30:52.128249+00 |
| description | Flatten a folder of source files into a single annotated dump for LLMs |
| homepage | https://github.com/griffinmclennan/sourcepile |
| repository | https://github.com/griffinmclennan/sourcepile |
| max_upload_size | |
| id | 1748924 |
| size | 20,490 |
Simple cli application that allows you to quickly extract all contents of a folder or path into a single file with file name annotations for easy pasting into LLMs
Sourcepile walks your directory tree and gathers source files then writes them into one text file. Each section is annotated with its path relative to your project root so you know where each snippet came from
Install the tool globally in your system by running
cargo install sourcepile
After that you can run the tool from any folder using
sourcepile
You can also build and run locally with
cargo build
cargo run
sourcepile [path] [output] [--all] [--ignore-gitignore] [--max-lines N]
Arguments and options:
sourcepile.txt in the current folder.Gather code from a folder named src into demo.txt with a limit of five lines per file
sourcepile src demo.txt --all --ignore-gitignore --max-lines 5