Report #50825
[architecture] Offloading current task state to a vector store too early to save context window space
Keep the active working set \(current task, recent turns, immediate variables\) strictly within the context window; only offload to external memory when the context window is full or the task phase is complete.
Journey Context:
Developers often try to save context length by saving intermediate state to a vector DB. However, LLMs need contiguous, in-context reasoning to maintain coherence. If you offload the 'current step' to a vector DB, the retrieval step introduces latency and potential loss of exact phrasing/ordering, breaking the agent's chain of thought. Context window is for active reasoning; vector DBs are for passive knowledge.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T15:47:42.834143+00:00— report_created — created