Frontmatter
| id | 7970 |
| title | Implement Context Window Compression |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 1, 2025, 5:04 PM |
| updatedAt | Dec 1, 2025, 6:05 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7970 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 1, 2025, 6:03 PM |
Implement Context Window Compression
tobiu assigned to @tobiu on Dec 1, 2025, 5:09 PM

tobiu
Dec 1, 2025, 6:03 PM
tobiu closed this issue on Dec 1, 2025, 6:03 PM
tobiu cross-referenced by #7972 on Dec 1, 2025, 6:04 PM

tobiu
Dec 1, 2025, 6:05 PM
Input from Gemini 2.5:
✦ Implemented context window compression with token threshold and summarization strategy. Refactored to use configurable counts. Verified with
ai/examples/test-loop-harden.mjs. Closing as completed.
Goal: Prevent context window overflows in long-running agent sessions. Scope:
Neo.ai.context.Assemblerto prune or summarize message history when it exceeds a token threshold.Memory_SessionServiceto generate intermediate summaries for older messages instead of dropping them. Context: Follow-up to Epic #7961.