Advanced context management with auto-compaction and dynamic context optimization for DeepSeek's 64k context window. Features intelligent compaction (merging, summarizing, extracting), query-aware relevance scoring, and hierarchical memory system with context archive. Logs optimization events to chat.
SkillScore100Maintained
Automatic
◆AI Engineer pack
Last verified 8/19/2026
What it changes
Passed 22 of 22 test cases with the skill, and 4 of 22 without it.
Without skill18%
With skill100%
Checks it passed that the model alone missed
Sets batchSize to 5
Sets preserveRecent to 10
Sets minSimilarity to 0.85
and 30 more in the full report
18 fixed4 passed either way0 still failing0 broke
Pass-rate lift
+82 pp
Tokens
+27%
Agent turns
0%
Response time
-50%
Model gemini-3.6-flashMeasured 8/19/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
What's inside
The instructions your model reads when the skill loads.
SKILL.md159 lines2 filesincludes scripts
Context Pruner
Advanced context management optimized for DeepSeek's 64k context window. Provides intelligent pruning, compression, and token optimization to prevent context overflow while preserving important information.
Key Features
DeepSeek-optimized: Specifically tuned for 64k context window
Adaptive pruning: Multiple strategies based on context usage
Semantic deduplication: Removes redundant information
Priority-aware: Preserves high-value messages
Token-efficient: Minimizes token overhead
Real-time monitoring: Continuous context health tracking
Quick Start
Auto-compaction with dynamic context:
import { createContextPruner } from './lib/index.js';
const pruner = createContextPruner({
contextLimit: 64000, // DeepSeek's limit
autoCompact: true, // Enable automatic compaction
dynamicContext: true, // Enable dynamic relevance-based context
strategies: ['semantic', 'temporal', 'extractive', 'adaptive'],
queryAwareCompaction: true, // Compact based on current query relevance
});
await pruner.initialize();
// Process messages with auto-compaction and dynamic context
const processed = await pruner.processMessages(messages, currentQuery);
// Get context health status
const status = pruner.getStatus();
console.log(`Context health: ${status.health}, Relevance scores: ${status.relevanceScores}`);
// Manual compaction when needed
const compacted = await pruner.autoCompact(messages, currentQuery);
Send an idea to the Council of the Wise for multi-perspective feedback. Spawns sub-agents to analyze from multiple expert perspectives. Auto-discovers agent personas from agents/ folder.