awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mksglu avatar

mksglu/context-mode

0
View on GitHub↗
17,558 星标·1,251 分支·TypeScript·11 次浏览context-mode.com↗

Context Mode

This project provides a system for managing agent context and session memory, featuring an agent context compactor, an AI session memory manager, and a tool output sandbox. It functions as a middleware layer and server extension for the Model Context Protocol to optimize context windows and reduce token usage.

The system optimizes agent performance by sandboxing tool outputs and externalizing large data sets, replacing raw I/O with pointers and concise summaries. It employs a persistent knowledge base that indexes session history and tool outputs for retrieval via full-text search, ensuring session continuity across compaction events.

The capability surface includes full-text indexing for web and local content, parallel I/O orchestration for concurrent network and shell commands, and an isolated environment for polyglot code execution. It also incorporates security primitives such as credential redaction, command permission enforcement, and network fetch hardening to block dangerous URL schemes.

The toolkit includes system health verification and diagnostic tools to track context savings and maintain the internal knowledge base.

Features

  • Agent Session Memory - Stores session history to allow searching for prior decisions and constraints to resume work without user input.
  • Context Window Optimizations - Reduces token consumption by sandboxing tool outputs and managing information flow to agents.
  • Agent Context Management - Optimizes the agent token window by executing custom commands during tool usage and session starts.
  • Agent Memory Managers - Provides a persistent knowledge base that indexes session history and tool outputs for retrieval via full-text search.
  • MCP Server Integrations - Provides integration with Model Context Protocol servers to manage tool execution and agent context.
  • Context Management Tools - Intercepts tool execution to manage the context window and reduce token usage through pre- and post-call actions.
  • Knowledge Base Management - Maintains a persistent knowledge base of structured information to support automated retrieval for AI agents.
  • Knowledge Retrieval Systems - Retrieves specific information from stored content and session history using queries, filters, and timeline sorting.
  • Middleware Extensions - Ships a middleware layer that intercepts tool calls to optimize argument parameters and token efficiency.
  • Tool Output Sandboxing - Redirects data-heavy tool calls to isolated subprocesses and replaces raw output with concise summaries.
  • Tool Output Summarization - Condenses raw logs, CSVs, and test outputs into concise summaries to preserve context window space.
  • Full Text Search - Implements full-text indexing for large tool outputs and web content to enable precise retrieval via queries.
  • Full-Text Search Engines - Implements a full-text search index to store and retrieve specific fragments of data instead of loading raw files.
  • Search and Indexing - Allows querying a local full-text index to retrieve relevant fragments of indexed files and web pages.
  • Context-Preserving Redirection - Redirects heavy tool data to isolated processes and returns summaries to prevent context window overflow.
  • Sandboxed Execution Environments - Provides isolated computing environments to safely run code and prevent context overflow from tool outputs.
  • Code Sandboxing Environments - Provides an isolated environment for executing scripts and shell commands to protect the agent's context window.
  • Agentic Session Persistence - Tracks agent task progress and state in a database to maintain continuity across context compaction events.
  • Database Memory Persistence - Persists agent states and decisions in a database to ensure continuity across multiple sessions.
  • Output Externalization - Indexes content exceeding a size threshold and replaces it with a pointer to prevent context overflow.
  • Context Injection - Dynamically inserts historical data or summaries into AI model prompts to improve decision-making.
  • Session History Retrieval - Queries indexed session history and decisions to restore context after a session resume.
  • Argument Repairers - Intercepts and corrects malformed tool arguments generated by models to improve execution success.
  • Workspace-Scoped Context Managements - Isolates prompts and knowledge bases into distinct operational containers based on project workspace paths.
  • Output Filtering - Analyzes large execution results and returns only the sections matching a natural language query.
  • Context-Aware Output Routing - Directs tool execution results through routing rules to control what information enters the context window.
  • Development State Snapshots - Saves and restores project-state snapshots during context compaction to maintain continuity.
  • I/O Rate Limiting - Controls the concurrency of network requests and API calls to optimize throughput and respect rate limits.
  • Web Content Indexing - Downloads web pages and stores them in a searchable index to enable querying without loading raw HTML.
  • Interaction Telemetry Capture - Captures tool inputs, outputs, and responses to allow sessions to be resumed or analyzed through telemetry.
  • State Reconstruction - Rebuilds active files and task history from database snapshots when event-based compaction hooks are unavailable.
  • Stateful Session Management - Ensures critical information and state are retained across context compaction events.
  • Lifecycle Hooks - Triggers custom commands during tool usage and context compaction at key lifecycle events.
  • Parallel Execution - Runs multiple shell or network commands concurrently and returns consolidated search results.
  • Tool Execution Hooks - Executes custom scripts before and after tool calls to rewrite arguments and manage information flow.
  • Code Execution Sandboxes - Runs polyglot source code in a sandboxed environment with configurable timeouts and output limits.
  • Data Redaction Tools - Automatically identifies and masks sensitive credentials in tool arguments before persisting them to the database.
  • Request Forgery Protections - Blocks dangerous URL schemes and metadata endpoints to prevent request forgery and DNS rebinding attacks.
  • Command Access Rules - Enforces granular allow and deny rules for shell commands and file access to prevent unauthorized operations.
  • Security Request Filters - Blocks dangerous URL schemes and redacts sensitive credentials from tool arguments before execution.
  • Parallel Network I/O - Manages concurrent network requests and shell commands to optimize data gathering throughput.
  • Token Savings Trackers - Provides analytics to measure the reduction in token consumption achieved through context optimization.

Star 历史

mksglu/context-mode 的 Star 历史图表mksglu/context-mode 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

mksglu/context-mode 是做什么的?

This project provides a system for managing agent context and session memory, featuring an agent context compactor, an AI session memory manager, and a tool output sandbox. It functions as a middleware layer and server extension for the Model Context Protocol to optimize context windows and reduce token usage.

mksglu/context-mode 的主要功能有哪些?

mksglu/context-mode 的主要功能包括:Agent Session Memory, Context Window Optimizations, Agent Context Management, Agent Memory Managers, MCP Server Integrations, Context Management Tools, Knowledge Base Management, Knowledge Retrieval Systems。

mksglu/context-mode 有哪些开源替代品?

mksglu/context-mode 的开源替代品包括: kilo-org/kilocode — Kilocode is an autonomous engineering platform designed to orchestrate AI agents for complex software development… mastra-ai/mastra — Mastra is an orchestration framework designed for building, deploying, and managing autonomous AI agents and… davila7/claude-code-templates — Claude Code Templates is a comprehensive framework for orchestrating specialized AI agents and automating development… olivernn/lunr.js — lunr.js is a JavaScript full-text search library and client-side search engine. It creates in-memory search indexes… redisearch/redisearch — RediSearch is a Redis module that adds secondary indexing, full-text search, aggregation, and vector similarity search… tagspaces/tagspaces — TagSpaces is an offline-first file tagging and organization platform that lets you manage local files with portable…

Context Mode 的开源替代方案

相似的开源项目,按与 Context Mode 的功能重合度排序。
  • kilo-org/kilocodeKilo-Org 的头像

    Kilo-Org/kilocode

    15,616在 GitHub 上查看↗

    Kilocode is an autonomous engineering platform designed to orchestrate AI agents for complex software development tasks. It functions as a comprehensive system for automating coding, testing, and repository management by integrating directly with your codebase and terminal. The platform provides a unified gateway for model orchestration, allowing for the management of agentic workflows, event-driven automation, and persistent session state across distributed development environments. The platform distinguishes itself through its federated task management and policy-based access control, which

    TypeScriptaiai-ageai-coding
    在 GitHub 上查看↗15,616
  • mastra-ai/mastramastra-ai 的头像

    mastra-ai/mastra

    21,221在 GitHub 上查看↗

    Mastra is an orchestration framework designed for building, deploying, and managing autonomous AI agents and multi-agent systems. It provides a comprehensive suite of primitives for creating resilient AI applications, including durable workflow orchestration, event-driven agent loops, and semantic memory management. By integrating these core components, the platform enables developers to build complex, multi-step processes that can reason about goals and execute tasks without manual intervention. The framework distinguishes itself through its focus on observability and secure, isolated execut

    TypeScriptagentsaichatbots
    在 GitHub 上查看↗21,221
  • davila7/claude-code-templatesdavila7 的头像

    davila7/claude-code-templates

    20,933在 GitHub 上查看↗

    Claude Code Templates is a comprehensive framework for orchestrating specialized AI agents and automating development workflows within local environments. It provides a structured system for defining, configuring, and deploying AI personas that handle specific technical tasks, ranging from backend architecture and frontend implementation to security auditing and infrastructure management. The project distinguishes itself through a configuration-driven approach that allows teams to standardize development environments and share reusable agent definitions across projects. It includes a robust C

    Pythonanthropicanthropic-claudeclaude
    在 GitHub 上查看↗20,933
  • olivernn/lunr.jsolivernn 的头像

    olivernn/lunr.js

    9,203在 GitHub 上查看↗

    lunr.js is a JavaScript full-text search library and client-side search engine. It creates in-memory search indexes for fast keyword retrieval and ranked document matching within browser or Node.js environments. The library utilizes a JSON serializable search index, allowing the search structure to be converted to and from JSON for storage and distribution of pre-built search data. This enables search functionality for static websites by indexing content into portable files. The system supports advanced querying capabilities, including fuzzy text matching to account for typos, field-scoped i

    JavaScript
    在 GitHub 上查看↗9,203
查看 Context Mode 的所有 30 个替代方案→