Optimizes agent context window setup, token budget management, file indexing, and session memory across long-running tasks.