context-optimizer
CommunitySmart context management for 64k windows.
Software Engineering#token-optimization#dynamic-context#real-time-monitoring#context-pruning#64k-context#archive-memory#embedding-search
AuthorNutopia13
Version1.0.0
Installs0
System Documentation
What problem does it solve?
The Context Optimizer solves context window overflow for AI agents operating within a 64k token limit by automatically pruning, compressing, and archiving conversation history while preserving high-priority and recent content.
Core Features & Use Cases
- Adaptive pruning: combines semantic, temporal, and extractive techniques to reduce token usage without sacrificing essential context.
- Dynamic context: scores content relevance to current goals or queries and adjusts the active memory in real time.
- Hierarchical memory: stores pruned material in an archive for on-demand retrieval, enabling long-running conversations.
- Real-time monitoring: tracks health, token usage, and archive statistics to maintain stable performance.
Quick Start
- Install dependencies: npm install
- Initialize the pruner in your app and call createContextPruner with 64k context limits.
- Process messages with processMessages and optionally retrieve related content from the archive for enhanced context.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: context-optimizer Download link: https://github.com/Nutopia13/geo-intelligence-vault/archive/main.zip#context-optimizer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.