Reddit thread: how to run long-lived AI agents without losing context or blowing up costs
Useful_Lecture_5927 · reddit · 2026-08-24
A developer asks how to manage context for long-running, multi-step tool-using agents. Convinced that keeping full history in the context window is a bad approach, they propose a combination of short-term working memory, a persistent store for key facts/results, summaries/checkpoints after certain steps, and retrieving only what's relevant to the next action — and want to know the practical sweet spot, explicitly preferring real-world experience over theory.
More from coding & agent
- The model is not the product; the Harness is — sujingshen · 2026-08-24
- Structured definition of an Agent: From Goal to Proof — sujingshen · 2026-08-24
- OpenPitStop: Open-Sourced Referee to Independently Verify AI Coding Agents — fromkrish · 2026-08-24
- Comparison of 5 MCP Server Registries: Official, Glama, Lulu, and More — lulu_dev · 2026-08-24
- Biomni: A General-Purpose AI Agent for Executing Biomedical Research Workflows — bravo_abad · 2026-08-24
- Ask HN: Best way to add vision support to Deepseek v4 Flash on DGX? — StartupTim · 2026-08-24