You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Task-Scoped Context with Session-Level Code Container to Reduce Redundant Token Usage #6102
I have an idea: to avoid redundant long-context usage, files required from history should be read only once and stored in a session-level temporary container that holds the contextual code files for the current session.
When executing a specific task, an independent token budget can be allocated for that task (e.g., for navigating to SDK definitions, inspecting related usages, etc.). This token space is task-scoped and exists only within the current session. Once the task is completed, the temporary context within this task space is discarded, but the session-level code container is updated with the latest code state, along with a record of the code changes made during the task and a summary of the task execution.
In essence, tokens consumed by individual work tasks are not counted toward the overall session context length. Instead, the system retains only the modified portions of the code and a concise task summary, using them to update the session-level code container. This approach can help mitigate the problem of excessively long contexts in code-related tasks, while preserving more precise and actionable information compared to purely semantic retrieval methods.
Activity
github-actions commentedon Nov 2, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ticoAg commentedon Nov 2, 2025
checked the issues mentioned, #6077 describe is similar but not clear, i proposed a specific and feasible method.
etraut-openai commentedon Jan 14, 2026
This feature request hasn't received any upvotes in a couple of months, so I'm going to close it.