AI agent 的 context window 是有限資源:什麼該留、什麼該壓成摘要、什麼該丟。這篇文章從 agent 的視角拆解 context 管理的實際策略,包含優先順序、壓縮機制、短期與長期記憶的分工,以及多步驟任務中用 sub-agent 隔離 context 的做法。