context-mode

Context Mode helps AI coding agents use less context and resume work after a conversation is compacted. It is used through MCP and hooks to handle tool output, session memory, and routing across supported platforms.

Share on XCustom license (see repository)

Overview

Context Mode is an MCP server for AI coding agents that helps manage limited context windows and preserve useful session history. It keeps raw tool output out of the conversation, records session events in SQLite, and retrieves relevant information when needed after compaction. Agents can also run code to analyze data and return only the results. MCP and hooks provide routing across supported platforms, letting developers use these context-management workflows with their coding agents.

Key features

  • Sandboxes tool output to reduce the context it consumes.
  • Stores session events in SQLite and retrieves relevant history with search.
  • Lets agents run code for analysis and return concise results.
  • Routes workflows across supported platforms using MCP and hooks.

Best for

Developers who use AI coding agents and want to limit tool-output context or continue work after conversation compaction. It is useful when session decisions and ongoing tasks need to remain retrievable.

Upstream
mksglu/context-mode
Fork on GitHub
Guo-astro/context-mode
Upstream stars
26k
Category
AI agents and LLM tools
Language
TypeScript
License
Custom license (see repository)
Forked
2026-10-10
Sync status
Updated by last syncLast synced 2026-10-11