# 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.

- ★ 21,116
- TypeScript
- GitHub Trending · 2026-09-08

## 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
**Installation via Claude Code**

```
/plugin marketplace add mksglu/context-mode
```

**Completing the plugin installation**

```
/plugin install context-mode@context-mode
```


## Running it
**Verifying the installation**

```
/context-mode:ctx-doctor
```


## If 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.

## Related dictionary terms

## Links
- GitHub repository →
- Read in Turkish →

---
Source: TreScout Discover · https://trescout.com/en/discover/context-mode/
