Skip to content
AI Runtime & Agent Substrate

generation-context

Token-budgeted context window manager — system prompt, RAG, user history, scratchpad. Picks what to drop when the window fills.

packages/ai/generation-context · Source ↗ · Docs ↗

247,401 / 1,000,000 tokens· 24.7%
claude-sonnet-5
system4%
history6%
rag-context3%
prompt1%
buffer1%
truncation via reciprocal rank
12ms