A lightweight command-line utility that uses glob patterns to quickly search and retrieve project files, outputting their contents to the clipboard. Use this to easily paste your project files into LLMs.
Ensure you have Rust installed. Then clone the repository and install the project:
git clone https://github.com/chicoferreira/llmbundle
cd llmbundle
cargo install --path .This will install the llmbundle binary globally on your system.
llmbundle [OPTIONS] [patterns]...[patterns]: Glob patterns to match files. Patterns without a directory separator are treated as matching any file with that name (e.g.,main.rsis normalized to**/main.rs). If no glob patterns are specified, every file (that is not in.gitignore, if it exists) under the root will be matched.--root <root>: Root directory for file search (default:.).--max-depth <max_depth>: Maximum directory depth to traverse.--output <OUTPUT>: Output destination; eitherstdoutorclipboard(default: clipboard).-v, --verbose: Enable verbose logging.
Search for all files in the current directory (files in .gitignore are ignored automatically):
llmbundleFiles matched
+ Cargo.toml
+ LICENSE
+ Cargo.lock
+ README.md
+ src/main.rs
Copied 5 files to clipboard totalling 1395 lines, 3105 words and 37596 characters.Search for all Rust files in the current directory and its subdirectories:
llmbundle '*.rs'Search for a file named main.rs anywhere in the directory tree:
llmbundle 'main.rs'Search for files in the src folder that have the .rs extension:
llmbundle 'src/*.rs'Exclude files by prefixing the pattern with !:
llmbundle '*.rs' '!test.rs'This project is licensed under the MIT License.