Claude Skill

mksglu/context-mode

Context Mode optimizes context windows for AI coding agents by sandboxing tool output (98% reduction), persisting session memory, and routing across 17 platforms via MCP + hooks.

Overview

Stars18,512
Forks1,297
LanguageTypeScript
Last pushed2026-07-02
Last synced2026-07-03
View on GitHub

Repository

Ownermksglu
Repositorycontext-mode
Full namemksglu/context-mode
Repo ID1,164,477,708

Install this Skill

claude mcp add context-mode -- npx -y context-mode

Registry

Typemcp_server
Quality score85/100
Verificationreadme_parsed
Last verified2026-05-28
Platforms
ClaudeMCPOpenClawCodexCursor
Capabilities
browserpdfmemorysearchterminalworkflowantigravityclaudeclaude-codeclaude-code-hooks
Detected files
README.mddocspackage.jsontests
Config keys
URLPACKAGE_JSON
Install methods
  • claude mcp add context-mode -- npx -y context-mode
  • npm install -g context-mode
  • git clone https://github.com/mksglu/context-mode.git

Summary

Context Mode is a context virtualization layer for AI coding agents that optimizes context windows by sandboxing tool output (up to 98% reduction), persisting session memory, and enforcing routing across 17 platforms via MCP and hooks.

Chinese description

MCP是工具访问协议,我们是上下文虚拟化层。

Key features

  • Sandboxes tool output for up to 98% context reduction
  • Persists session memory across interactions
  • Enforces routing across 17 platforms via MCP + hooks
  • Supports Claude Code, Copilot, Cursor, Zed, and more
  • Lightweight TypeScript implementation

Use cases

  • Optimize context windows for Claude Code agents
  • Reduce token usage in AI coding workflows
  • Maintain session state across multiple tool calls
  • Route AI agent requests across different platforms

README excerpt

# Context Mode **The other half of the context problem.** [![users](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.message&label=users&color=brightgreen)](https://www.npmjs.com/package/context-mode) [![npm](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.npm&label=npm&color=blue)](https://www.npmjs.com/package/context-mode) [![marketplace](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fcdn.jsdelivr.net%2Fgh%2Fmksglu%2Fcontext-mode%40main%2Fstats.json&query=%24.marketplace&label=marketplace&color=blue)](https://github.com/mksglu/context-mode) [![GitHub stars](https://img.shields.io/github/stars/mksglu/context-mode?style=flat&color=yellow)](https://github.com/mksglu/context-mode/stargazers) [![GitHub forks](https://img.shields.io/github/forks/mksglu/context-mode?style=flat&color=blue)](https://github.com/mksglu/context-mode/network/members) [![Last commit](https://img.shields.io/github/last-commit/mksglu/context-mode?color=green)](https://github.com/mksglu/context-mode/commits) [![License: ELv2](https://img.shields.io/badge/License-ELv2-blue.svg)](LICENSE) [![Discord](https://img.shields.io/discord/1478479412700909750?label=Discord&logo=discord&color=5865f2)](https://discord.gg/DCN9jUgN5v) [![Hacker News #1](https://img.shields.io/badge/Hacker%20News-%231%20%E2%80%A2%20570%2B%20points-ff6600?logo=ycombinator&logoColor=white)](https://news.ycombinator.com/item?id=47193064) <p align="center"> <sub>Used across teams at</sub> <br><br> <a href="#"><img src="https://img.shields.io/badge/Microsoft-141414?style=flat" alt="Microsoft" /></a> <a href="#"><img src="https://img.shields.io/badge/

Topics

Explore more

Data from GitHub. Synced on 2026-07-03