Show HN: Cumul – Concatenate all files in a directory for LLMs

1 caeser 0 8/29/2025, 9:58:14 AM github.com ↗
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.

Comments (0)

No comments yet