{"repo":"mohsen1/yek","free":true,"listed":false,"github":"https://github.com/mohsen1/yek","clone":"git clone https://github.com/mohsen1/yek.git","description":"A fast Rust based tool to serialize text-based files in a repository or directory for LLM consumption","language":"Rust","stars":2471,"topics":["ai","cli","large-language-models","llm","rust-lang","serialization"],"license":"MIT","category":"ai-agents","readme_excerpt":"yek A fast Rust based tool to serialize text-based files in a repository or directory for LLM consumption.[^1] By default: - Uses .gitignore rules to skip unwanted files. - Uses the Git history to infer what files are more important. - Infers additional ignore patterns (binary, large, etc.). - Automatically detects if output is being piped and streams content instead of writing to files. - Supports processing multiple directories in a single command. - Supports glob patterns and individual file selection. - Configurable via a yek.yaml file. Yek يک means \"One\" in Farsi/Persian. Consider having a simple repo like this: Running yek in this directory will produce a single file and write it to the temp directory with the following content: [!NOTE] yek will prioritize more important files to come last in the output. This is useful for LLM consumption since LLMs tend to pay more attention to content that appears later in the context. Installation Choose the installation method for your platform: Unix-like Systems (macOS, Linux) For Windows (PowerShell): Build from Source Usage yek has sensible defaults, you can simply run yek in a directory to serialize the entire repository. It will serialize all files in the repository and write them into a temporary file. The path to the file will be printed to the console. Examples Process current directory and write to temp directory: Pipe output to clipboard (macOS): Cap the max output size to 128K tokens: [!NOTE] yek will remove any files tha","default_branch":null,"files":null,"tree":[],"storefront":"/r/mohsen1","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mohsen1/yek/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}