awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mksglu avatar

mksglu/context-mode

0
View on GitHub↗

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI
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.
17,558 stars·1,251 forks·TypeScript·11 vues
  • 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.
  • Historique des stars

    Graphique de l'historique des stars pour mksglu/context-modeGraphique de l'historique des stars pour mksglu/context-mode

    Alternatives open source à Context Mode

    Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Context Mode.
    • kilo-org/kilocodeAvatar de Kilo-Org

      Kilo-Org/kilocode

      15,616Voir sur 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
      Voir sur GitHub↗15,616
    • mastra-ai/mastraAvatar de mastra-ai

      mastra-ai/mastra

      21,221Voir sur 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
      Voir sur GitHub↗21,221
    • davila7/claude-code-templatesAvatar de davila7

      davila7/claude-code-templates

      20,933Voir sur 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
      Voir sur GitHub↗20,933
    • olivernn/lunr.jsAvatar de olivernn

      olivernn/lunr.js

      9,203Voir sur 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
      Voir sur GitHub↗9,203
    Voir les 30 alternatives à Context Mode→

    Questions fréquentes

    Que fait 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.

    Quelles sont les fonctionnalités principales de mksglu/context-mode ?

    Les fonctionnalités principales de mksglu/context-mode sont : Agent Session Memory, Context Window Optimizations, Agent Context Management, Agent Memory Managers, MCP Server Integrations, Context Management Tools, Knowledge Base Management, Knowledge Retrieval Systems.

    Quelles sont les alternatives open-source à mksglu/context-mode ?

    Les alternatives open-source à mksglu/context-mode incluent : 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…