Ship a focused code-review context to your LLM
Quando usar: You're about to ask 'review my auth module' and don't want the whole repo in context.
Pré-requisitos
- llm-context.py installed — uv tool install 'llm-context>=0.6.0'
- Initialized in your repo —
lc-initin your repo root
Fluxo
-
Create a filter rule for authCreate an lc filter rule 'flt-auth' that includes src/auth/** and src/middleware/auth*.ts.✓ Copiado→ Rule file created under .lc/
-
Preview what the rule selectsRun lc_preview on flt-auth — show me which files will be sent and total token count.✓ Copiado→ File list + token count
-
Share context with the LLM via MCPUsing the flt-auth rule, review the module for security issues. If you need to see a specific file not included, ask via lc_missing.✓ Copiado→ Review with targeted file requests
Resultado: A code review that fits in context and can still explore — no manual paste.
Armadilhas
- Rule too narrow → LLM can't understand callers of your module — Include interface / types of neighboring modules, use outlines for the rest
- Rule too broad → token budget blown — Start broad, watch lc_preview, tighten until under your client's limits