llm-context-gen-0.1.0 is not a library.
LLM Context Generator
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).
Features
- Traverses directory structures respecting
.gitignore
rules - Generates text files with clear format: filename followed by content
- Creates a file tree visualization
- Skips binary files, large files, and common directories like
node_modules
- Customizable ignore patterns
Installation
Using Cargo (recommended)
If you have Rust and Cargo installed:
From Source
-
Clone the repository:
-
Build and install:
Usage
# Process the current directory and output to "llm-context"
# Process a specific directory
# Specify a custom output directory
# Add additional directories to ignore
# See all options
Output Format
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.
License
MIT