mohsen1/yek
A Rust CLI tool that serializes code repositories into structured text files optimized for LLM context windows.

Yek converts a directory or repository into a single serialized text file optimized for AI consumption. It respects .gitignore rules, infers additional ignore patterns for binary and large files, and uses git history to prioritize important files last in the output. This prioritization exploits the observation that LLMs tend to pay more attention to content appearing later in the context. It supports streaming output, glob patterns, and configuration via yek.yaml.