yek
$ yek Community Low Riskyek is a blazing-fast Rust CLI that serializes text-based repositories into LLM-ready chunks. It automatically ranks more recently/frequently changed files higher using Git history, skips binaries and .gitignore matches, enforces --tokens / --max-size budgets, and supports --json output and --config-file (yek.yaml).
brew install yek yek is a pure local Rust serializer built for speed and piped stdout/file workflows with no MCP server counterpart needed.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json, automatic stdout streaming when piped, --tokens / --max-size caps, and --config-file (yek.yaml).
- Supports
--json,--tokens,--max-size,--config-file, and piped stdout
Purely local read-only execution by default (respecting .gitignore and skipping binaries); writes files only with --output-dir.
- Local
.gitignore-aware serialization with opt-in--output-dir
Native Rust binary installable via brew install yek, cargo install yek, or official install script across macOS, Linux, and Windows.
- Available via Homebrew, Cargo, and shell installer
Git-history-based importance ranking surfaces actively edited code first inside tight context budgets.
- Git commit frequency/recency prioritization with
--tokensbudgeting
MIT-licensed community project (prooflinedev/yek) actively used in LLM coding workflows.
- MIT-licensed
prooflinedev/yekrepository
Concise README covering CLI flags, yek.yaml configuration schema, and installation.
- GitHub README documents
yek.yamloptions and CLI flags
Security, Auth & Guardrails
Offline local CLI; stores no credentials.
100% free and MIT open-source.
# yek Agent Rules - Always pass `--tokens` or `--max-size` on unfamiliar repositories so output stays within context limits. - Keep `.gitignore` or `yek.yaml` `ignore_patterns` updated to exclude `.env` and secret fixtures.
Agent-Ready Command Recipes
Safe Read-Only Queries
yek --json --tokens 32k
Outputs serialized repository files prioritized by Git recency in JSON format capped at 32k tokens.
yek src/ lib/ --config-file yek.yaml
Applies yek.yaml ignore and priority rules and streams serialized context to stdout when piped.
Controlled Writes & Previews
yek --output-dir ./tmp/yek-out --max-size 100kb
Writes size-bounded serialized text chunks to ./tmp/yek-out for multi-turn ingestion.
Strengths for Agents
- + Ranks files by Git history recency/frequency so core files stay within
--tokensbudgets. - + Streams directly to stdout when piped and supports
--jsonstructured output. - + Fast Rust binary with clean
yek.yaml/--config-filereproducibility.
Caveats & Pitfalls
- ! No built-in Secretlint detector; relies on
.gitignoreandyek.yamlignore patterns. - ! Git-based prioritization falls back to basic ordering in non-Git directories.