LearnNewsExamplesServices
Frontmatter
id7970
titleImplement Context Window Compression
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 1, 2025, 5:04 PM
updatedAtDec 1, 2025, 6:05 PM
githubUrlhttps://github.com/neomjs/neo/issues/7970
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 1, 2025, 6:03 PM

Implement Context Window Compression

Closed v11.14.0 enhancementai
tobiu
tobiu commented on Dec 1, 2025, 5:04 PM

Goal: Prevent context window overflows in long-running agent sessions. Scope:

  1. Compression Strategy: Implement logic in Neo.ai.context.Assembler to prune or summarize message history when it exceeds a token threshold.
  2. Summarization: Use Memory_SessionService to generate intermediate summaries for older messages instead of dropping them. Context: Follow-up to Epic #7961.
tobiu added the enhancement label on Dec 1, 2025, 5:04 PM
tobiu added the ai label on Dec 1, 2025, 5:04 PM
tobiu assigned to @tobiu on Dec 1, 2025, 5:09 PM
tobiu referenced in commit f89c9d5 - "Harden Agent Cognitive Loop (Reflection & Error Handling) #7969 on Dec 1, 2025, 6:02 PM
tobiu
tobiu Dec 1, 2025, 6:03 PM
Image
tobiu closed this issue on Dec 1, 2025, 6:03 PM
tobiu cross-referenced by #7972 on Dec 1, 2025, 6:04 PM
tobiu
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.