Context Engine

•
1.1k
•

Optimizes AI agent context windows through token budgeting, intelligent pruning, and multi-layered memory architectures.

Context Engine equips AI coding agents with a structured framework for measuring, budgeting, and managing context window usage. Designed to resolve token bloat and late-session performance degradation in complex agent workflows, this skill provides specialized tools to analyze token consumption across system prompts, history, tool responses, and code RAG. It establishes clear architectural rules for distinguishing working memory from persistent state, compacting conversations at high-water marks, and pruning unnecessary syntax to preserve critical attention.

주요 기능

01Token budget planning and component allocation across system, history, tools, and RAG
02Smart code and prose pruning to remove comments, imports, and redundancies
03Multi-layer memory architecture separating session state from durable cross-session facts
041,132 GitHub stars
05Integrated TF-IDF indexing for fast lexical code search and contextual retrieval
06High-water mark compaction to safely summarize history before hitting context limits

사용 사례

01Preventing attention drift and context exhaustion during long-running agent loops
02Bootstrapping lean context windows when onboarding agents onto massive codebases
03Coordinating persistent state and shared memory handoffs across multi-agent pipelines