feat: Add kai-context-summarization pack#450
Closed
copyleftdev wants to merge 1 commit intodanielmiessler:mainfrom
Closed
feat: Add kai-context-summarization pack#450copyleftdev wants to merge 1 commit intodanielmiessler:mainfrom
copyleftdev wants to merge 1 commit intodanielmiessler:mainfrom
Conversation
Adds semantic summarization layer for PAI history that reduces context injection token costs by 86.7% while preserving 100% of critical information. Features: - 5 summarization strategies: narrative, grouped, structured, minimal, delta - CLI tools: SummarizeHistory.ts, BenchmarkSummarization.ts - Library: summarizer.ts, context-builder.ts - Benchmark-validated compression ratios across 5 realistic scenarios Key metrics (narrative strategy): - Token reduction: 86.7% - Information preserved: 100% - Monthly savings: ~$16/1000 sessions (Opus) Depends on: kai-history-system Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Collaborator
|
Thank you for the context summarization pack, @copyleftdev! Interesting approach to session context management. v3.0 eliminated the Packs architecture entirely. Closing as the Packs system no longer exists. If you'd like to contribute this as a standalone skill for v3.0, we'd be happy to review it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
What's Included
src/lib/summarizer.tssrc/lib/context-builder.tssrc/tools/SummarizeHistory.tssrc/tools/BenchmarkSummarization.tsBenchmark Results
Cost Impact
Test plan
Dependencies
🤖 Generated with Claude Code