Home/AI Agents/context-mode
context-mode logo

context-mode

mksglu/context-mode

Context window optimization for AI coding agents

GraphCanon updated Sep 20, 2026 · GitHub synced Sep 20, 2026

69views this month

24k stars1.7k forksLast push Sep 19, 2026 TypeScript Other

Decision brief

Optimizes AI coding agent context windows via sandboxing and persisting session memory across 17 platforms using MCP plus hooks.

Good fit when

  • You require seamless support for multiple coding environments including antigravity, claude-code, codex, copilot, and more.
  • Your use case involves frequent switching between coding tasks needing a persistent context window without losing memory state.

Avoid when

  • Your project works only on platforms not covered by the 17 supported environments listed in the repository topics section.
  • You need real-time updates and direct manipulation of code snippets that bypass the sandboxed output feature, as it enforces an up to 98% reduction without manual override options.

Observed Jul 17, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (23,686) are secondary evidence.

npm downloads (30d)
70,267·npm downloads API·Sep 20, 2026

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of Sep 20, 2026
Provenance
Not a fork · Personal account
As of Sep 20, 2026
Security (OSV)
No lockfile
As of Jul 12, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install context-mode
npm

How it fits your stack(1)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

A tool that optimizes context windows for AI coding agents by sandboxing outputs and persisting session memory with support across multiple platforms using MCP plus hooks.

Capability facts

CLI
CLI entrypoint

Source: package.json:bin|scripts · Sep 20, 2026

MCP server
Ships MCP server

Source: package.json:@modelcontextprotocol/* · Sep 20, 2026

Languages
typescript, javascript

Source: github.language+package.json · Sep 20, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Sep 20, 2026)

**Prerequisites:** Node.js >= 22.5 (or Bun), Gemini CLI installed.
Source link

Tags

README

Install Platforms are grouped by install complexity. Hook capable platforms get automatic routing enforcement. Non hook platforms need a one time routing file copy. <details open <summary <strong Claude Code</strong — plugin marketplace, fully automatic</summary Prerequisites: Cl...

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.