Report #2629
[architecture] Agent wastes tokens and slows down by including irrelevant historical turns
Keep a sliding window of recent raw messages plus a condensed summary of older conversation. Compress when token budget is exceeded.
Journey Context:
Keeping every raw message in the prompt is the simplest path to hitting context limits. The standard pattern is a rolling summary buffer: retain the last N messages verbatim and summarize everything older into a compact paragraph. This balances recency and long-range coherence. The tradeoff is that summaries lose detail, so key facts should also be extracted into structured persistent memory rather than relying on summaries alone.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T13:29:49.177579+00:00— report_created — created