CTX
Optimizes context management for AI coding agents, significantly reducing token waste by efficiently handling repository knowledge, rules, and task-specific information.
CTX serves as a local context runtime engine designed to enhance the efficiency of AI coding agents, particularly within OpenCode workflows. It addresses the common problem of excessive token consumption by intelligently indexing repositories, storing reusable guidance as graph memory, and exposing local MCP tools. CTX keeps various forms of context—including repository knowledge, rules, shell output, diffs, and file rereads—compact and relevant, preventing them from bloating the model's context. It integrates directly into OpenCode as a context layer, offering features like compact task packs, read-cache compression, command pruning, and a live dashboard to provide real-time insights into token savings and context optimization.