A Context Compiler for Agents: Broad Retrieval, Small-Model Reranking, Deterministic Assembly

Bavwu · reddit · 2026-11-23

The author is experimenting with Jev plus semantic search to improve how agents retrieve and assemble context. The problem: as an agent accumulates tools, skills and memories, deciding what to feed the LLM gets harder — sending everything is expensive and noisy, while plain semantic search can't distinguish "related" from "actually useful."

The proposed lightweight context compiler in front of the main LLM:

It's adaptive rather than single-pass: retrieve, evaluate, re-search if key context is missing. The goal isn't classic document RAG but dynamically assembling the smallest useful context from a larger environment. The author says it's promising but not yet stress-tested, and asks whether others use small decision models as a reranking/routing layer.

Original post →

More from coding & agent

coding & agent channel →