| Crates.io | toai |
| lib.rs | toai |
| version | 0.1.0 |
| created_at | 2025-09-12 23:38:55.622004+00 |
| updated_at | 2025-09-12 23:38:55.622004+00 |
| description | Simple path crawler, that copies all SRC files into a singe output to send it to a ai (toai) |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1837091 |
| size | 19,569 |
toai is a tiny Rust CLI that dumps a folder into an AI-friendly text format.
Each file is printed with its relative path header, followed by its contents.
Example of the output format:
-- file content here --
-- file content here --
By default, toai skips heavy folders (node_modules, target, .git, …) and common binary/cache files via glob patterns.
From source:
or
toai [OPTIONS]
Common examples:
Dump current directory to a file
toai --path . --output output.txt
Dump a specific folder
toai --path ./my-project --output ./dump.txt
Print to stdout (no file)
toai --path .
Add custom ignores (repeatable, supports globs)
toai --path . --output out.txt --ignore somefolder --ignore ".png" --ignore ".log"
Disable default ignores and specify your own
toai --path . --output out.txt --no-ignore-default --ignore build --ignore cache --ignore "*.o"
Ensure the output file isn’t included (handled automatically if it’s inside the scanned tree)
toai --path . --output ./dump/project.txt
--path
Root directory to scan (default: .)
--output
Write output to a file instead of stdout
--ignore
Ignore entries matching a pattern. Supports globs like .png, **/dist, cmake-build-
Can be provided multiple times
--no-ignore-default
Disable the default ignore set
Applied unless --no-ignore-default is used.
Directories
nodemodules
target
dist
build
.next
.turbo
.git
.idea
.vscode
pycache
.pytest_cache
.mypy_cache
.ruff_cache
CMakeFiles
cmake-build-
Pods
buck-out
bazel-_
Files
Cargo.lock
LICENSE
.DS_Store
Binary and cache extensions
Python: _.pyc, _.pyo, _.pyd
C/C++/Rust: _.o, _.obj, _.so, _.dll, _.dylib, _.exe, _.out, _.a, _.lib
Logs/Temp: _.log, _.tmp, _.swp
Images: _.png, _.jpg, _.jpeg, _.gif, _.bmp, _.tiff, _.ico, _.svg, _.webp, _.heic, _.heif
3D assets: _.vrm, _.fbx, _.glb, _.gltf, _.blend, _.obj, _.stl
Archives: _.zip, _.tar, _.gz, _.bz2, _.xz, _.7z, _.rar