Skip to content

Compaction rework#3113

Open
Alexx999 wants to merge 42 commits intotailcallhq:mainfrom
Alexx999:pr-message-id-sliding-summaries
Open

Compaction rework#3113
Alexx999 wants to merge 42 commits intotailcallhq:mainfrom
Alexx999:pr-message-id-sliding-summaries

Conversation

@Alexx999
Copy link
Copy Markdown
Contributor

This PR adds an immutable message history and deterministic summarization with sliding window eviction.
The immutable history is prepared for the request via "projection" concept which maps the history to the form that LLM should be seeing.
Currently, this is done deterministically: walk the history and perform summarization when compaction criteria are met.
Last N summarizations (by default, 2) stay in the chat, the rest are skipped: this prevents context bloat which is observed with the current "insert summaries endlessly" approach.

tusharmath and others added 30 commits April 20, 2026 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants