Crates.io | feedyourai |
lib.rs | feedyourai |
version | |
source | src |
created_at | 2025-03-30 11:35:56.136967+00 |
updated_at | 2025-04-25 21:53:57.704931+00 |
description | A tool to combine text files for AI processing with filtering options. |
homepage | |
repository | |
max_upload_size | |
id | 1612294 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A command-line tool to combine files from a directory into a single file for AI processing, with flexible filtering options.
.txt
, .md
)cargo install feedyourai
Or,
cargo install --git https://github.com/alexandretrotel/feedyourai.git
This installs the fyai
binary to ~/.cargo/bin/
. Ensure this directory is in your PATH
.
Run fyai
in your terminal to combine files:
fyai
feedyourai.txt
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 exclude (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
Combine .txt
and .md
files from a specific directory:
fyai -d ./docs -e txt,md
Include all files (no size minimum) up to 1MB:
fyai -n 0 -m 1048576
Custom output file with files between 10KB and 500KB:
fyai -n 10240 -m 512000 -o ai_input.txt
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]
Contributions are welcome! Please:
This project is licensed under the MIT License - see the LICENSE file for details.