feedyourai-1.2.2 is not a library.
Visit the last successful build:
feedyourai-2.0.2
FeedYourAI
A command-line tool to combine text files from a directory into a single file for AI processing, with flexible filtering options.
Features
- Combines multiple text files into one output file
- Filters files by:
- Size
- File extensions (e.g.,
.txt,.md) - Custom minimum and maximum size limits
- Preserves file boundaries with headers showing filename and size
- Customizable input directory and output file
Installation
Prerequisites
- Rust (latest stable version recommended)
Install via Cargo
Or, clone and install locally:
This installs the feedyourai binary to ~/.cargo/bin/. Ensure this directory is in your PATH.
Usage
Run fyai in your terminal to combine files:
Basic Usage
- Combines all files ≥ 50KB from the current directory into
feedyourai.txt
Options
USAGE:
fyai [OPTIONS]
OPTIONS:
-d, --dir <DIR> Sets the input directory [default: .]
-o, --output <FILE> Sets the output file [default: feedyourai.txt]
-e, --ext <EXT> Comma-separated list of file extensions to include (e.g., txt,md)
-n, --min-size <BYTES> Exclude files smaller than this size in bytes (default: 51200)
-m, --max-size <BYTES> Exclude files larger than this size in bytes
-h, --help Print help information
-V, --version Print version information
Examples
-
Combine
.txtand.mdfiles from a specific directory: -
Include all files (no size minimum) up to 1MB:
-
Custom output file with files between 10KB and 500KB:
Output Format
The combined file includes headers for each source file:
=== File: example.txt (12345 bytes) ===
[contents of example.txt]
=== File: notes.md (67890 bytes) ===
[contents of notes.md]
Building from Source
-
Clone the repository:
-
Build the project:
-
Run it directly:
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.