Permanent memory to your AI agent
Context-mode is a TypeScript library that provides context window optimization for AI coding agents. It reduces data size by 98% by isolating tool outputs, preserves session memory, and routes to 17 different platforms via the Model Context Protocol.
Updates
- October 19, 2026: Stars 29,494 → 30,969, latest release v1.0.169 (June 29, 2026).
- October 15, 2026: Stars 27,902 → 29,494, latest release v1.0.169 (June 29, 2026).
- October 13, 2026: Stars 25,863 → 27,902, latest release v1.0.169 (June 29, 2026).
- October 9, 2026: Stars 24,627 → 25,863, latest release v1.0.169 (June 29, 2026).
What you get
- Clears the context window by reducing data size by 98%
- Ensures session continuity by tracking file edits and tasks in an SQLite database
- Increases the model's processing capacity with a structure that writes code instead of processing data
Installation
/plugin marketplace add mksglu/context-mode/plugin install context-mode@context-modeRunning it
/context-mode:ctx-doctorIf you don't write code
My AI agent, from now on, instead of performing data processing tasks directly, I want you to write and execute the code that will analyze this data. Use context-mode tools to minimize data size, keep my session history in SQLite, and report only the necessary results to me. Avoid unnecessary explanations and focus solely on code generation and efficient context management.
Repository: https://github.com/mksglu/context-mode. Follow the official instructions in the README of this repository for setup and execution.
Before starting, check which OS we are on and if the necessary tools (e.g., Python, Node.js, Git, Docker) are installed. Install any missing ones step-by-step according to this system.
Create a new, empty folder to work in. Do not touch any files outside this folder and do not delete anything. Tell me what you are going to do in one sentence before running each command.
Tell me what I should see on the screen at the end of each step. If an error occurs, I will paste the error message to you exactly as it is, and we will fix it together.
Related dictionary terms
Links
TreScout did not build this tool · we found it in GitHub trends and wrote it up. This page describes the repository as of 2026-09-08: The star count and our text belong to that day, the repository may have changed since. Check the repository link for the current state. The introductory text was prepared with AI from the repository's own documentation, and this page was machine-translated from the Turkish original · the Turkish version prevails.