Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

yek

$ yek Community Low Risk
Mohsen Azimi · Agent Bridges & Meta · MIT · macos / linux / windows

yek 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).

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install yek
CLI vs MCP Decision CLI Only

yek is a pure local Rust serializer built for speed and piped stdout/file workflows with no MCP server counterpart needed.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

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
Trust & Safety 21 / 25

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
Setup & Portability 14 / 15

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
Utility & Efficiency 13 / 15

Git-history-based importance ranking surfaces actively edited code first inside tight context budgets.

  • Git commit frequency/recency prioritization with --tokens budgeting
Maintenance & Lineage 8 / 10

MIT-licensed community project (prooflinedev/yek) actively used in LLM coding workflows.

  • MIT-licensed prooflinedev/yek repository
Docs & Verifiability 7 / 10

Concise README covering CLI flags, yek.yaml configuration schema, and installation.

  • GitHub README documents yek.yaml options and CLI flags

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Offline local CLI; stores no credentials.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Serialize repo to JSON on stdout within a token cap
yek --json --tokens 32k

Outputs serialized repository files prioritized by Git recency in JSON format capped at 32k tokens.

Serialize specific directories with custom config
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

Write serialized repository bundle to a target directory
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 --tokens budgets.
  • + Streams directly to stdout when piped and supports --json structured output.
  • + Fast Rust binary with clean yek.yaml / --config-file reproducibility.

Caveats & Pitfalls

  • ! No built-in Secretlint detector; relies on .gitignore and yek.yaml ignore patterns.
  • ! Git-based prioritization falls back to basic ordering in non-Git directories.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI