#llm #cli #concatenation #single #prompt #directory #full

app proompt

Concatenate a directory full of files into a single prompt for use with LLMs

1 unstable release

new 0.1.0 Jan 13, 2025

#695 in Command line utilities

Download history 82/week @ 2025-01-12

82 downloads per month

MIT license

10KB
106 lines

proompt

proompt is a small CLI utility designed to concatenate the contents of files within specified directories into a single prompt. It supports various options for customizing file processing, including handling hidden files, ignoring specific patterns, and managing different file extensions.

Installation

cargo install proompt

Help

/proompt --help
Concatenate a directory full of files into a single prompt for use with LLMs

Usage: proompt [OPTIONS] [PATHS]...

Arguments:
  [PATHS]...  Paths to files or directories to process

Options:
  -e, --extension <EXTENSION>  Only include files with the specified extensions
      --include-hidden         Include hidden files and directories
      --ignore-gitignore       Ignore .gitignore files
      --ignore <PATTERN>       Patterns to ignore
  -o, --output <FILE>          Write output to a file
  -h, --help                   Print help
  -V, --version                Print version

Example Usage

Copy full repo:

proompt . | pbcopy

Exclude tests dir:

proompt --ignore tests/* . | pbcopy

Dependencies

~5–13MB
~153K SLoC