Beyond embeddings: grep agents and whole-corpus long-context prompts as underrated retrieval patterns
jakedahn · x · 2026-09-25
The author lays out three patterns for agents to find context:
- Embedding clusters: using the centroid of a cluster of interesting things as a coarse filter, though it can be noisy and misleading.
- Agent-driven grep: letting an agent literally grep through files until satisfied, then feeding results as next-turn context — works well in practice and mirrors how programmers work without agents.
- Whole-corpus in a giant context window: cat everything into a wall of text and prompt for "helpful context for fixing this bug," "find the interestingness," or "find the incidental vs essential complexity" — the last being a promising proxy for extracting rigid APIs from slop code.
Doing this purely with LLMs is expensive; models like jev make surfing at this layer fast and cheap.
More from coding & agent
- Building a dynamic model router with LangChain and Jev middleware — Arindam_1729 · 2026-09-25
- Agentic RL inside the harness: how LFM2.5 trains with sandboxes and tools — helloiamleonie · 2026-09-25
- Codex user reports quota bug: scheduled tasks burn 30% of $200 plan overnight — sethlazar · 2026-09-25
- The one-shot SaaS experiment seems to be working, reports indie dev gregmushen — gregmushen · 2026-09-25
- Claude Code users urged to run '/claude-api prompt-audit' to tune configs for Opus 5.5 — JeremyNguyenPhD · 2026-09-25
- Claude Opus 5.5 builds a playable Splatoon-style game demo — Angaisb_ · 2026-09-25