simonw/files-to-prompt
A Python CLI tool that concatenates files and directories into formatted prompts for use with large language models.

Velocity · 7d
+3.4
★ / day
Trend
→steady
star history
This command-line utility reads one or more files or directories and outputs their contents in a format suitable for pasting into LLM prompts. Each file is prefixed with its relative path and files are separated by delimiters. The tool supports filtering by file extension, including or excluding hidden files, and ignoring patterns using fnmatch syntax. It was built using Claude 3 Opus as documented by the author.