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.
Frequently asked
- What is mohsen1/yek?
- A Rust CLI tool that serializes code repositories into structured text files optimized for LLM context windows.
- Is yek open source?
- Yes — mohsen1/yek is open source, released under the MIT license.
- What language is yek written in?
- mohsen1/yek is primarily written in Rust.
- How popular is yek?
- mohsen1/yek has 2.5k stars on GitHub.
- Where can I find yek?
- mohsen1/yek is on GitHub at https://github.com/mohsen1/yek.