G7 · Retrieval Optimisation
Inject Top-1, Not Top-5
50–80%
256–512 token chunks; reranker → inject top-1/2. Naïve RAG: 10K tokens. Optimised: ~400
OSS: LangChain · LlamaIndex · Haystack · pgvector · Qdrant
✅ Agnostic
G8 · Tool Definition Loading
Lazy Load + Prune Weekly
20–70%
Inject only tools relevant to current step. Audit: prune tools unused for 30+ days from agent context
OSS: LangGraph · MCP SDK · LangChain
✅ Agnostic
G9 · Context Schema & Handoffs
Compact Typed State Fields
20–70%
Use compact typed fields for inter-step state. Suppress reasoning traces from agent handoffs — pass answers only
OSS: LangGraph · Instructor · AutoGen
✅ Agnostic
G10 · Conversation & Memory
Sliding Window + Externalise
30–70%
Keep last 4–8 turns; summarise older turns with cheap model. Externalise agent state to Redis — never embed in prompt
OSS: Mem0 · Zep OSS · LangMem · LangChain4j
✅ Agnostic