| Crates.io | llm-context-gen |
| lib.rs | llm-context-gen |
| version | 0.1.1 |
| created_at | 2025-02-25 15:02:06.431371+00 |
| updated_at | 2025-02-25 15:10:39.046506+00 |
| description | A CLI tool to generate text files from source code for LLM context |
| homepage | |
| repository | https://github.com/anishpras/llm-context-gen |
| max_upload_size | |
| id | 1569221 |
| size | 29,403 |
A command-line tool that processes a directory of source code files and creates a set of text files suitable for uploading as context to Large Language Models (LLMs).
.gitignore rulesnode_modulesIf you have Rust and Cargo installed:
cargo install llm-context-gen
Clone the repository:
git clone https://github.com/anishpras/llm-context-gen.git
cd llm-context-gen
Build and install:
cargo install --path .
# Process the current directory and output to "llm-context"
llm-context-gen
# Process a specific directory
llm-context-gen -d /path/to/your/project
# Specify a custom output directory
llm-context-gen -o custom-output-dir
# Add additional directories to ignore
llm-context-gen -i "temp,logs,cache"
# See all options
llm-context-gen --help
The tool creates:
A text file for each source file with the format:
filename.ext
[file content]
A file-tree.txt showing the directory structure.
MIT