|
|
|
Show HN: Cumul – Concatenate all files in a directory for LLMs
(github.com)
|
|
3 points
by caeser
301 days ago
|
|
Cumul is a lightweight CLI tool that concatenates text files in a directory into a single file, optimized for providing context to Large Language Models (LLMs). It respects .gitignore, filters out binaries and non-text files, adds path headers, and generates a summary report. Key features: Exclude patterns via options (e.g., -e .json,.md).
Custom output prefix (e.g., -p my).
Built in Zig for efficiency. Install via: curl -fsSL https://raw.githubusercontent.com/xcaeser/cm/main/install.sh | bash Usage: cm [directory] outputs <directory-name>-cumul.txt. Developed to streamline LLM workflows in development. Feedback welcome. |
|