Context windows are not memory
A million tokens of context does not give a model memory. It gives it a very large short-term working set — and confusing the two is why your agent forgets what it decided twenty minutes ago.
Article6 min
Build a streaming tool loop with the Claude API
A production-shaped agent loop in TypeScript: typed tools, streamed output, human approval gates, and the pause_turn case that silently truncates answers.
Tutorial9 minadvanced